projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbfe8fa
)
ceph: fix ceph_encode_locks_to_buffer()
author
Yan, Zheng
<zyan@redhat.com>
Tue, 7 Jul 2015 08:18:46 +0000
(16:18 +0800)
committer
Ilya Dryomov
<idryomov@gmail.com>
Fri, 31 Jul 2015 08:38:47 +0000
(11:38 +0300)
posix locks should be in ctx->flc_posix list
Signed-off-by: Yan, Zheng <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/locks.c
patch
|
blob
|
history
diff --git
a/fs/ceph/locks.c
b/fs/ceph/locks.c
index
4347039
..
6706bde
100644
(file)
--- a/
fs/ceph/locks.c
+++ b/
fs/ceph/locks.c
@@
-287,7
+287,7
@@
int ceph_encode_locks_to_buffer(struct inode *inode,
return 0;
spin_lock(&ctx->flc_lock);
- list_for_each_entry(lock, &ctx->flc_
flock
, fl_list) {
+ list_for_each_entry(lock, &ctx->flc_
posix
, fl_list) {
++seen_fcntl;
if (seen_fcntl > num_fcntl_locks) {
err = -ENOSPC;