btrfs: Return number of compressed extents directly in compress_file_range
authorNikolay Borisov <nborisov@suse.com>
Wed, 17 Jul 2019 11:41:44 +0000 (14:41 +0300)
committerDavid Sterba <dsterba@suse.com>
Mon, 9 Sep 2019 12:58:59 +0000 (14:58 +0200)
commitac3e99334d640b6dc8d2d8cbc57e080ba308b4c0
tree6f018e0666c7dd4df49f6250773fa19d501bfadd
parent40cf931fa81bedea08823dda9e6e73630db41b70
btrfs: Return number of compressed extents directly in compress_file_range

compress_file_range returns a void, yet uses a function parameter as a
return value. Make that more idiomatic by simply returning the number
of compressed extents directly. Also track such extents in more aptly
named variables. No functional changes.

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