Re: [f2fs-dev] [PATCH] f2fs: enable inline data by default

2015-03-19 Thread Wang Shilong
Hi, > > Enable inline_data feature by default since it brings us better > performance and space utilization and now has already stable. > > Signed-off-by: Wanpeng Li > --- > Documentation/filesystems/f2fs.txt | 2 -- > fs/f2fs/f2fs.h | 11 +-- > fs/f2fs/inline.c

[f2fs-dev] [PATCH 4/4] f2fs: preserve extent info for extent cache

2015-03-19 Thread Chao Yu
This patch tries to preserve last extent info in extent tree cache into on-disk inode, so this can help us to reuse the last extent info next time for performance. Signed-off-by: Chao Yu --- fs/f2fs/data.c | 49 + fs/f2fs/f2fs.h | 8 fs

[f2fs-dev] [PATCH 3/4] f2fs: initialize extent tree with on-disk extent info of inode

2015-03-19 Thread Chao Yu
With normal extent info cache, we records largest extent mapping between logical block and physical block into extent info, and we persist extent info in on-disk inode. When we enable extent tree cache, if extent info of on-disk inode is exist, and the extent is not a small fragmented mapping exte

[f2fs-dev] [PATCH 2/4] f2fs: introduce __{find,grab}_extent_tree

2015-03-19 Thread Chao Yu
This patch introduces __{find,grab}_extent_tree for reusing by following patches. Signed-off-by: Chao Yu --- fs/f2fs/data.c | 79 +++--- 1 file changed, 48 insertions(+), 31 deletions(-) diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index edeba

[f2fs-dev] [PATCH 1/4] f2fs: split set_data_blkaddr from f2fs_update_extent_cache

2015-03-19 Thread Chao Yu
Split __set_data_blkaddr from f2fs_update_extent_cache for readability. Additionally rename __set_data_blkaddr to set_data_blkaddr for exporting. Signed-off-by: Chao Yu --- fs/f2fs/data.c | 10 -- fs/f2fs/f2fs.h | 1 + fs/f2fs/file.c | 1 + fs/f2fs/inline.c | 1 + fs/f2

Re: [f2fs-dev] [PATCH 4/4] f2fs: avoid wrong f2fs_bug_on when truncating inline_data

2015-03-19 Thread Chao Yu
Hi Jeageuk, > -Original Message- > From: Jaegeuk Kim [mailto:jaeg...@kernel.org] > Sent: Thursday, March 19, 2015 1:58 AM > To: Chao Yu > Cc: linux-ker...@vger.kernel.org; linux-fsde...@vger.kernel.org; > linux-f2fs-devel@lists.sourceforge.net > Subject: Re: [f2fs-dev] [PATCH 4/4] f2fs: av

Re: [f2fs-dev] [PATCH 2/4 v2] f2fs: set buffer_new when new blocks are allocated

2015-03-19 Thread Chao Yu
> -Original Message- > From: Jaegeuk Kim [mailto:jaeg...@kernel.org] > Sent: Thursday, March 19, 2015 1:57 AM > To: Chao Yu > Cc: linux-ker...@vger.kernel.org; linux-fsde...@vger.kernel.org; > linux-f2fs-devel@lists.sourceforge.net > Subject: Re: [f2fs-dev] [PATCH 2/4 v2] f2fs: set buffer_n