]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita5e07816e1cacea0f8caa39c06cb37420488fd04
treef722533c9d7545589cdd1526fb9e1c19c030ef94
parentae5fc5c009338422bcbeedceaa4d73fb413f03d4
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