xfs: cleanup use of the XFS_ALLOC_ flags
Always set XFS_ALLOC_USERDATA for data fork allocations, and check it in xfs_alloc_is_userdata instead of the current obsfucated check. Also remove the xfs_alloc_is_userdata and xfs_alloc_allow_busy_reuse helpers to make the code a little easier to understand. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
This commit is contained in:
committed by
Darrick J. Wong
parent
fd638f1de1
commit
c34d570d15
@@ -374,7 +374,7 @@ xfs_filestream_new_ag(
|
||||
startag = (item->ag + 1) % mp->m_sb.sb_agcount;
|
||||
}
|
||||
|
||||
if (xfs_alloc_is_userdata(ap->datatype))
|
||||
if (ap->datatype & XFS_ALLOC_USERDATA)
|
||||
flags |= XFS_PICK_USERDATA;
|
||||
if (ap->tp->t_flags & XFS_TRANS_LOWMODE)
|
||||
flags |= XFS_PICK_LOWSPACE;
|
||||
|
||||
Reference in New Issue
Block a user