]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: clean up bmap intent item recovery checking
authorDarrick J. Wong <darrick.wong@oracle.com>
Sat, 26 Sep 2020 00:39:50 +0000 (17:39 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 7 Oct 2020 15:40:28 +0000 (08:40 -0700)
commitf98046f266aaae0985cadd0a09276072b3a25083
tree7e453840b1518c5a739a4bb1a1fd0301514ab7ec
parentee9400eb50532c7d1b3aab19cbe6a804d2914fd5
xfs: clean up bmap intent item recovery checking

The bmap intent item checking code in xfs_bui_item_recover is spread all
over the function.  We should check the recovered log item at the top
before we allocate any resources or do anything else, so do that.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_bmap_item.c