[f2fs-dev] [PATCH] f2fs: introduce ra_meta_pages to readahead CP/NAT/SIT pages

2014-01-27 Thread Chao Yu
This patch help us to cleanup the readahead code by merging ra_{sit,nat}_pages function into ra_meta_pages. Additionally the new function is used to readahead cp block in recover_orphan_inodes. Signed-off-by: Chao Yu chao2...@samsung.com --- fs/f2fs/checkpoint.c | 78

[f2fs-dev] [PATCH 4/4] f2fs: fix a build warning

2014-01-27 Thread Jaegeuk Kim
This patch modifies flow a little bit to avoid the following build warnings. src/fs/f2fs/recovery.c: In function ‘check_index_in_prev_nodes’: src/fs/f2fs/recovery.c:288:51: warning: ‘sum.U5390.U52f8.ofs_in_node’ may be used uninitialized in this function [-Wmaybe-uninitialized]

Re: [f2fs-dev] [PATCH] f2fs: use inode mutex to keep atomicity of f2fs_falloc

2014-01-27 Thread Jaegeuk Kim
Hi, 2014-01-28 (화), 10:29 +0800, Chao Yu: Previously without protection of inode mutex, f2fs_falloc and other data correlated operations will interfere with each other. Could you explain a little bit more what kind of scenarios wrt this? So let's use inode mutex to keep atomicity of