ceph: mark the cap cache as unreclaimable
authorChengguang Xu <cgxu519@icloud.com>
Tue, 27 Feb 2018 05:49:44 +0000 (13:49 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 2 Apr 2018 08:12:47 +0000 (10:12 +0200)
commitbc4b5ad3a6a1cfe11494380affc4bfc4521af499
tree3d2e79fac8009f2607cb12cb661e53fbcdb06e0f
parent73737682e0598ae73bd4c481e478a0d75884aa8a
ceph: mark the cap cache as unreclaimable

Releasing cap is affected by many factors (e.g., avail_count/reserve_count/min_count)
and min_count could be specified high volume in client mount option. Hence it's better
to mark cap cache as unreclaimable in case of non-trivial discrepancies between memory
shown as reclaimable and what is actually reclaimed.

Signed-off-by: Chengguang Xu <cgxu519@icloud.com>
Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/super.c