OSDN Git Service

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)
commitf94e08b602d45ec8ea69fb0aa1c85b712a6a4558
tree0e391ec9fec1b379efd23408c0d6b477cfa38951
parentb822ea17fd15659b92cb86c48d018c9e43d0fd98
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