]> 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)
commit448841231c24f879bc7058e7e1b6e355c11fed22
treedb2d5a0511f027fd5364efbb96032e0b2adb7f33
parent8027547f53b9191c181099e7251e11579b934cc0
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