Re: [f2fs-dev] [PATCH] f2fs: add new wraper function for reading inline data

2016-02-18 Thread Shawn Lin
On 2016/2/19 15:35, Chao Yu wrote: > Hi Shawn, > >> -Original Message- >> From: Shawn Lin [mailto:shawn@rock-chips.com] >> Sent: Friday, February 19, 2016 10:50 AM >> To: Jaegeuk Kim; Changman Lee >> Cc: Chao Yu; linux-f2fs-devel@lists.sourceforge.net; >> linux-ker...@vger.kernel.org;

Re: [f2fs-dev] [PATCH] f2fs: add new wraper function for reading inline data

2016-02-18 Thread Chao Yu
Hi Shawn, > -Original Message- > From: Shawn Lin [mailto:shawn@rock-chips.com] > Sent: Friday, February 19, 2016 10:50 AM > To: Jaegeuk Kim; Changman Lee > Cc: Chao Yu; linux-f2fs-devel@lists.sourceforge.net; > linux-ker...@vger.kernel.org; Shawn Lin > Subject: [PATCH] f2fs: add new w

[f2fs-dev] [PATCH] f2fs: add new wraper function for reading inline data

2016-02-18 Thread Shawn Lin
This patch add __read_inline_data which will no check PageUptodate and page->index. This can be reused by f2fs_convert_inline_page to reduce the redundant code copied from read_inline_data. Signed-off-by: Shawn Lin --- fs/f2fs/inline.c | 26 -- 1 file changed, 12 inserti

[f2fs-dev] [PATCH] f2fs: set flush_merge by default

2016-02-18 Thread Jaegeuk Kim
This helps mitigating redundant cache_flush commands. Signed-off-by: Jaegeuk Kim --- fs/f2fs/super.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index fa4bbe0..d643907 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -775,6 +775,7 @@ static void def

[f2fs-dev] [PATCH] mkfs.f2fs: recalculate sit_segments by max_sit_bitmap_size

2016-02-18 Thread Junling Zheng
In most cases, sit_bitmap_size is smaller than MAX_SIT_BITMAP_SIZE. However, in some extreme scenarios, such as 16TB, sit_bitmap_size could be larger than MAX_SIT_BITMAP_SIZE. In this case, we should recalculate the sit_segments through max_sit_bitmap_size to prevent sit_ver_bitmap_bytesize got f