This patch set does code cleanup and minor optimization for cap reservation. Chengguang Xu (6): ceph: introduce a helper for reducing duplicated code ceph: refactor ceph_unreserve_caps() ceph: refactor error handling code in ceph_reserve_caps() ceph: change return type of ceph_unreserve_caps() to void ceph: let ceph_trim_caps() return trimmed cap number ceph: minor optimization for cap reservation fs/ceph/caps.c | 126 +++++++++++++++++++++---------------------- fs/ceph/mds_client.c | 6 ++- fs/ceph/super.h | 2 +- 3 files changed, 65 insertions(+), 69 deletions(-) -- 2.17.1 -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html