Btrfs: new helper btrfs_bio_clone_partial
authorLiu Bo <bo.li.liu@oracle.com>
Tue, 16 May 2017 00:43:31 +0000 (17:43 -0700)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Jun 2017 16:25:58 +0000 (18:25 +0200)
commit2f8e9140426dff6091b7a40d441befc791882658
treeb7f6b66a9fc9f20b1d6eb3d1aa855c3103b23a75
parent015c1bd9f162a00934dd71859f36b12d03c8e771
Btrfs: new helper btrfs_bio_clone_partial

This adds a new helper btrfs_bio_clone_partial, it'll allocate a cloned
bio that only owns a part of the original bio's data.

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