btrfs: convert btrfs_inode_sectorsize to take btrfs_inode
authorNikolay Borisov <nborisov@suse.com>
Mon, 31 Aug 2020 11:42:42 +0000 (14:42 +0300)
committerDavid Sterba <dsterba@suse.com>
Wed, 7 Oct 2020 10:12:18 +0000 (12:12 +0200)
commit6fee248d2beb3591f6f50aeeac843b366b116e3b
treed16f8b583477b9f5dd8c270b18bfc9b6cbd1ab9a
parent90c0304c6307a68e1e4af637d56d6613ed026875
btrfs: convert btrfs_inode_sectorsize to take btrfs_inode

It's counterintuitive to have a function named btrfs_inode_xxx which
takes a generic inode. Also move the function to btrfs_inode.h so that
it has access to the definition of struct btrfs_inode.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/btrfs_inode.h
fs/btrfs/ctree.h
fs/btrfs/extent_io.c
fs/btrfs/file.c
fs/btrfs/ordered-data.c
fs/btrfs/reflink.c