]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: open code and remove btrfs_inode_sectorsize helper
authorJosef Bacik <josef@toxicpanda.com>
Wed, 14 Sep 2022 23:04:48 +0000 (19:04 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Sep 2022 10:28:06 +0000 (12:28 +0200)
commit2bd48e14495c2db5b6894b202639576162a650fc
treefc763a5138bf7098b822816896dd34a4f8559da1
parent9163ca2f50e32514a488a9d5a70dc962288ad828
btrfs: open code and remove btrfs_inode_sectorsize helper

This is defined in btrfs_inode.h, and dereferences btrfs_root and
btrfs_fs_info, both of which aren't defined in btrfs_inode.h.
Additionally, in many places we already have root or fs_info, so this
helper often makes the code harder to read.  So delete the helper and
simply open code it in the few places that we use it.

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/extent_io.c
fs/btrfs/file.c