From: Yan, Zheng Date: Tue, 7 Jul 2015 08:18:46 +0000 (+0800) Subject: ceph: fix ceph_encode_locks_to_buffer() X-Git-Tag: v5.15~15326^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f6762cb2ca48e9052b5233c338fa254fa58d8981;p=platform%2Fkernel%2Flinux-starfive.git ceph: fix ceph_encode_locks_to_buffer() posix locks should be in ctx->flc_posix list Signed-off-by: Yan, Zheng Signed-off-by: Ilya Dryomov --- diff --git a/fs/ceph/locks.c b/fs/ceph/locks.c index 4347039..6706bde 100644 --- 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;