xfs: use ->t_dfops for attr set/remove operations
authorBrian Foster <bfoster@redhat.com>
Thu, 12 Jul 2018 05:26:09 +0000 (22:26 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 12 Jul 2018 05:26:09 +0000 (22:26 -0700)
commit40d03ac6aa2bebe05190462734690472310167e4
tree7c1152d55ed3cdbcdec9ece5888e7d74621a2b14
parent813d08cb6de0af43da40393aebff914d2de9e50e
xfs: use ->t_dfops for attr set/remove operations

Attach the local dfops to the transaction allocated for xattr add
and remove operations. Add an earlier initialization in
xfs_attr_remove() to ensure the structure is valid if it remains
unused at transaction commit time.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/libxfs/xfs_attr.c
fs/xfs/libxfs/xfs_bmap.c