diff options
author | Kaixu Xia <kaixuxia@tencent.com> | 2020-04-22 21:54:30 -0700 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2020-05-04 09:03:14 -0700 |
commit | cd59455980f94ea4e9a5f84a7c326d42a4d84a78 (patch) | |
tree | dad3e881a2444777c0c29b6ddc05b1f8a5292473 /fs | |
parent | 7994aae8516aa35ca26dba64cf8d6938e93c2265 (diff) | |
download | linux-stable-cd59455980f94ea4e9a5f84a7c326d42a4d84a78.tar.gz linux-stable-cd59455980f94ea4e9a5f84a7c326d42a4d84a78.tar.bz2 linux-stable-cd59455980f94ea4e9a5f84a7c326d42a4d84a78.zip |
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/xfs/xfs_qm_syscalls.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/xfs/xfs_qm_syscalls.c b/fs/xfs/xfs_qm_syscalls.c index 5d5ac65aa1cc..944486f2b287 100644 --- a/fs/xfs/xfs_qm_syscalls.c +++ b/fs/xfs/xfs_qm_syscalls.c @@ -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", |