block/fs/drivers: remove rw argument from submit_bio
This has callers of submit_bio/submit_bio_wait set the bio->bi_rw instead of passing it in. This makes that use the same as generic_make_request and how we set the other bio fields. Signed-off-by: Mike Christie <mchristi@redhat.com> Fixed up fs/ext4/crypto.c Signed-off-by: Jens Axboe <axboe@fb.com>
This commit is contained in:

committed by
Jens Axboe

parent
af8c34ce6a
commit
4e49ea4a3d
@@ -2002,12 +2002,13 @@ static int lbmRead(struct jfs_log * log, int pn, struct lbuf ** bpp)
|
||||
|
||||
bio->bi_end_io = lbmIODone;
|
||||
bio->bi_private = bp;
|
||||
bio->bi_rw = READ_SYNC;
|
||||
/*check if journaling to disk has been disabled*/
|
||||
if (log->no_integrity) {
|
||||
bio->bi_iter.bi_size = 0;
|
||||
lbmIODone(bio);
|
||||
} else {
|
||||
submit_bio(READ_SYNC, bio);
|
||||
submit_bio(bio);
|
||||
}
|
||||
|
||||
wait_event(bp->l_ioevent, (bp->l_flag != lbmREAD));
|
||||
@@ -2145,13 +2146,14 @@ static void lbmStartIO(struct lbuf * bp)
|
||||
|
||||
bio->bi_end_io = lbmIODone;
|
||||
bio->bi_private = bp;
|
||||
bio->bi_rw = WRITE_SYNC;
|
||||
|
||||
/* check if journaling to disk has been disabled */
|
||||
if (log->no_integrity) {
|
||||
bio->bi_iter.bi_size = 0;
|
||||
lbmIODone(bio);
|
||||
} else {
|
||||
submit_bio(WRITE_SYNC, bio);
|
||||
submit_bio(bio);
|
||||
INCREMENT(lmStat.submitted);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user