]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit29674fa81a3b8a6883549fa6a5f468d13b34e789
tree8ba0da4fa561d426c61374ab3309e68ebcdc3993
parent8480f0625f809322fdb92e1f9d7b97e85a00b06b
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