xfs: Add helper function xfs_init_attr_trans
authorAllison Henderson <allison.henderson@oracle.com>
Wed, 11 May 2022 07:01:23 +0000 (17:01 +1000)
committerDave Chinner <david@fromorbit.com>
Wed, 11 May 2022 07:01:23 +0000 (17:01 +1000)
commitc3546cf5d1e50389a789290f8c21a555e3408aa8
tree92b071514ea50ca6df0bf37e6f122807b66a0756
parentcd1549d6df22e4f72903dbb169202203d429bcff
xfs: Add helper function xfs_init_attr_trans

Quick helper function to collapse duplicate code to initialize
transactions for attributes

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