]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit - libxfs/xfs_bmap.c
xfs: cleanup use of the XFS_ALLOC_ flags
authorChristoph Hellwig <hch@lst.de>
Thu, 16 Jan 2020 22:13:33 +0000 (17:13 -0500)
committerEric Sandeen <sandeen@redhat.com>
Thu, 16 Jan 2020 22:13:33 +0000 (17:13 -0500)
commita85522b618a0bd68c3226fdcc7735dc6e8ba597d
tree1e5407158ea1f82809ce3fd0c4e7caa10cfd64cd
parentc3a24cdeca82608ef2ac0a61d0de124b8e8ba1be
xfs: cleanup use of the XFS_ALLOC_ flags

Source kernel commit: c34d570d158699c6c812f5df653aaf2e3a83acca

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>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_alloc.c
libxfs/xfs_alloc.h
libxfs/xfs_bmap.c