]> asedeno.scripts.mit.edu Git - linux.git/commit
xfs: cleanup use of the XFS_ALLOC_ flags
authorChristoph Hellwig <hch@lst.de>
Wed, 30 Oct 2019 19:25:00 +0000 (12:25 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Sun, 3 Nov 2019 18:22:31 +0000 (10:22 -0800)
commitc34d570d158699c6c812f5df653aaf2e3a83acca
tree34c7670270fdd42b2ad21b7ed67d7a2c72688321
parentfd638f1de1f3f736ea4debb3582999ea95506e0a
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>
fs/xfs/libxfs/xfs_alloc.c
fs/xfs/libxfs/xfs_alloc.h
fs/xfs/libxfs/xfs_bmap.c
fs/xfs/xfs_extent_busy.c
fs/xfs/xfs_filestream.c