Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 69454
b: refs/heads/master
c: dfad944
h: refs/heads/master
v: v3
  • Loading branch information
Pavel Emelyanov authored and J. Bruce Fields committed Oct 9, 2007
1 parent 6d27591 commit 45c645c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fc5846e555177c2ae01bcded7fddf60cb10dcfd0
refs/heads/master: dfad9441be82f1eadc3fa3f1bbc93f93d48d1bdf
3 changes: 1 addition & 2 deletions trunk/fs/nfs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -522,8 +522,7 @@ static int nfs_lock(struct file *filp, int cmd, struct file_lock *fl)
nfs_inc_stats(inode, NFSIOS_VFSLOCK);

/* No mandatory locks over NFS */
if ((inode->i_mode & (S_ISGID | S_IXGRP)) == S_ISGID &&
fl->fl_type != F_UNLCK)
if (__mandatory_lock(inode) && fl->fl_type != F_UNLCK)
return -ENOLCK;

if (IS_GETLK(cmd))
Expand Down

0 comments on commit 45c645c

Please sign in to comment.