提交 f6762cb2 编写于 作者: Y Yan, Zheng 提交者: Ilya Dryomov

ceph: fix ceph_encode_locks_to_buffer()

posix locks should be in ctx->flc_posix list
Signed-off-by: NYan, Zheng <zyan@redhat.com>
Signed-off-by: NIlya Dryomov <idryomov@gmail.com>
上级 cbfe8fa6
...@@ -287,7 +287,7 @@ int ceph_encode_locks_to_buffer(struct inode *inode, ...@@ -287,7 +287,7 @@ int ceph_encode_locks_to_buffer(struct inode *inode,
return 0; return 0;
spin_lock(&ctx->flc_lock); 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; ++seen_fcntl;
if (seen_fcntl > num_fcntl_locks) { if (seen_fcntl > num_fcntl_locks) {
err = -ENOSPC; err = -ENOSPC;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册