btrfs: sink write flags to cow_file_range_async
authorDavid Sterba <dsterba@suse.com>
Tue, 29 Oct 2019 17:28:57 +0000 (18:28 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 18 Nov 2019 16:51:49 +0000 (17:51 +0100)
commitfac07d2b091542f7169978e4c1413747d8d0e965
treebc9fb5ff6d39817714ae9f3c93a609423d5c78d3
parent57e5ffeb8779a49202d48fb890f9d04fa0273c1e
btrfs: sink write flags to cow_file_range_async

In commit "Btrfs: use REQ_CGROUP_PUNT for worker thread submitted bios",
cow_file_range_async gained wbc as a parameter and this makes passing
write flags redundant. Set it inside the function and remove the
parameter.

Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c