Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

md/raid10: remove dead code in reshape_request

A bio allocated by bio_alloc_bioset comes pre-zeroed, no need to
clear random fields.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Song Liu <song@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Christoph Hellwig and committed by
Jens Axboe
72b04365 977be012

-4
-4
drivers/md/raid10.c
··· 4539 4539 read_bio->bi_private = r10_bio; 4540 4540 read_bio->bi_end_io = end_reshape_read; 4541 4541 bio_set_op_attrs(read_bio, REQ_OP_READ, 0); 4542 - read_bio->bi_flags &= (~0UL << BIO_RESET_BITS); 4543 - read_bio->bi_status = 0; 4544 - read_bio->bi_vcnt = 0; 4545 - read_bio->bi_iter.bi_size = 0; 4546 4542 r10_bio->master_bio = read_bio; 4547 4543 r10_bio->read_slot = r10_bio->devs[r10_bio->read_slot].devnum; 4548 4544