Re: [f2fs-dev] [PATCH v2] f2fs: refactor bio-related operations

2013-12-04 Thread Jaegeuk Kim
Hi, + if (btype == META) + rw |= REQ_META; + + if (is_read_io(rw)) { + if (sync) + rw |= READ_SYNC; + submit_bio(rw, io-bio); + trace_f2fs_submit_read_bio(sbi-sb, rw, type, io-bio); + io-bio = NULL; +

[f2fs-dev] [PATCH 1/3] f2fs: use inner macro GFP_F2FS_ZERO for simplification

2013-12-04 Thread Chao Yu
Use inner macro GFP_F2FS_ZERO to instead of GFP_NOFS | __GFP_ZERO for simplification of code. Signed-off-by: Chao Yu chao2...@samsung.com --- fs/f2fs/node.c |2 +- fs/f2fs/recovery.c |2 +- fs/f2fs/super.c|2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git

[f2fs-dev] [PATCH 3/3] f2fs: introduce f2fs_cache_node_page() to add page into node_inode cache

2013-12-04 Thread Chao Yu
This patch introduces f2fs_cache_node_page(), in this function, page which is readed ahead will be copy to node_inode's mapping cache. It will avoid rereading these node pages. Signed-off-by: Chao Yu chao2...@samsung.com --- fs/f2fs/node.c | 30 ++ 1 file changed,

[f2fs-dev] [PATCH 2/3] f2fs: avoid unneeded page release for correct _count of page

2013-12-04 Thread Chao Yu
In find_fsync_dnodes() and recover_data(), our flow is like this: -f2fs_submit_page_bio() - f2fs_put_page() - page_cache_release() page-_count declined to zero. -__free_pages() - put_page_testzero() page-_count will be declined again. We will get a