]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9338968a218b1ff477b85feb82c215ce9b574b88
treeaba7ab6ec6579cf8182561281e99ac476430e0c7
parentca7f05b6aa24cefa55a8fb8e3693a99ab02a1ad3
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