]> git.baikalelectronics.ru Git - kernel.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)
commitffe263c8430e8b40d0f4e4ef759f5c38c8ff90a6
tree34c7670270fdd42b2ad21b7ed67d7a2c72688321
parent383bed33630dd48fa3a9b2db820cab65d1cd98c9
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