[PATCH 0/2] ceph: quota: client optimizations

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Following this email I'm sending two patches that contain optimizations
for the quota implementation.  They were both suggested by Zheng Yan.

The first patch modifies the snaprealm structure to include an extra
field that will cache an inode pointer (but doesn't keep a ref to it).
This will remove the need for extra ceph_find_inode() calls while
walking through the snaprealm hierarchy.

The 2nd patch keeps a counter of inodes that have quota set.  By keeping
this counter, it is possible to short-circuit quota checks if we don't
have any inode with quotas on the filesystem.

NOTE: these 2 patches are based on the current ceph-client testing
branch, not on mainline kernel.

Luis Henriques (2):
  ceph: quota: cache inode pointer in ceph_snap_realm
  ceph: quota: add counter for snaprealms with quota

 fs/ceph/inode.c      |  3 +--
 fs/ceph/mds_client.c |  1 +
 fs/ceph/mds_client.h |  2 ++
 fs/ceph/quota.c      | 60 ++++++++++++++++++++++++++++++++++------------------
 fs/ceph/snap.c       |  9 ++++++++
 fs/ceph/super.h      |  4 ++++
 6 files changed, 57 insertions(+), 22 deletions(-)

--
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



[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux