aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorChangman Lee <cm224.lee@samsung.com>2013-11-24 01:13:08 -0500
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2013-12-22 20:18:03 -0500
commit03232305ff3cf44761f7ea271f7c9af5105392b9 (patch)
tree6731d11f15e1b52b15b49ac642ebc3dd9e5ee172 /fs
parenta709f4a2f22c0ebaed1d99aee63ab44ffc2ba3d0 (diff)
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>
Diffstat (limited to 'fs')
-rw-r--r--fs/f2fs/checkpoint.c2
-rw-r--r--fs/f2fs/node.c4
-rw-r--r--fs/f2fs/segment.c4
3 files changed, 5 insertions, 5 deletions
diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c
index eae8dc3e1c08..7fe69ff2bfe7 100644
--- a/fs/f2fs/checkpoint.c
+++ b/fs/f2fs/checkpoint.c
@@ -61,7 +61,7 @@ repeat:
61 if (PageUptodate(page)) 61 if (PageUptodate(page))
62 goto out; 62 goto out;
63 63
64 if (f2fs_readpage(sbi, page, index, READ_SYNC)) 64 if (f2fs_readpage(sbi, page, index, READ_SYNC | REQ_META | REQ_PRIO))
65 goto repeat; 65 goto repeat;
66 66
67 lock_page(page); 67 lock_page(page);
diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c
index b212599b0da4..0fe9a9720b39 100644
--- a/fs/f2fs/node.c
+++ b/fs/f2fs/node.c
@@ -106,11 +106,11 @@ static void ra_nat_pages(struct f2fs_sb_info *sbi, int nid)
106 f2fs_put_page(page, 1); 106 f2fs_put_page(page, 1);
107 continue; 107 continue;
108 } 108 }
109 submit_read_page(sbi, page, index, READ_SYNC); 109 submit_read_page(sbi, page, index, READ_SYNC | REQ_META);
110 mark_page_accessed(page); 110 mark_page_accessed(page);
111 f2fs_put_page(page, 0); 111 f2fs_put_page(page, 0);
112 } 112 }
113 f2fs_submit_read_bio(sbi, READ_SYNC); 113 f2fs_submit_read_bio(sbi, READ_SYNC | REQ_META);
114} 114}
115 115
116static struct nat_entry *__lookup_nat_cache(struct f2fs_nm_info *nm_i, nid_t n) 116static struct nat_entry *__lookup_nat_cache(struct f2fs_nm_info *nm_i, nid_t n)
diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c
index 33ab378df5bd..1e8371392dcd 100644
--- a/fs/f2fs/segment.c
+++ b/fs/f2fs/segment.c
@@ -1734,13 +1734,13 @@ repeat:
1734 continue; 1734 continue;
1735 } 1735 }
1736 1736
1737 submit_read_page(sbi, page, blk_addr, READ_SYNC); 1737 submit_read_page(sbi, page, blk_addr, READ_SYNC | REQ_META);
1738 1738
1739 mark_page_accessed(page); 1739 mark_page_accessed(page);
1740 f2fs_put_page(page, 0); 1740 f2fs_put_page(page, 0);
1741 } 1741 }
1742 1742
1743 f2fs_submit_read_bio(sbi, READ_SYNC); 1743 f2fs_submit_read_bio(sbi, READ_SYNC | REQ_META);
1744 return blkno - start; 1744 return blkno - start;
1745} 1745}
1746 1746