From 3be6e3e7c91c98fa0ff42aa37b482a006f8ab26f Mon Sep 17 00:00:00 2001 From: David Sterba Date: Fri, 1 Apr 2016 13:17:44 +0200 Subject: btrfs-progs: deprecate and stop using btrfs_level_size Size of a b-tree node is always nodesize, regardless of the level. Signed-off-by: David Sterba --- ctree.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ctree.h') diff --git a/ctree.h b/ctree.h index ea1971ad..2db5c87c 100644 --- a/ctree.h +++ b/ctree.h @@ -2223,6 +2223,11 @@ static inline u32 btrfs_file_extent_inline_len(struct extent_buffer *eb, return btrfs_file_extent_ram_bytes(eb, fi); } +/* + * NOTE: Backward compatibility, do not use. + * Replacement: read nodesize directly + */ +__attribute__((deprecated)) static inline u32 btrfs_level_size(struct btrfs_root *root, int level) { if (level == 0) return root->leafsize; -- cgit v1.2.3