Skip to content

Commit a237f2d

Browse files
allisonhendersondjwong
authored andcommitted
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 <[email protected]> Reviewed-by: Brian Foster <[email protected]> Reviewed-by: Darrick J. Wong <[email protected]> Signed-off-by: Darrick J. Wong <[email protected]> Acked-by: Dave Chinner <[email protected]>
1 parent 0feaef1 commit a237f2d

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

fs/xfs/libxfs/xfs_attr.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1142,10 +1142,6 @@ xfs_attr_node_removename(
11421142
if (error)
11431143
goto out;
11441144

1145-
error = xfs_trans_roll_inode(&args->trans, args->dp);
1146-
if (error)
1147-
goto out;
1148-
11491145
error = xfs_attr_rmtval_invalidate(args);
11501146
if (error)
11511147
return error;

0 commit comments

Comments
 (0)