]> asedeno.scripts.mit.edu Git - linux.git/commit
xfs: Add attibute set and helper functions
authorAllison Henderson <allison.henderson@oracle.com>
Thu, 18 Oct 2018 06:21:16 +0000 (17:21 +1100)
committerDave Chinner <david@fromorbit.com>
Thu, 18 Oct 2018 06:21:16 +0000 (17:21 +1100)
commit2f3cd8091963810d85e6a5dd6ed1247e10e9e6f2
treeeef93c41ff1cf4ccac705ab04b93e39a07019c43
parent4c74a56b9de76bb6b581274b76b52535ad77c2a7
xfs: Add attibute set and helper functions

This patch adds xfs_attr_set_args and xfs_bmap_set_attrforkoff.
These sub-routines set the attributes specified in @args.
We will use this later for setting parent pointers as a deferred
attribute operation.

[dgc: remove attr fork init code from xfs_attr_set_args().]
[dgc: xfs_attr_try_sf_addname() NULLs args.trans after commit.]
[dgc: correct sf add error handling.]

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
fs/xfs/libxfs/xfs_attr.h
fs/xfs/libxfs/xfs_bmap.c
fs/xfs/libxfs/xfs_bmap.h