On Thu, Jun 30, 2022 at 11:05 AM Xiubo Li <xiubli@xxxxxxxxxx> wrote: > > > On 6/30/22 10:39 AM, Yan, Zheng wrote: > > NACK, this change will significantly increase mds load. Inaccuracy is > > inherent in current quota design. > > Yeah, I was also thinking could we just allow the quota size to be > aligned to 4KB if it < 4MB, or must be aligned to 4MB ? > > Any idea ? make sense > > - Xiubo > > > > On Mon, Jun 27, 2022 at 10:06 AM <xiubli@xxxxxxxxxx> wrote: > >> From: Xiubo Li <xiubli@xxxxxxxxxx> > >> > >> V2: > >> - Switched to IS_ALIGNED() macro > >> - Added CEPH_4K_BLOCK_SIZE macro > >> - Rename CEPH_BLOCK to CEPH_BLOCK_SIZE > >> > >> Xiubo Li (3): > >> ceph: make f_bsize always equal to f_frsize > >> ceph: switch to use CEPH_4K_BLOCK_SHIFT macro > >> ceph: switch to 4KB block size if quota size is not aligned to 4MB > >> > >> fs/ceph/quota.c | 32 ++++++++++++++++++++------------ > >> fs/ceph/super.c | 28 ++++++++++++++-------------- > >> fs/ceph/super.h | 5 +++-- > >> 3 files changed, 37 insertions(+), 28 deletions(-) > >> > >> -- > >> 2.36.0.rc1 > >> >