diff options
author | Guoqing Jiang <gqjiang@suse.com> | 2017-03-20 10:46:04 +0100 |
---|---|---|
committer | Shaohua Li <shli@fb.com> | 2017-03-24 06:42:14 +0100 |
commit | 27f26a0f3767b6688b9a88b9becb6f8e760421f3 (patch) | |
tree | a1174bd5ffb671db6892520fca50c970d9516cd6 /drivers/md/bitmap.c | |
parent | raid5-ppl: silence a misleading warning message (diff) | |
download | linux-27f26a0f3767b6688b9a88b9becb6f8e760421f3.tar.xz linux-27f26a0f3767b6688b9a88b9becb6f8e760421f3.zip |
md/raid10: refactor some codes from raid10_write_request
Previously, we clone both bio and repl_bio in raid10_write_request,
then add the cloned bio to plug->pending or conf->pending_bio_list
based on plug or not, and most of the logics are same for the two
conditions.
So introduce raid10_write_one_disk for it, and use replacement parameter
to distinguish the difference. No functional changes in the patch.
Signed-off-by: Guoqing Jiang <gqjiang@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'drivers/md/bitmap.c')
0 files changed, 0 insertions, 0 deletions