]> git.baikalelectronics.ru Git - kernel.git/commit
block: clear all of bi_opf in bio_set_op_attrs
authorChristoph Hellwig <hch@lst.de>
Mon, 21 Nov 2016 15:18:18 +0000 (16:18 +0100)
committerJens Axboe <axboe@fb.com>
Mon, 21 Nov 2016 16:35:05 +0000 (09:35 -0700)
commitf68f8104355adceb51d3d6965998de278952a68e
tree1a71e55964b3063436a362eba6bbf75e3e52217f
parent1eb39ef4adc4094a238ddc195a9f1b2b53ce56cc
block: clear all of bi_opf in bio_set_op_attrs

Since commit ad8f4bdb ("block: add a proper block layer data direction
encoding") we only or the new op and flags into bi_opf in bio_set_op_attrs
instead of clearing the old value.  I've not seen any breakage with the
new behavior, but it seems dangerous.

Also convert it to an inline function to make the argument passing
safer.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
include/linux/blk_types.h