]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md/raid1: simplify alloc_behind_master_bio()
authorNeilBrown <neilb@suse.com>
Wed, 5 Apr 2017 04:05:50 +0000 (14:05 +1000)
committerShaohua Li <shli@fb.com>
Tue, 11 Apr 2017 17:08:47 +0000 (10:08 -0700)
commitcb83efcfd26a28b76eef8815a41158c1896fc5ba
tree092bd3e26ca8d832bffbaa94d501845e81ca39ad
parentc230e7e53526c223a3e1caf40747d6e37c0e4394
md/raid1: simplify alloc_behind_master_bio()

Now that we always always pass an offset of 0 and a size
that matches the bio to alloc_behind_master_bio(),
we can remove the offset/size args and simplify the code.

We could probably remove bio_copy_data_partial() too.

Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/raid1.c