Skip to content

Commit 74ddd6b

Browse files
committed
xfs: replace a few open-coded XFS_DQTYPE_REC_MASK uses
Fix a few places where we open-coded this mask constant. Signed-off-by: Darrick J. Wong <[email protected]> Reviewed-by: Dave Chinner <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]>
1 parent af1db8f commit 74ddd6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/xfs/xfs_dquot_item_recover.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ xlog_recover_dquot_ra_pass2(
3939
if (item->ri_buf[1].i_len < sizeof(struct xfs_disk_dquot))
4040
return;
4141

42-
type = recddq->d_flags & (XFS_DQTYPE_USER | XFS_DQTYPE_PROJ | XFS_DQTYPE_GROUP);
42+
type = recddq->d_flags & XFS_DQTYPE_REC_MASK;
4343
ASSERT(type);
4444
if (log->l_quotaoffs_flag & type)
4545
return;
@@ -91,7 +91,7 @@ xlog_recover_dquot_commit_pass2(
9191
/*
9292
* This type of quotas was turned off, so ignore this record.
9393
*/
94-
type = recddq->d_flags & (XFS_DQTYPE_USER | XFS_DQTYPE_PROJ | XFS_DQTYPE_GROUP);
94+
type = recddq->d_flags & XFS_DQTYPE_REC_MASK;
9595
ASSERT(type);
9696
if (log->l_quotaoffs_flag & type)
9797
return 0;

0 commit comments

Comments
 (0)