xfs: Add xfs_attr_set_deferred and xfs_attr_remove_deferred
authorAllison Henderson <allison.henderson@oracle.com>
Wed, 11 May 2022 07:01:13 +0000 (17:01 +1000)
committerDave Chinner <david@fromorbit.com>
Wed, 11 May 2022 07:01:13 +0000 (17:01 +1000)
commitf3f36c893f260275eb9229cdc3dabb4c79650591
treec5a0a309d2d604507e88d0c66aa5196adf1fb79a
parentf38dc503d366b589d98d5676a5b279d10b47bcb9
xfs: Add xfs_attr_set_deferred and xfs_attr_remove_deferred

These routines set up and queue a new deferred attribute operations.
These functions are meant to be called by any routine needing to
initiate a deferred attribute operation as opposed to the existing
inline operations. New helper function xfs_attr_item_init also added.

Finally enable delayed attributes in xfs_attr_set and xfs_attr_remove.

Signed-off-by: Allison Henderson <allison.henderson@oracle.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Chandan Babu R <chandanrlinux@gmail.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/libxfs/xfs_attr.c
fs/xfs/libxfs/xfs_attr.h
fs/xfs/xfs_log.c
fs/xfs/xfs_log.h