Skip to contentSkip to conversation

fs/ext4: Evalue bio->bi_rw after calling bio_alloc() and before calling bio_add_page().

PATCH In review majianpeng 1 participant 1 message Jul 30, 2012

Subsystems (2)
lore
Share & tools
lore

majianpeng

author
#0 lore raw

PATCH 5/8 fs/ext4: Evalue bio->bi_rw after calling bio_alloc() and before calling bio_add_page().

Because call bio_alloc, the bi_rw is zero by default,but in bio_add_page used the bi_rw. So evalue bi_rw.

---
 fs/ext4/page-io.c |    1 +
 1 file changed, 1 insertion(+)
fs/ext4/page-io.c +1 -0
index dcdeef1..c875502 100644
@@ -304,6 +304,7 @@ static int io_submit_init(struct ext4_io_submit *io,
 	io->io_bio = bio;
 	io->io_op = (wbc->sync_mode == WB_SYNC_ALL ?  WRITE_SYNC : WRITE);
 	io->io_next_block = bh->b_blocknr;
+	bio->bi_rw = io->io_op;
 	return 0;
 }
 
Signature · 5 lines
1.7.9.5
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs