]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: refactor xfs_bmapi_allocate
authorChristoph Hellwig <hch@lst.de>
Wed, 30 Oct 2019 19:24:59 +0000 (12:24 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Sun, 3 Nov 2019 18:22:30 +0000 (10:22 -0800)
commit91941eb6b974416c0cbef4e5c8bd1f38ad46f513
tree2b393ec979e6f9c039ea0e17f1f600409f4b25af
parentdefb441590d1424bb643d8374e78442b165818d6
xfs: refactor xfs_bmapi_allocate

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>
fs/xfs/libxfs/xfs_bmap.c