btrfs: Remove root argument from cow_file_range_inline
authorNikolay Borisov <nborisov@suse.com>
Fri, 2 Mar 2018 07:43:15 +0000 (09:43 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Mar 2018 13:09:42 +0000 (15:09 +0200)
commitd02c0e20194bfd3066bff2505b2540a14f3fa3d2
tree20d3cdbda68c54f8f48341ab9653b8ba9b7ba9bf
parent895a72be411e9a6b40c1062f0f54faca2bb03568
btrfs: Remove root argument from cow_file_range_inline

This argument is always set to the root of the inode, which is also
passed. So let's get a reference inside the function and simplify
the arg list.

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/inode.c