aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDarrick J. Wong <[email protected]>2023-11-23 09:48:09 -0800
committerDarrick J. Wong <[email protected]>2023-12-06 18:45:14 -0800
commit07bcbdf020c9fd3c14bec51c50225a2a02707b94 (patch)
tree44798aec92343321c1d88ef3f58a44e701a19f8b /tools/perf/scripts/python
parent33cc938e65a98f1d29d0a18403dbbee050dcad9a (diff)
xfs: don't leak recovered attri intent items
If recovery finds an xattr log intent item calling for the removal of an attribute and the file doesn't even have an attr fork, we know that the removal is trivially complete. However, we can't just exit the recovery function without doing something about the recovered log intent item -- it's still on the AIL, and not logging an attrd item means it stays there forever. This has likely not been seen in practice because few people use LARP and the runtime code won't log the attri for a no-attrfork removexattr operation. But let's fix this anyway. Also we shouldn't really be testing the attr fork presence until we've taken the ILOCK, though this doesn't matter much in recovery, which is single threaded. Fixes: fdaf1bb3cafc ("xfs: ATTR_REPLACE algorithm with LARP enabled needs rework") Signed-off-by: Darrick J. Wong <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions