projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] Skip check for mandatory locks when unlocking
[linux-2.6-microblaze.git]
/
fs
/
ocfs2
/
locks.c
diff --git
a/fs/ocfs2/locks.c
b/fs/ocfs2/locks.c
index
544ac62
..
b5cb3ed
100644
(file)
--- a/
fs/ocfs2/locks.c
+++ b/
fs/ocfs2/locks.c
@@
-133,7
+133,7
@@
int ocfs2_lock(struct file *file, int cmd, struct file_lock *fl)
if (!(fl->fl_flags & FL_POSIX))
return -ENOLCK;
- if (__mandatory_lock(inode))
+ if (__mandatory_lock(inode)
&& fl->fl_type != F_UNLCK
)
return -ENOLCK;
return ocfs2_plock(osb->cconn, OCFS2_I(inode)->ip_blkno, file, cmd, fl);