btrfs: simplify pointer chasing of local fs_info variables
authorDavid Sterba <dsterba@suse.com>
Fri, 29 Jun 2018 08:56:42 +0000 (10:56 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 6 Aug 2018 11:12:43 +0000 (13:12 +0200)
commit3ffbd68c48320730ef64ebfb5e639220f1f65483
tree8ba0da4fa561d426c61374ab3309e68ebcdc3993
parent37508515621551538addaf826ab4b8a9aaf0a382
btrfs: simplify pointer chasing of local fs_info variables

Functions that get btrfs inode can simply reach the fs_info by
dereferencing the root and this looks a bit more straightforward
compared to the btrfs_sb(...) indirection.

If the transaction handle is available and not NULL it's used instead.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/delayed-inode.c
fs/btrfs/disk-io.c
fs/btrfs/extent-tree.c
fs/btrfs/file-item.c
fs/btrfs/file.c
fs/btrfs/free-space-cache.c
fs/btrfs/inode.c
fs/btrfs/tree-log.c