]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
ceph: introudce a variable to avoid calling refcount_read() twice
authorChengguang Xu <cgxu519@gmx.com>
Thu, 12 Jul 2018 08:35:32 +0000 (16:35 +0800)
committerJeff Layton <jlayton@kernel.org>
Mon, 23 Sep 2019 13:27:21 +0000 (09:27 -0400)
commit05bf24212fa709c519e1bc95e9cdec91c06a1fee
treeac085b5474aac4c30f603641bc2d6356b2358b0c
parent2f55fecc5b3e4b5285e5fd87907030dbbbe2104f
ceph: introudce a variable to avoid calling refcount_read() twice

Calling refcount_read() twice may return different value each time,
so introduce a variable to avoid it.

Signed-off-by: Chengguang Xu <cgxu519@gmx.com>
Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
fs/ceph/mds_client.c