xfs: Hoist xfs_attr_node_addname
authorAllison Henderson <allison.henderson@oracle.com>
Mon, 26 Apr 2021 23:50:26 +0000 (16:50 -0700)
committerAllison Henderson <allison.henderson@oracle.com>
Tue, 1 Jun 2021 17:49:45 +0000 (10:49 -0700)
commit5d954cc09f6baed80458ea02ec092031608ea3fe
treec7945d37c808859b8e976e5433dbd4ca86508af3
parent6ca5a4a1f52952790a40099b79b5631d91163ba4
xfs: Hoist xfs_attr_node_addname

This patch hoists the later half of xfs_attr_node_addname into
the calling function.  We do this because it is this area that
will need the most state management, and we want to keep such
code in the same scope as much as possible

Signed-off-by: Allison Henderson <allison.henderson@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Chandan Babu R <chandanrlinux@gmail.com>
fs/xfs/libxfs/xfs_attr.c