OSDN Git Service

xfs: Add helper function xfs_attr_try_sf_addname
authorAllison Henderson <allison.henderson@oracle.com>
Thu, 18 Oct 2018 06:20:50 +0000 (17:20 +1100)
committerDave Chinner <david@fromorbit.com>
Thu, 18 Oct 2018 06:20:50 +0000 (17:20 +1100)
commit4c74a56b9de76bb6b581274b76b52535ad77c2a7
tree48abd647a36ae8326880720ba93f7a767e1aed11
parente2421f0b5ff3ce279573036f5cfcb0ce28b422a9
xfs: Add helper function xfs_attr_try_sf_addname

This patch adds a subroutine xfs_attr_try_sf_addname
used by xfs_attr_set.  This subrotine will attempt to
add the attribute name specified in args in shortform,
as well and perform error handling previously done in
xfs_attr_set.

This patch helps to pre-simplify xfs_attr_set for reviewing
purposes and reduce indentation.  New function will be added
in the next patch.

[dgc: moved commit to helper function, too.]

Signed-off-by: Allison Henderson <allison.henderson@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/libxfs/xfs_attr.c