|
@@ -698,8 +698,8 @@ static int gfs2_flock(struct file *file, int cmd, struct file_lock *fl)
|
|
|
|
|
|
if (!(fl->fl_flags & FL_FLOCK))
|
|
if (!(fl->fl_flags & FL_FLOCK))
|
|
return -ENOLCK;
|
|
return -ENOLCK;
|
|
- if (__mandatory_lock(&ip->i_inode))
|
|
|
|
- return -ENOLCK;
|
|
|
|
|
|
+ if (fl->fl_type & LOCK_MAND)
|
|
|
|
+ return -EOPNOTSUPP;
|
|
|
|
|
|
if (fl->fl_type == F_UNLCK) {
|
|
if (fl->fl_type == F_UNLCK) {
|
|
do_unflock(file, fl);
|
|
do_unflock(file, fl);
|