Skip to content

Commit

Permalink
bcache: Fixed incorrect order of arguments to bio_alloc_bioset()
Browse files Browse the repository at this point in the history
Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Cc: linux-stable <stable@vger.kernel.org> # >= v3.10
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Kent Overstreet authored and Linus Torvalds committed Oct 23, 2013
1 parent f4e5e14 commit d4eddd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/md/bcache/request.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d4eddd4

Please sign in to comment.