fs/ext4: Evalue bio->bi_rw after calling bio_alloc() and before calling bio_add_page().
Subsystems (2)
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.
Signed-off-by Jianpeng Ma <[email protected]>
--- fs/ext4/page-io.c | 1 + 1 file changed, 1 insertion(+)
fs/ext4/page-io.c +1 -0
@@ -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