Fix the copy&paste error. Signed-off-by: Daniel Wagner <daniel.wagner@xxxxxxxxxxxx> --- lease02.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lease02.c b/lease02.c index 6450e16..45433a4 100644 --- a/lease02.c +++ b/lease02.c @@ -64,7 +64,7 @@ leaseunlease(int nrlock, struct timespec *slot) perror("fcntl"); break; } - ret = fcntl(fd, F_SETLEASE, F_RDLCK); + ret = fcntl(fd, F_SETLEASE, F_UNLCK); if (ret < 0) { perror("fcntl"); break; -- 2.1.0 -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html