f2fs, block_dump: give WRITE direction to submit_bio
The block_dump in submit_bio uses rw, instead of bio->bi_rw. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
a156aa8444
commit
6190400da0
2 changed files with 2 additions and 2 deletions
|
@ -224,7 +224,7 @@ submit_io:
|
|||
trace_f2fs_submit_read_bio(sbi->sb, type, bio);
|
||||
else
|
||||
trace_f2fs_submit_write_bio(sbi->sb, type, bio);
|
||||
submit_bio(0, bio);
|
||||
submit_bio(bio_op(bio), bio);
|
||||
}
|
||||
|
||||
static void __submit_merged_bio(struct f2fs_bio_info *io)
|
||||
|
|
|
@ -809,7 +809,7 @@ static int __blkdev_issue_discard(struct block_device *bdev, sector_t sector,
|
|||
}
|
||||
|
||||
if (bio) {
|
||||
int ret = submit_bio_wait(0, bio);
|
||||
int ret = submit_bio_wait(op, bio);
|
||||
bio_put(bio);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
|
Loading…
Add table
Reference in a new issue