[f2fs-dev] f2fs: Add f2fs_balance_fs for direct IO

2014-07-06 Thread Huang Ying
Otherwise, if a large amount of direct IO writes were done, the segment allocation may be failed because no enough segments are gced. Signed-off-by: Huang, Ying --- fs/f2fs/data.c |6 +- 1 file changed, 5 insertions(+), 1 deletion(-) --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -1038,6

[f2fs-dev] [PATCH] f2fs: use inner macro and function to clean up codes

2014-07-06 Thread Chao Yu
In this patch we use below inner macro and function to clean up codes. 1. ADDRS_PER_PAGE 2. SM_I 3. f2fs_readonly Signed-off-by: Chao Yu --- fs/f2fs/file.c| 3 +-- fs/f2fs/segment.c | 9 - fs/f2fs/super.c | 7 +++ 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/

Re: [f2fs-dev] [PATCH] f2fs: do checkpoint for the renamed inode

2014-07-06 Thread Chao Yu
Hi Jaegeuk, > -Original Message- > From: Jaegeuk Kim [mailto:jaeg...@kernel.org] > Sent: Wednesday, July 02, 2014 6:35 PM > To: linux-ker...@vger.kernel.org; linux-fsde...@vger.kernel.org; > linux-f2fs-devel@lists.sourceforge.net > Cc: Jaegeuk Kim > Subject: [f2fs-dev] [PATCH] f2fs: do che

Re: [f2fs-dev] [PATCH 3/4] f2fs: use find_next_bit_le rather than test_bit_le in, find_in_block

2014-07-06 Thread Gu Zheng
Hi Changman, On 07/07/2014 09:45 AM, Changman Lee wrote: > Hello, > > On Fri, Jul 04, 2014 at 11:25:35PM -0700, Jaegeuk Kim wrote: >> To Changman, >> >> Just for sure, can you reproduce this issue in the x86 machine with proper >> benchmarks? (i.e., test_bit_le vs. find_next_bit_le) > > It shows

Re: [f2fs-dev] [PATCH] f2fs: avoid to access NULL pointer in issue_flush_thread

2014-07-06 Thread Gu Zheng
Hi Yu, Thanks for your catch. Regards, Gu On 07/07/2014 09:39 AM, Chao Yu wrote: > Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=75861 > > Denis 2014-05-10 11:28:59 UTC reported: > "F2FS-fs (mmcblk0p28): mounting.. > Unable to handle kernel NULL pointer dereference at virtual address 00

Re: [f2fs-dev] [PATCH 3/4] f2fs: use find_next_bit_le rather than test_bit_le in, find_in_block

2014-07-06 Thread Changman Lee
Hello, On Fri, Jul 04, 2014 at 11:25:35PM -0700, Jaegeuk Kim wrote: > To Changman, > > Just for sure, can you reproduce this issue in the x86 machine with proper > benchmarks? (i.e., test_bit_le vs. find_next_bit_le) It shows quite a different result of bit_mod_test between server and desktop.

[f2fs-dev] [PATCH] f2fs: avoid to access NULL pointer in issue_flush_thread

2014-07-06 Thread Chao Yu
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=75861 Denis 2014-05-10 11:28:59 UTC reported: "F2FS-fs (mmcblk0p28): mounting.. Unable to handle kernel NULL pointer dereference at virtual address 0018 ... [] (_raw_spin_lock+0x3c/0x70) from [] (issue_flush_thread+0x50/0x17c) [] (issu

Re: [f2fs-dev] [PATCH 1/2] f2fs: check name_len of dir entry to prevent from deadloop

2014-07-06 Thread Chao Yu
Hi Jaegeuk, > -Original Message- > From: Jaegeuk Kim [mailto:jaeg...@kernel.org] > Sent: Saturday, July 05, 2014 2:43 PM > To: Chao Yu > Cc: Changman Lee; linux-f2fs-devel@lists.sourceforge.net; > linux-fsde...@vger.kernel.org; > linux-ker...@vger.kernel.org > Subject: Re: [f2fs-dev][PATC