projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e55f1a1
)
ceph: fix mandatory flock check
author
Yan, Zheng
<zyan@redhat.com>
Tue, 13 Sep 2016 02:15:36 +0000
(10:15 +0800)
committer
Ilya Dryomov
<idryomov@gmail.com>
Mon, 3 Oct 2016 14:13:49 +0000
(16:13 +0200)
Signed-off-by: Yan, Zheng <zyan@redhat.com>
fs/ceph/locks.c
patch
|
blob
|
history
diff --git
a/fs/ceph/locks.c
b/fs/ceph/locks.c
index
a2cb0c2
..
6806dbe
100644
(file)
--- a/
fs/ceph/locks.c
+++ b/
fs/ceph/locks.c
@@
-210,8
+210,8
@@
int ceph_flock(struct file *file, int cmd, struct file_lock *fl)
if (!(fl->fl_flags & FL_FLOCK))
return -ENOLCK;
/* No mandatory locks */
- if (
__mandatory_lock(file->f_mapping->host) && fl->fl_type != F_UNLCK
)
- return -E
NOLCK
;
+ if (
fl->fl_type & LOCK_MAND
)
+ return -E
OPNOTSUPP
;
dout("ceph_flock, fl_file: %p", fl->fl_file);