]> git.baikalelectronics.ru Git - kernel.git/commit
md: cleanup bio op / flags handling in raid1_write_request
authorChristoph Hellwig <hch@lst.de>
Wed, 25 Jan 2017 10:15:20 +0000 (11:15 +0100)
committerJens Axboe <axboe@fb.com>
Fri, 27 Jan 2017 22:08:35 +0000 (15:08 -0700)
commit3690c9cbc81dca75c90b1bcd0fcb379cfa4a263d
treedb2d5a0511f027fd5364efbb96032e0b2adb7f33
parent99586d83ce607fbb5397d5dec53bdcfa91ce44c6
md: cleanup bio op / flags handling in raid1_write_request

No need for the local variables, the bio is still live and we can just
assign the bits we want directly.  Make me wonder why we can't assign
all the bio flags to start with.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/md/raid1.c