diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/gfs2/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/gfs2/file.c b/fs/gfs2/file.c index 73b6f552f06d..841ddc979388 100644 --- a/fs/gfs2/file.c +++ b/fs/gfs2/file.c | |||
@@ -698,8 +698,8 @@ static int gfs2_flock(struct file *file, int cmd, struct file_lock *fl) | |||
698 | 698 | ||
699 | if (!(fl->fl_flags & FL_FLOCK)) | 699 | if (!(fl->fl_flags & FL_FLOCK)) |
700 | return -ENOLCK; | 700 | return -ENOLCK; |
701 | if (__mandatory_lock(&ip->i_inode)) | 701 | if (fl->fl_type & LOCK_MAND) |
702 | return -ENOLCK; | 702 | return -EOPNOTSUPP; |
703 | 703 | ||
704 | if (fl->fl_type == F_UNLCK) { | 704 | if (fl->fl_type == F_UNLCK) { |
705 | do_unflock(file, fl); | 705 | do_unflock(file, fl); |