]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: clean up bmap intent item recovery checking
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 16 Feb 2023 05:20:08 +0000 (10:50 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Feb 2023 11:50:37 +0000 (12:50 +0100)
commitc268799711a0395a4b341a964951f959a63918df
tree5a7d933e86caacfe603955ddf9ebde0f70adba07
parent8f9ba57e4a6360afa71dbd22b6b89f71c257fea0
xfs: clean up bmap intent item recovery checking

commit f98046f266aaae0985cadd0a09276072b3a25083 upstream.

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>
Signed-off-by: Chandan Babu R <chandan.babu@oracle.com>
Acked-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/xfs/xfs_bmap_item.c