]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb64ab6303e0d572ff393ebd5294f69659254a343
tree09a883a5979be898bf33b5d5249ca3f0ba99ce2e
parent722c0c3647898028debb41a1eab58d592be9fe35
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