diff options
author | Namjae Jeon <namjae.jeon@samsung.com> | 2013-04-24 22:45:21 -0400 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-04-25 21:35:11 -0400 |
commit | 8680441caa5465a2cd87b6be857be4378df46700 (patch) | |
tree | 45564283e1a0dde592522648b04bb79ea5b057fc | |
parent | c718379b6b0954a04a153d7e5dc8b3136a301ee6 (diff) |
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
4265900e0be653f5b78baf2816857ef57cf1332f 'mmc: MMC-4.5 Data Tag Support'
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Amit Sahrawat <a.sahrawat@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
-rw-r--r-- | fs/f2fs/segment.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index 0a652848a9f8..392ccb3d10b9 100644 --- a/fs/f2fs/segment.c +++ b/fs/f2fs/segment.c | |||
@@ -688,6 +688,9 @@ static void do_submit_bio(struct f2fs_sb_info *sbi, | |||
688 | if (type >= META_FLUSH) | 688 | if (type >= META_FLUSH) |
689 | rw = WRITE_FLUSH_FUA; | 689 | rw = WRITE_FLUSH_FUA; |
690 | 690 | ||
691 | if (btype == META) | ||
692 | rw |= REQ_META; | ||
693 | |||
691 | if (sbi->bio[btype]) { | 694 | if (sbi->bio[btype]) { |
692 | struct bio_private *p = sbi->bio[btype]->bi_private; | 695 | struct bio_private *p = sbi->bio[btype]->bi_private; |
693 | p->sbi = sbi; | 696 | p->sbi = sbi; |