ceph: release unreserved caps if having enough available caps
authorChengguang Xu <cgxu519@icloud.com>
Sun, 25 Feb 2018 05:39:09 +0000 (13:39 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 2 Apr 2018 08:12:47 +0000 (10:12 +0200)
commitb517c1d87faafba0c33a38ffdd551e8b399f0a31
tree3275c9411f51d5414a4712ac2add42cc3985f3c0
parente327ce068518e38c0182739e879b9dce477c8d85
ceph: release unreserved caps if having enough available caps

When unreserving caps check if there is too mamy available caps
in the ->caps_list, if so release unreserved caps.

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/caps.c