OSDN Git Service

Btrfs: use bio_clone_bioset_partial to simplify DIO submit
authorLiu Bo <bo.li.liu@oracle.com>
Tue, 16 May 2017 16:51:39 +0000 (09:51 -0700)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Jun 2017 16:25:58 +0000 (18:25 +0200)
commit725130bac5857ac035cf9f47d2973ee4e734db54
tree09a883a5979be898bf33b5d5249ca3f0ba99ce2e
parent2f8e9140426dff6091b7a40d441befc791882658
Btrfs: use bio_clone_bioset_partial to simplify DIO submit

Currently when mapping bio to limit bio to a single stripe length, we
split bio by adding page to bio one by one, but later we don't modify
the vector of bio at all, thus we can use bio_clone_fast to use the
original bio vector directly.

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/inode.c