]> git.itanic.dy.fi Git - linux-stable/commit
xfs: reflow the tail end of xfs_rtallocate_extent_block
authorChristoph Hellwig <hch@lst.de>
Mon, 18 Dec 2023 04:57:29 +0000 (05:57 +0100)
committerChandan Babu R <chandanbabu@kernel.org>
Fri, 22 Dec 2023 05:48:13 +0000 (11:18 +0530)
commit9ade45b08a685e121895228f344af1f8985adb2c
tree7f81a43eceaad902bb811a5fdecdc57413e63c90
parentf3e509dd45c226aff268bab3695fded60e18f720
xfs: reflow the tail end of xfs_rtallocate_extent_block

Change polarity of a check so that the successful case of being able to
allocate an extent is in the main path of the function and error handling
is on a branch.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
fs/xfs/xfs_rtalloc.c