f2fs: send REQ_META or REQ_PRIO when reading meta area
authorChangman Lee <cm224.lee@samsung.com>
Sun, 24 Nov 2013 06:13:08 +0000 (15:13 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Mon, 23 Dec 2013 01:18:03 +0000 (10:18 +0900)
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>
fs/f2fs/checkpoint.c
fs/f2fs/node.c
fs/f2fs/segment.c

index eae8dc3e1c0821b342ae5422f21fad65dc8dcf4d..7fe69ff2bfe75865fae8b3f55d4bbb92631a224c 100644 (file)
@@ -61,7 +61,7 @@ repeat:
        if (PageUptodate(page))
                goto out;
 
-       if (f2fs_readpage(sbi, page, index, READ_SYNC))
+       if (f2fs_readpage(sbi, page, index, READ_SYNC | REQ_META | REQ_PRIO))
                goto repeat;
 
        lock_page(page);
index b212599b0da4be66a19f1ff3c5d4ad06bc771858..0fe9a9720b39e9a31f81b17eee86a75262c3e160 100644 (file)
@@ -106,11 +106,11 @@ static void ra_nat_pages(struct f2fs_sb_info *sbi, int nid)
                        f2fs_put_page(page, 1);
                        continue;
                }
-               submit_read_page(sbi, page, index, READ_SYNC);
+               submit_read_page(sbi, page, index, READ_SYNC | REQ_META);
                mark_page_accessed(page);
                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)
index 33ab378df5bd80795eaf17ee1846dd42850e7697..1e8371392dcdb615b643630e0535b340463a4f94 100644 (file)
@@ -1734,13 +1734,13 @@ repeat:
                        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);
                f2fs_put_page(page, 0);
        }
 
-       f2fs_submit_read_bio(sbi, READ_SYNC);
+       f2fs_submit_read_bio(sbi, READ_SYNC | REQ_META);
        return blkno - start;
 }