btrfs: move mapping of block for discard to its caller
authorDavid Sterba <dsterba@suse.com>
Thu, 2 Aug 2018 22:36:29 +0000 (00:36 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 23 Mar 2020 16:01:44 +0000 (17:01 +0100)
commit75fb2e9e49c1bff94cf6652c40889690575ece7c
tree008808e82dc2b5b39b3d1d16da7087d052b915eb
parentee787f9550534612a4694cc4ec9f2d397d4b5752
btrfs: move mapping of block for discard to its caller

There's a simple forwarded call based on the operation that would better
fit the caller btrfs_map_block that's until now a trivial wrapper.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c