aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/tree-log.c
diff options
context:
space:
mode:
authorFilipe Manana <[email protected]>2025-04-03 14:53:31 +0000
committerDavid Sterba <[email protected]>2025-05-15 12:30:43 +0000
commit024b3bc190c06fd77d3db8126a63b1efeb641df9 (patch)
treeed9fd39ef607430d25cb274728211bbbb6117273 /fs/btrfs/tree-log.c
parentbtrfs: tree-checker: more unlikely annotations (diff)
downloadkernel-024b3bc190c06fd77d3db8126a63b1efeb641df9.tar.gz
kernel-024b3bc190c06fd77d3db8126a63b1efeb641df9.zip
btrfs: remove extent_io_tree_to_inode() and is_inode_io_tree()
These functions aren't used outside extent-io-tree.c, but yet one of them (extent_io_tree_to_inode()) is unnecessarily exported in the header. Furthermore their single use is in a pattern like this: if (is_inode_io_tree(tree)) foo(extent_io_tree_to_inode(tree), ...); So we're effectively unnecessarily adding more indirection, checking twice if tree->owner == IO_TREE_INODE_IO before getting the inode and doing a non-inline function call to get tree->inode. Simplify this by removing these helper functions and instead doing thing like this: if (tree->owner == IO_TREE_INODE_IO) foo(tree->inode, ...); Reviewed-by: Johannes Thumshirn <[email protected]> Signed-off-by: Filipe Manana <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/tree-log.c')
0 files changed, 0 insertions, 0 deletions