xfs: hoist multi-fsb allocation unit detection to a helper
authorDarrick J. Wong <djwong@kernel.org>
Mon, 15 Apr 2024 21:54:11 +0000 (14:54 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 15 Apr 2024 21:54:11 +0000 (14:54 -0700)
commit6b700a5be9b3b69419474622336c63fdc1cc3ca4
tree96b4fc2a8746e3ed7ea30ec6931d8b12e13d66bd
parentee20808d848c87a51e176706d81b95a21747d6cf
xfs: hoist multi-fsb allocation unit detection to a helper

Replace the open-coded logic to decide if a file has a multi-fsb
allocation unit to a helper to make the code easier to read.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_bmap_util.c
fs/xfs/xfs_inode.h