]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: refactor xfs_bmapi_allocate
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)
commit2ac7663ab1e4c3b0f753e0b50dc8adf18a9bc1ca
tree2692df253ecfecd7a569674d2f1addbe942386dd
parent9a7ae5a173a60ad4349d20de84dc2d09add62344
xfs: refactor xfs_bmapi_allocate

Source kernel commit: be6cacbeea8c562a06e9a03c95e3fdee065d1b7b

Avoid duplicate userdata and data fork checks by restructuring the code
so we only have a helper for userdata allocations that combines these
checks in a straight foward way.  That also helps to obsoletes the
comments explaining what the code does as it is now clearly obvious.

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_bmap.c