xfs: Add helper function xfs_attr_node_shrink
authorAllison Collins <allison.henderson@oracle.com>
Tue, 21 Jul 2020 04:47:27 +0000 (21:47 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 29 Jul 2020 03:28:12 +0000 (20:28 -0700)
commit3f6e011ee2bfcf5b70c5f8978673cd0e5bc64a33
treef722533c9d7545589cdd1526fb9e1c19c030ef94
parentd4034c4662af5d40de0655c641ddc6eccde0e8fc
xfs: Add helper function xfs_attr_node_shrink

This patch adds a new helper function xfs_attr_node_shrink used to
shrink an attr name into an inode if it is small enough.  This helps to
modularize the greater calling function xfs_attr_node_removename.

Signed-off-by: Allison Collins <allison.henderson@oracle.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Acked-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/libxfs/xfs_attr.c