Commit 8680441c authored by Namjae Jeon's avatar Namjae Jeon Committed by Jaegeuk Kim

f2fs: add REQ_META about metadata requests for submit

Adding REQ_META for all the metadata requests can help in improving the
FS performance, if the underlying device supports TAGGING.
So, when considering the submit_bio path for all the f2fs requests. We can
add REQ_META for all the META requests.
As a precursor to this change we considered the commit
4265900e 'mmc: MMC-4.5 Data Tag Support'
Signed-off-by: default avatarNamjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: default avatarAmit Sahrawat <a.sahrawat@samsung.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk.kim@samsung.com>
parent c718379b
...@@ -688,6 +688,9 @@ static void do_submit_bio(struct f2fs_sb_info *sbi, ...@@ -688,6 +688,9 @@ static void do_submit_bio(struct f2fs_sb_info *sbi,
if (type >= META_FLUSH) if (type >= META_FLUSH)
rw = WRITE_FLUSH_FUA; rw = WRITE_FLUSH_FUA;
if (btype == META)
rw |= REQ_META;
if (sbi->bio[btype]) { if (sbi->bio[btype]) {
struct bio_private *p = sbi->bio[btype]->bi_private; struct bio_private *p = sbi->bio[btype]->bi_private;
p->sbi = sbi; p->sbi = sbi;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment