btrfs: remove EXTENT_UPTODATE io tree flag
authorFilipe Manana <fdmanana@suse.com>
Fri, 28 Mar 2025 12:26:59 +0000 (12:26 +0000)
committerDavid Sterba <dsterba@suse.com>
Thu, 15 May 2025 12:30:39 +0000 (14:30 +0200)
commit5c41f6010ef8139bf19c63419498fd1d38d3ed2b
tree2f4ce599b08e9e9bf0ee0a079a2137864d595a10
parentdb3f796c7ceda9226a168c364a5b17afd8ddcc76
btrfs: remove EXTENT_UPTODATE io tree flag

The EXTENT_UPTODATE io tree flag is now used only to mark ranges in the
fs_info->excluded_extents as used by super blocks and not available for
extent allocation (to prevent adding those ranges as free space in the
in memory space caches). As we can use any flag for that purpose, and
we are using EXTENT_DIRTY for the pinned extents io tree for example,
remove the EXTENT_UPTODATE flag and use instead EXTENT_DIRTY for the
excluded extents io tree.

Reviewed-by: Boris Burkov <boris@bur.io>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/block-group.c
fs/btrfs/extent-io-tree.h
fs/btrfs/tests/extent-io-tests.c
include/trace/events/btrfs.h