mbox series

[0/6] code cleanup and minor optimization for cap reservation

Message ID 20180728151540.11253-1-cgxu519@gmx.com (mailing list archive)
Headers show
Series code cleanup and minor optimization for cap reservation | expand

Message

Chengguang Xu July 28, 2018, 3:15 p.m. UTC
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(-)

Comments

Yan, Zheng Aug. 1, 2018, 7:57 a.m. UTC | #1
On Sat, Jul 28, 2018 at 11:19 PM Chengguang Xu <cgxu519@gmx.com> wrote:
>
> 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
>

patch 1~4 are applied. I drop 5~6 because trimming a little more caps is not bad

Thanks
Yan, Zheng

>  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@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html