Whamcloud - gitweb
LU-15873 quota: don't release for RO device 96/48096/6
authorWang Shilong <wshilong@ddn.com>
Thu, 7 Jan 2021 13:34:00 +0000 (21:34 +0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 21 Mar 2023 23:13:30 +0000 (23:13 +0000)
commitc4b630355f5e5a62c02dab6debeb4f6483058c8b
treee8debfb8c37f86c232d609fbf2d9201186435f47
parent0682d7d6bc64bb75777f05ffb423779bbe781063
LU-15873 quota: don't release for RO device

There is no need to release quota space for readonly
device.

And further problem is there is inconsistency between
Lustre osd and ldiskfs, ldiskfs won't load quota inode
on Readonly mount, however Lustre osd is not aware of
this and load accounting objects even in RO. this might
potentially cause problems when Lustre want to access
quota.

Change-Id: I7db5fe3f3bed3103ed62f6beba1d6f47fce12a21
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Li Xi <lixi@ddn.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/48096
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/osd-ldiskfs/osd_quota.c
lustre/quota/qsd_handler.c