f2fs: send REQ_META or REQ_PRIO when reading meta area

Let's send REQ_META or REQ_PRIO when reading meta area such as NAT/SIT
etc.

Signed-off-by: Changman Lee <cm224.lee@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
This commit is contained in:
Changman Lee 2013-11-24 15:13:08 +09:00 committed by Jaegeuk Kim
parent a709f4a2f2
commit 03232305ff
3 changed files with 5 additions and 5 deletions

View file

@ -61,7 +61,7 @@ repeat:
if (PageUptodate(page)) if (PageUptodate(page))
goto out; goto out;
if (f2fs_readpage(sbi, page, index, READ_SYNC)) if (f2fs_readpage(sbi, page, index, READ_SYNC | REQ_META | REQ_PRIO))
goto repeat; goto repeat;
lock_page(page); lock_page(page);

View file

@ -106,11 +106,11 @@ static void ra_nat_pages(struct f2fs_sb_info *sbi, int nid)
f2fs_put_page(page, 1); f2fs_put_page(page, 1);
continue; continue;
} }
submit_read_page(sbi, page, index, READ_SYNC); submit_read_page(sbi, page, index, READ_SYNC | REQ_META);
mark_page_accessed(page); mark_page_accessed(page);
f2fs_put_page(page, 0); f2fs_put_page(page, 0);
} }
f2fs_submit_read_bio(sbi, READ_SYNC); f2fs_submit_read_bio(sbi, READ_SYNC | REQ_META);
} }
static struct nat_entry *__lookup_nat_cache(struct f2fs_nm_info *nm_i, nid_t n) static struct nat_entry *__lookup_nat_cache(struct f2fs_nm_info *nm_i, nid_t n)

View file

@ -1734,13 +1734,13 @@ repeat:
continue; continue;
} }
submit_read_page(sbi, page, blk_addr, READ_SYNC); submit_read_page(sbi, page, blk_addr, READ_SYNC | REQ_META);
mark_page_accessed(page); mark_page_accessed(page);
f2fs_put_page(page, 0); f2fs_put_page(page, 0);
} }
f2fs_submit_read_bio(sbi, READ_SYNC); f2fs_submit_read_bio(sbi, READ_SYNC | REQ_META);
return blkno - start; return blkno - start;
} }