summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2026-11-02 19:58:37 +1030
committerDavid Sterba <dsterba@suse.com>2026-11-09 18:50:58 +0100
commitfb6eeb6a4bba0e027cf772859a3455ef5bacceb8 (patch)
tree80bc8d128a2f246f9401644c62b98c59d655dda8 /tools/perf/scripts/python
parent8416012aa6e794a6464e073ab236f4ff862935ac (diff)
btrfs: do not insert the data reloc tree into fs_roots_radix
The reasons not to do so are: - There is already a global pointer fs_info->data_reloc_root And data reloc tree itself has TRACK_DIRTY flag set, thus its treated as a COW-only root, not a SHAREABLE root, unlike regular subvolume trees. - 32-bit conflicts Radix tree keys are unsigned longs, and therefore on 32-bit platforms they are 32 bits wide This means a subvolume with id 0xfffffff7, will conflict with the truncated data reloc tree id (0xfffffffffffffff7 -> 0xfffffff7). This will prevent btrfs from reading or creating such subvolume. Thankfully this should be very rare, as the subvolume id is reusable, and it's very hard to keep so many subvolumes before hitting other limits (e.g. anon_dev limits). So change the code to not insert data reloc tree into fs_roots_radix: - Load the tree with a dedicated helper The new helper, read_data_reloc_root() will call btrfs_read_tree_root(), with refs check, then call btrfs_init_fs_root(). It skips the fs_roots_radix tree insert completely. - Grab data_reloc_tree as a global root Reviewed-by: Filipe Manana <fdmanana@suse.com> Signed-off-by: Qu Wenruo <wqu@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions