Commit cd594559 authored by Kaixu Xia's avatar Kaixu Xia Committed by Darrick J. Wong

xfs: simplify the flags setting in xfs_qm_scall_quotaon

Simplify the setting of the flags value, and only consider
quota enforcement stuff here.
Signed-off-by: default avatarKaixu Xia <kaixuxia@tencent.com>
Reviewed-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
parent 7994aae8
...@@ -357,11 +357,11 @@ xfs_qm_scall_quotaon( ...@@ -357,11 +357,11 @@ xfs_qm_scall_quotaon(
int error; int error;
uint qf; uint qf;
flags &= (XFS_ALL_QUOTA_ACCT | XFS_ALL_QUOTA_ENFD);
/* /*
* Switching on quota accounting must be done at mount time. * Switching on quota accounting must be done at mount time,
* only consider quota enforcement stuff here.
*/ */
flags &= ~(XFS_ALL_QUOTA_ACCT); flags &= XFS_ALL_QUOTA_ENFD;
if (flags == 0) { if (flags == 0) {
xfs_debug(mp, "%s: zero flags, m_qflags=%x", xfs_debug(mp, "%s: zero flags, m_qflags=%x",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment