25 May, 2020
1 commit
-
Structure tree_entry provides a very simple rb_tree which only uses
bytenr as search index.That tree_entry is used in 3 structures: backref_node, mapping_node and
tree_block.Since we're going to make backref_node independnt from relocation, it's
a good time to extract the tree_entry into rb_simple_node, and export it
into misc.h.Signed-off-by: Qu Wenruo
Reviewed-by: David Sterba
Signed-off-by: David Sterba
18 Nov, 2019
1 commit
-
As is_power_of_two takes unsigned long, it's not safe on 32bit
architectures, but we could pass any u64 value in seveal places. Add a
separate helper and also an alias that better expresses the purpose for
which the helper is used.Signed-off-by: David Sterba
09 Sep, 2019
2 commits
-
Reviewed-by: Johannes Thumshirn
Signed-off-by: David Sterba -
The file ctree.h serves as a header for everything and has become quite
bloated. Split some helpers that are generic and create a new file that
should be the catch-all for code that's not btrfs-specific.Reviewed-by: Johannes Thumshirn
Signed-off-by: David Sterba