diff options
author | Christoph Hellwig <[email protected]> | 2024-08-13 09:39:40 +0200 |
---|---|---|
committer | Chandan Babu R <[email protected]> | 2024-09-03 10:07:38 +0530 |
commit | b717089efe47bb0894d3deb016fecfc09ae586c6 (patch) | |
tree | 079e0a895106fcffd2cef1b921cb03494bdf80d4 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | f1204d96450fa7650dc27b8839df159a01998737 (diff) |
xfs: check XFS_EOFBLOCKS_RELEASED earlier in xfs_release_eofblocks
If the XFS_EOFBLOCKS_RELEASED flag is set, we are not going to free the
eofblocks, so don't bother locking the inode or performing the checks in
xfs_can_free_eofblocks. Also switch to a test_and_set operation once
the iolock has been acquire so that only the caller that sets it actually
frees the post-EOF blocks.
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Darrick J. Wong <[email protected]>
Signed-off-by: Chandan Babu R <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions