xfs: factor out filestreams from xfs_bmap_btalloc_nullfb
authorDave Chinner <dchinner@redhat.com>
Sun, 12 Feb 2023 22:14:54 +0000 (09:14 +1100)
committerDave Chinner <dchinner@redhat.com>
Sun, 12 Feb 2023 22:14:54 +0000 (09:14 +1100)
commit89563e7dc099343bf7792515452e1a24005d98a6
tree95f663b1bae5879103cd319401e34c33dd1ba1b1
parent35bf2b1abc9a753321db3b3787f5b5de6bd2b370
xfs: factor out filestreams from xfs_bmap_btalloc_nullfb

There's many if (filestreams) {} else {} branches in this function.
Split it out into a filestreams specific function so that we can
then work directly on cleaning up the filestreams code without
impacting the rest of the allocation algorithms.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/libxfs/xfs_bmap.c