Btrfs: separate DISCARD from __btrfs_map_block
authorLiu Bo <bo.li.liu@oracle.com>
Tue, 14 Mar 2017 20:33:56 +0000 (13:33 -0700)
committerDavid Sterba <dsterba@suse.com>
Tue, 18 Apr 2017 12:07:24 +0000 (14:07 +0200)
commit0b3d4cd371edb6c4ef47f3fb0cb55bdd9aa471c1
tree649fb86813557633daefd01e805f55b0adeccb99
parent592d92eeab3770b2525d2fc5589b205c9f8c33e3
Btrfs: separate DISCARD from __btrfs_map_block

Since DISCARD is not as important as an operation like write, we don't
copy it to target device during replace, and it makes __btrfs_map_block
less complex.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c