aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-bufio.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/dm-bufio.c')
-rw-r--r--drivers/md/dm-bufio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/md/dm-bufio.c b/drivers/md/dm-bufio.c
index cd77216beff1..9d3ee7f6c6c7 100644
--- a/drivers/md/dm-bufio.c
+++ b/drivers/md/dm-bufio.c
@@ -634,6 +634,7 @@ static void use_inline_bio(struct dm_buffer *b, int rw, sector_t block,
634 * the dm_buffer's inline bio is local to bufio. 634 * the dm_buffer's inline bio is local to bufio.
635 */ 635 */
636 b->bio.bi_private = end_io; 636 b->bio.bi_private = end_io;
637 b->bio.bi_rw = rw;
637 638
638 /* 639 /*
639 * We assume that if len >= PAGE_SIZE ptr is page-aligned. 640 * We assume that if len >= PAGE_SIZE ptr is page-aligned.
@@ -660,7 +661,7 @@ static void use_inline_bio(struct dm_buffer *b, int rw, sector_t block,
660 ptr += PAGE_SIZE; 661 ptr += PAGE_SIZE;
661 } while (len > 0); 662 } while (len > 0);
662 663
663 submit_bio(rw, &b->bio); 664 submit_bio(&b->bio);
664} 665}
665 666
666static void submit_io(struct dm_buffer *b, int rw, sector_t block, 667static void submit_io(struct dm_buffer *b, int rw, sector_t block,