diff options
Diffstat (limited to 'fs/fuse')
-rw-r--r-- | fs/fuse/file.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/fuse/file.c b/fs/fuse/file.c index 2fd06927e851..acfad65a6e8e 100644 --- a/fs/fuse/file.c +++ b/fs/fuse/file.c | |||
@@ -738,8 +738,7 @@ static int fuse_file_lock(struct file *file, int cmd, struct file_lock *fl) | |||
738 | 738 | ||
739 | if (cmd == F_GETLK) { | 739 | if (cmd == F_GETLK) { |
740 | if (fc->no_lock) { | 740 | if (fc->no_lock) { |
741 | if (!posix_test_lock(file, fl, fl)) | 741 | posix_test_lock(file, fl); |
742 | fl->fl_type = F_UNLCK; | ||
743 | err = 0; | 742 | err = 0; |
744 | } else | 743 | } else |
745 | err = fuse_getlk(file, fl); | 744 | err = fuse_getlk(file, fl); |