Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 187828
b: refs/heads/master
c: 720e774
h: refs/heads/master
v: v3
  • Loading branch information
Sachin Prabhu authored and Steven Whitehouse committed Mar 11, 2010
1 parent de312ab commit 36ae021
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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: 2e95e3f668c85276ce699993596d3b52b0fcf4c5
refs/heads/master: 720e7749279bde0d08684b1bb4e7a2eedeec6394
2 changes: 1 addition & 1 deletion trunk/fs/gfs2/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ static int gfs2_lock(struct file *file, int cmd, struct file_lock *fl)

if (!(fl->fl_flags & FL_POSIX))
return -ENOLCK;
if (__mandatory_lock(&ip->i_inode))
if (__mandatory_lock(&ip->i_inode) && fl->fl_type != F_UNLCK)
return -ENOLCK;

if (cmd == F_CANCELLK) {
Expand Down

0 comments on commit 36ae021

Please sign in to comment.