btrfs: open code and remove btrfs_insert_inode_hash helper
authorJosef Bacik <josef@toxicpanda.com>
Wed, 14 Sep 2022 23:04:49 +0000 (19:04 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Sep 2022 10:28:06 +0000 (12:28 +0200)
commite256927b8801f3cd1449e03629c75d5b9a379055
tree469fa5c7daf4241cc95e4d32e74006d6b06749da
parentee8ba05cbbcee68113133249fc4f73e00a7ac3f5
btrfs: open code and remove btrfs_insert_inode_hash helper

This exists to insert the btree_inode in the super blocks inode hash
table.  Since it's only used for the btree inode move the code to where
we use it in disk-io.c and remove the helper.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/btrfs_inode.h
fs/btrfs/disk-io.c