]> 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)
commit0e44da5d81b3e591d18cde919131ccfb26e2095e
tree0e391ec9fec1b379efd23408c0d6b477cfa38951
parentdfceb9f7902907152bcbc7bc7d4bf1d4b0f9cbaa
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