summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_qm.h
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2020-07-16 02:52:57 +0200
committerDarrick J. Wong <darrick.wong@oracle.com>2020-07-29 05:24:14 +0200
commitaf1db8f12e2dc5a172f2e35cfcd8cc4cf57dbb6e (patch)
treeba7a49f14671035387a461a2576571beb13ed919 /fs/xfs/xfs_qm.h
parentxfs: always use xfs_dquot_type when extracting type from a dquot (diff)
downloadlinux-af1db8f12e2dc5a172f2e35cfcd8cc4cf57dbb6e.tar.xz
linux-af1db8f12e2dc5a172f2e35cfcd8cc4cf57dbb6e.zip
xfs: remove unnecessary quota type masking
When XFS' quota functions take a parameter for the quota type, they only care about the three quota record types (user, group, project). Internal state flags and whatnot should never be passed by callers and are an error. Now that we've moved responsibility for filtering out internal state to the callers, we can drop the masking everywhere else. In other words, if you call a quota function, you must only pass in one of XFS_DQTYPE_{USER,GROUP,PROJ}. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to '')
-rw-r--r--fs/xfs/xfs_qm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_qm.h b/fs/xfs/xfs_qm.h
index f04af35349d7..fac6fa81f1fa 100644
--- a/fs/xfs/xfs_qm.h
+++ b/fs/xfs/xfs_qm.h
@@ -88,7 +88,7 @@ xfs_dquot_tree(
static inline struct xfs_inode *
xfs_quota_inode(xfs_mount_t *mp, uint dq_flags)
{
- switch (dq_flags & XFS_DQTYPE_REC_MASK) {
+ switch (dq_flags) {
case XFS_DQTYPE_USER:
return mp->m_quotainfo->qi_uquotaip;
case XFS_DQTYPE_GROUP: