]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
bcache: Fixed incorrect order of arguments to bio_alloc_bioset()
authorKent Overstreet <kmo@daterainc.com>
Thu, 24 Oct 2013 10:29:03 +0000 (11:29 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 24 Oct 2013 10:29:03 +0000 (11:29 +0100)
Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Cc: linux-stable <stable@vger.kernel.org> # >= v3.10
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/request.c

index b6a74bcbb08f8800bae2aa57888498a46eb85f69..2a7f0dd6abab4d6bb21ba028b5b3a25721080a2c 100644 (file)
@@ -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;