From: Kent Overstreet Date: Tue, 22 Oct 2013 22:35:50 +0000 (-0700) Subject: bcache: Fixed incorrect order of arguments to bio_alloc_bioset() X-Git-Tag: firefly_0821_release~6453^2~406 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=955a23e181561a792d6e4c1572848b7ba306499f;p=firefly-linux-kernel-4.4.55.git bcache: Fixed incorrect order of arguments to bio_alloc_bioset() commit d4eddd42f592a0cf06818fae694a3d271f842e4d upstream. Signed-off-by: Kent Overstreet Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/md/bcache/request.c b/drivers/md/bcache/request.c index cbcf8b301edc..a30a0f8a41c0 100644 --- a/drivers/md/bcache/request.c +++ b/drivers/md/bcache/request.c @@ -1059,7 +1059,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;