aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/compression.c
diff options
context:
space:
mode:
authorFilipe Manana <[email protected]>2025-03-28 12:14:54 +0000
committerDavid Sterba <[email protected]>2025-05-15 12:30:39 +0000
commitdb3f796c7ceda9226a168c364a5b17afd8ddcc76 (patch)
treea2668ca8ccb05f8f5ce79fc37ad38e345ce18e4d /fs/btrfs/compression.c
parentbtrfs: remove leftover EXTENT_UPTODATE clear from an inode's io_tree (diff)
downloadkernel-db3f796c7ceda9226a168c364a5b17afd8ddcc76.tar.gz
kernel-db3f796c7ceda9226a168c364a5b17afd8ddcc76.zip
btrfs: stop searching for EXTENT_DIRTY bit in the excluded extents io tree
At btrfs_add_new_free_space() we keep searching for ranges in the excluded extents io tree that have the EXTENT_DIRTY bit set, however we never ever set that bit for ranges in that tree. That is a leftover from when that function used the global freed extents trees (fs_info->freed_extents[2]), where we used both the EXTENT_DIRTY and EXTENT_UPTODATE bits, but those trees are gone with commit fe119a6eeb67 ("btrfs: switch to per-transaction pinned extents"), which introduced the fs_info->excluded_extents io tree, where only EXTENT_UPTODATE is set. So remove the EXTENT_DIRTY bit search at btrfs_add_new_free_space(). Reviewed-by: Boris Burkov <[email protected]> Signed-off-by: Filipe Manana <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/compression.c')
0 files changed, 0 insertions, 0 deletions