Commit d4eddd42 authored by Kent Overstreet's avatar Kent Overstreet Committed by Linus Torvalds

bcache: Fixed incorrect order of arguments to bio_alloc_bioset()

Signed-off-by: default avatarKent Overstreet <kmo@daterainc.com>
Cc: linux-stable <stable@vger.kernel.org> # >= v3.10
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent f4e5e14f
...@@ -1000,7 +1000,7 @@ static void request_write(struct cached_dev *dc, struct search *s) ...@@ -1000,7 +1000,7 @@ static void request_write(struct cached_dev *dc, struct search *s)
if (bio->bi_rw & REQ_FLUSH) { if (bio->bi_rw & REQ_FLUSH) {
/* Also need to send a flush to the backing device */ /* Also need to send a flush to the backing device */
struct bio *flush = bio_alloc_bioset(0, GFP_NOIO, struct bio *flush = bio_alloc_bioset(GFP_NOIO, 0,
dc->disk.bio_split); dc->disk.bio_split);
flush->bi_rw = WRITE_FLUSH; flush->bi_rw = WRITE_FLUSH;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment