]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
btrfs: rename the functions to get inode and fs_info from an extent io tree
authorFilipe Manana <fdmanana@suse.com>
Fri, 4 Apr 2025 10:09:07 +0000 (11:09 +0100)
committerDavid Sterba <dsterba@suse.com>
Thu, 15 May 2025 12:30:44 +0000 (14:30 +0200)
commit02c340c2781177242386ac5f31cc498a6929ed44
treeb77049b79de717c76b39931067bbd97c67a2ffb3
parent66da9c1bed97554f1b40c5086c7ade22292e5eca
btrfs: rename the functions to get inode and fs_info from an extent io tree

These functions are exported so they should have a 'btrfs_' prefix by
convention, to make it clear they are btrfs specific and to avoid
collisions with functions from elsewhere in the kernel.

So add a 'btrfs_' prefix to their name to make it clear they are from
btrfs. Also remove the 'const' suffix from extent_io_tree_to_inode_const()
since there's no non-const variant anymore and makes the naming consistent
with extent_io_tree_to_fs_info() (no 'const' suffix and returns a const
pointer).

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
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/extent-io-tree.c
fs/btrfs/extent-io-tree.h
include/trace/events/btrfs.h