]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: Remove xfs_trans_roll in xfs_attr_node_removename
authorAllison Collins <allison.henderson@oracle.com>
Tue, 21 Jul 2020 04:47:28 +0000 (21:47 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 29 Jul 2020 03:28:12 +0000 (20:28 -0700)
commit19b406e45ca05ad90b6dfbab833d76f4dbf1508c
tree7b6c7e9506e00e6c1273fec557adf4c8fa4c4ad6
parent137fa83095bd4cefdc4e75896d93e9bc257b17d5
xfs: Remove xfs_trans_roll in xfs_attr_node_removename

A transaction roll is not necessary immediately after setting the
INCOMPLETE flag when removing a node xattr entry with remote value
blocks. The remote block invalidation that immediately follows setting
the flag is an in-core only change. The next step after that is to start
unmapping the remote blocks from the attr fork, but the xattr remove
transaction reservation includes reservation for full tree splits of the
dabtree and bmap tree. The remote block unmap code will roll the
transaction as extents are unmapped and freed.

Signed-off-by: Allison Collins <allison.henderson@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Acked-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/libxfs/xfs_attr.c