diff options
| author | 2024-04-22 13:20:10 +0200 | |
|---|---|---|
| committer | 2024-04-22 18:00:47 +0530 | |
| commit | de37dbd0ccc6933fbf4bd7b3ccbc5ac640e80b28 (patch) | |
| tree | df5daa3ed5abc0c93d2c81f2a38f962bcfe91b8d /tools/perf/scripts/python/stat-cpi.py | |
| parent | xfs: free RT extents after updating the bmap btree (diff) | |
| download | linux-rng-de37dbd0ccc6933fbf4bd7b3ccbc5ac640e80b28.tar.xz linux-rng-de37dbd0ccc6933fbf4bd7b3ccbc5ac640e80b28.zip | |
xfs: move RT inode locking out of __xfs_bunmapi
__xfs_bunmapi is a bit of an odd place to lock the rtbitmap and rtsummary
inodes given that it is very high level code. While this only looks ugly
right now, it will become a problem when supporting delayed allocations
for RT inodes as __xfs_bunmapi might end up deleting only delalloc extents
and thus never unlock the rt inodes.
Move the locking into xfs_bmap_del_extent_real just before the call to
xfs_rtfree_blocks instead and use a new flag in the transaction to ensure
that the locking happens only once.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions
