]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - fs/fuse/file.c
Merge tag 'nfs-for-4.12-1' of git://git.linux-nfs.org/projects/trondmy/linux-nfs
[linux.git] / fs / fuse / file.c
index aa93f09ae6e67ae759efd7377c2ed01c9fac589d..3ee4fdc3da9ec359ad847afa36354240329a2da6 100644 (file)
@@ -2177,7 +2177,7 @@ static int fuse_setlk(struct file *file, struct file_lock *fl, int flock)
        }
 
        /* Unlock on close is handled by the flush method */
-       if (fl->fl_flags & FL_CLOSE)
+       if ((fl->fl_flags & FL_CLOSE_POSIX) == FL_CLOSE_POSIX)
                return 0;
 
        if (pid && pid_nr == 0)