btrfs: Streamline log_extent_csums a bit
authorNikolay Borisov <nborisov@suse.com>
Wed, 20 Jun 2018 14:26:42 +0000 (17:26 +0300)
committerDavid Sterba <dsterba@suse.com>
Mon, 6 Aug 2018 11:12:31 +0000 (13:12 +0200)
commita9ecb653b0ac9ed95671aa494015bbb705bf3eae
treeaba7ab6ec6579cf8182561281e99ac476430e0c7
parentca5788aba3e8153da38cf99ca3ce2294f032fb51
btrfs: Streamline log_extent_csums a bit

Currently this function takes the root as an argument only to get the
log_root from it. Simplify this by directly passing the log root from
the caller. Also eliminate the fs_info local variable, since it's used
only once, so directly reference it from the transaction handle.

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/tree-log.c