]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: clean up the end of xfs_attri_item_recover
authorDarrick J. Wong <djwong@kernel.org>
Thu, 23 Jun 2022 16:26:38 +0000 (09:26 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Sun, 26 Jun 2022 21:43:28 +0000 (14:43 -0700)
commitadd3a02a00a21eb2a72e463e3f42ada2f40191c8
tree0e391ec9fec1b379efd23408c0d6b477cfa38951
parentf8184bc310116c5774fdbd0345aa58fa0f33e88a
xfs: clean up the end of xfs_attri_item_recover

The end of this function could use some cleanup -- the EAGAIN
conditionals make it harder to figure out what's going on with the
disposal of xattri_leaf_bp, and the dual error/ret variables aren't
needed.  Turn the EAGAIN case into a separate block documenting all the
subtleties of recovering in the middle of an xattr update chain, which
makes the rest of the prologue much simpler.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/xfs_attr_item.c