mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 02:50:43 +00:00
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: Kaixu Xia <kaixuxia@tencent.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
This commit is contained in:
parent
7994aae851
commit
cd59455980
1 changed files with 3 additions and 3 deletions
|
@ -357,11 +357,11 @@ xfs_qm_scall_quotaon(
|
|||
int error;
|
||||
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) {
|
||||
xfs_debug(mp, "%s: zero flags, m_qflags=%x",
|
||||
|
|
Loading…
Reference in a new issue