Re: [f2fs-dev] [PATCH 2/2] generic/066: add _require_metadata_replay

2015-02-27 Thread Filipe David Manana
On Fri, Feb 27, 2015 at 1:10 PM, Lukáš Czerner lczer...@redhat.com wrote: On Fri, 27 Feb 2015, Filipe David Manana wrote: Date: Fri, 27 Feb 2015 11:43:36 + From: Filipe David Manana fdman...@gmail.com To: Lukáš Czerner lczer...@redhat.com Cc: Jaegeuk Kim jaeg...@kernel.org, Filipe Manana

Re: [f2fs-dev] [PATCH 2/2] generic/066: add _require_metadata_replay

2015-02-27 Thread Jaegeuk Kim
Hi Lukas, On Fri, Feb 27, 2015 at 12:34:09PM +0100, Lukáš Czerner wrote: On Thu, 26 Feb 2015, Jaegeuk Kim wrote: Date: Thu, 26 Feb 2015 17:23:47 -0800 From: Jaegeuk Kim jaeg...@kernel.org To: Dave Chinner da...@fromorbit.com Cc: fste...@vger.kernel.org,

Re: [f2fs-dev] [PATCH 2/2] generic/066: add _require_metadata_replay

2015-02-27 Thread Filipe David Manana
On Fri, Feb 27, 2015 at 3:05 PM, Lukáš Czerner lczer...@redhat.com wrote: On Fri, 27 Feb 2015, Filipe David Manana wrote: Date: Fri, 27 Feb 2015 14:34:35 + From: Filipe David Manana fdman...@gmail.com To: Lukáš Czerner lczer...@redhat.com Cc: Jaegeuk Kim jaeg...@kernel.org, Filipe Manana

[f2fs-dev] [PATCH 2/2] f2fs: check its block allocation to avoid producing wrong dirty pages

2015-02-27 Thread Jaegeuk Kim
If a page is cached but its block was deallocated, we don't need to make the page dirty again by gc and truncate_partial_data_page. In that case, it needs to check its block allocation all the time instead of giving up-to-date page. Signed-off-by: Jaegeuk Kim jaeg...@kernel.org ---

Re: [f2fs-dev] [PATCH] f2fs: fix max orphan inodes calculation

2015-02-27 Thread Chao Yu
Hi Wanpeng, -Original Message- From: Wanpeng Li [mailto:wanpeng...@linux.intel.com] Sent: Friday, February 27, 2015 3:05 PM To: Jaegeuk Kim Cc: Wanpeng Li; linux-ker...@vger.kernel.org; linux-f2fs-devel@lists.sourceforge.net Subject: [f2fs-dev] [PATCH] f2fs: fix max orphan inodes

[f2fs-dev] [PATCH] f2fs: don't need to collect dirty sit entries and flush journal when there's no dirty sit entries

2015-02-27 Thread Wanpeng Li
Signed-off-by: Wanpeng Li wanpeng...@linux.intel.com --- fs/f2fs/segment.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index daee4ab..e7b83b6 100644 --- a/fs/f2fs/segment.c +++ b/fs/f2fs/segment.c @@ -1730,6 +1730,9 @@ void

Re: [f2fs-dev] [PATCH 2/2] f2fs: fix the number of orphan inode blocks

2015-02-27 Thread Wanpeng Li
Hi Chao, On Thu, Feb 26, 2015 at 09:33:55AM +0800, Chao Yu wrote: Hi Wanpeng, -Original Message- From: Wanpeng Li [mailto:wanpeng...@linux.intel.com] Sent: Thursday, February 26, 2015 7:57 AM To: Jaegeuk Kim Cc: Wanpeng Li; linux-ker...@vger.kernel.org;

[f2fs-dev] [PATCH] f2fs: fix block_ops trace point

2015-02-27 Thread Wanpeng Li
block operations is used to flush all dirty node and dentry blocks in the page cache and suspend ordinary writing activities, however, there are some facts such like cp error or mount read-only etc which lead to block operations can't be invoked. Current trace point print block_ops start

[f2fs-dev] [PATCH] f2fs: don't need to collect dirty sit entries and flush journal when there's no dirty sit entries

2015-02-27 Thread Wanpeng Li
Don't need to collect dirty sit entries and flush sit journal to sit entries when there's no dirty sit entries. This patch check dirty_sentries earlier just like flush_nat_entries. Signed-off-by: Wanpeng Li wanpeng...@linux.intel.com --- fs/f2fs/segment.c | 6 +++--- 1 file changed, 3

Re: [f2fs-dev] [PATCH] f2fs: fix max orphan inodes calculation

2015-02-27 Thread Wanpeng Li
Hi Chao, On Fri, Feb 27, 2015 at 05:39:39PM +0800, Chao Yu wrote: Hi Wanpeng, -Original Message- From: Wanpeng Li [mailto:wanpeng...@linux.intel.com] Sent: Friday, February 27, 2015 3:05 PM To: Jaegeuk Kim Cc: Wanpeng Li; linux-ker...@vger.kernel.org;

Re: [f2fs-dev] [PATCH 1/2] generic/065: f2fs serves 64KB size with zero data

2015-02-27 Thread Lukáš Czerner
On Thu, 26 Feb 2015, Eric Sandeen wrote: Date: Thu, 26 Feb 2015 20:45:59 -0600 From: Eric Sandeen sand...@sandeen.net To: Jaegeuk Kim jaeg...@kernel.org, Dave Chinner da...@fromorbit.com Cc: fste...@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, Filipe Manana fdman...@suse.com

Re: [f2fs-dev] [PATCH 2/2] generic/066: add _require_metadata_replay

2015-02-27 Thread Lukáš Czerner
On Thu, 26 Feb 2015, Jaegeuk Kim wrote: Date: Thu, 26 Feb 2015 17:23:47 -0800 From: Jaegeuk Kim jaeg...@kernel.org To: Dave Chinner da...@fromorbit.com Cc: fste...@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, Jaegeuk Kim jaeg...@kernel.org, Filipe Manana fdman...@suse.com,

Re: [f2fs-dev] [PATCH 2/2] generic/066: add _require_metadata_replay

2015-02-27 Thread Filipe David Manana
On Fri, Feb 27, 2015 at 11:34 AM, Lukáš Czerner lczer...@redhat.com wrote: On Thu, 26 Feb 2015, Jaegeuk Kim wrote: Date: Thu, 26 Feb 2015 17:23:47 -0800 From: Jaegeuk Kim jaeg...@kernel.org To: Dave Chinner da...@fromorbit.com Cc: fste...@vger.kernel.org,

[f2fs-dev] [PATCH] fs/f2fs: add cond_resched() to sync_dirty_dir_inodes()

2015-02-27 Thread Sebastian Andrzej Siewior
In a preempt-off enviroment a alot of FS activity (write/delete) I run into a CPU stall: | NMI watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [kworker/u2:2:59] | Modules linked in: | CPU: 0 PID: 59 Comm: kworker/u2:2 Tainted: GW 3.19.0-00010-g10c11c51ffed #153 | Workqueue: