Skip to content

Commit f6762cb

Browse files
ukernelidryomov
authored andcommitted
ceph: fix ceph_encode_locks_to_buffer()
posix locks should be in ctx->flc_posix list Signed-off-by: Yan, Zheng <[email protected]> Signed-off-by: Ilya Dryomov <[email protected]>
1 parent cbfe8fa commit f6762cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/ceph/locks.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ int ceph_encode_locks_to_buffer(struct inode *inode,
287287
return 0;
288288

289289
spin_lock(&ctx->flc_lock);
290-
list_for_each_entry(lock, &ctx->flc_flock, fl_list) {
290+
list_for_each_entry(lock, &ctx->flc_posix, fl_list) {
291291
++seen_fcntl;
292292
if (seen_fcntl > num_fcntl_locks) {
293293
err = -ENOSPC;

0 commit comments

Comments
 (0)