diff options
author | Ming Lei <tom.leiming@gmail.com> | 2017-02-14 23:29:01 +0800 |
---|---|---|
committer | Shaohua Li <shli@fb.com> | 2017-02-15 11:23:49 -0800 |
commit | 8e58e327e25c7fffc3fb79a24c76637bdda37716 (patch) | |
tree | 8fff78e94d9383628b0ffa09438c399116732897 /drivers/md/md.h | |
parent | 10273170fd5602d8090b1312e66ad4746ab02c94 (diff) | |
download | linux-stable-8e58e327e25c7fffc3fb79a24c76637bdda37716.tar.gz linux-stable-8e58e327e25c7fffc3fb79a24c76637bdda37716.tar.bz2 linux-stable-8e58e327e25c7fffc3fb79a24c76637bdda37716.zip |
md/raid1: use bio_clone_bioset_partial() in case of write behind
Write behind need to replace pages in bio's bvecs, and we have
to clone a fresh bio with new bvec table, so use the introduced
bio_clone_bioset_partial() for it.
For other bio_clone_mddev() cases, we will use fast clone since
they don't need to touch bvec table.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'drivers/md/md.h')
0 files changed, 0 insertions, 0 deletions