projects/linux·commit d4eddd42

bcache: Fixed incorrect order of arguments to bio_alloc_bioset()

d4eddd42 · Kent Overstreet <[email protected]> · 2013-10-22 15:35:50 -07:00

Signed-off-by: Kent Overstreet <[email protected]>
Cc: linux-stable <[email protected]> # >= v3.10
Signed-off-by: Linus Torvalds <[email protected]>
Commit
d4eddd42f592a0cf06818fae694a3d271f842e4d
Parents
f4e5e14f

Changes

1 files changed · +1 −1

FileStatusAddDelContent
drivers/md/bcache/request.cmodified+1−1View file

drivers/md/bcache/request.c

View file
diff --git a/drivers/md/bcache/request.c b/drivers/md/bcache/request.c
index b6a74bc..2a7f0dd 100644
--- a/drivers/md/bcache/request.c
+++ b/drivers/md/bcache/request.c
@@ -1000,7 +1000,7 @@ static void request_write(struct cached_dev *dc, struct search *s)
if (bio->bi_rw & REQ_FLUSH) {
/* 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);
flush->bi_rw = WRITE_FLUSH;