[f2fs-dev] [PATCH 2/2] mkfs.f2fs: fix missing endian conversion

2014-11-13 Thread Changman Lee
This is for conversion from cpu to little endian and vice versa. Signed-off-by: Changman Lee cm224@samsung.com --- mkfs/f2fs_format.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mkfs/f2fs_format.c b/mkfs/f2fs_format.c index 0a9d728..c0028a3 100644 ---

[f2fs-dev] [fsck.f2fs] Not seeing the main bitmap getting written back out?

2014-11-13 Thread JP Abgrall
With a top-of-tree master f2fs-tools. 232ce7671ea505dfbb9f0ca7be74516ca9687a7b tries to fix the wrong segment types. Running fsck more than twice shows the same errors... # fsck.f2fs -f /dev/block/platform/sdhci-tegra.3/by-name/UDA ... [FIX] (f2fs_set_main_bitmap: 36) -- Wrong segment type

[f2fs-dev] [PATCH 21/56] fs/f2fs: support compiling out splice

2014-11-13 Thread Pieter Smith
Compile out splice support from f2fs when the splice-family of syscalls is not supported by the system (i.e. CONFIG_SYSCALL_SPLICE is undefined). Signed-off-by: Pieter Smith pie...@boesman.nl --- fs/f2fs/file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[f2fs-dev] [PATCH] fsck.f2fs: add a missing 'fixed' during chk_dentries()

2014-11-13 Thread JP Abgrall
One of the cases would update the dentries but not set fixed=1 causing the update to not be written out. Change-Id: I111d599f93f7d5306dacd7d62da946fdb5c262ee Signed-off-by: JP Abgrall j...@google.com --- :100644 100644 78737d5... fa667dc... M fsck/fsck.c fsck/fsck.c | 1 + 1 file changed, 1

[f2fs-dev] [PATCH 2/3] f2fs: fix deadlock to grab 0'th data page

2014-11-13 Thread Jaegeuk Kim
The scenario is like this. One trhead triggers: f2fs_write_data_pages lock_page f2fs_write_data_page f2fs_lock_op - wait The other thread triggers: f2fs_truncate truncate_blocks f2fs_lock_op truncate_partial_data_page lock_page - wait for locking

Re: [f2fs-dev] [PATCH 1/5] f2fs: disable roll-forward when active_logs = 2

2014-11-13 Thread Jaegeuk Kim
On Wed, Nov 12, 2014 at 07:43:12AM +0900, Changman Lee wrote: On Mon, Nov 10, 2014 at 07:07:59AM -0800, Jaegeuk Kim wrote: Hi Changman, On Mon, Nov 10, 2014 at 06:54:37PM +0900, Changman Lee wrote: On Sat, Nov 08, 2014 at 11:36:05PM -0800, Jaegeuk Kim wrote: The roll-forward

Re: [f2fs-dev] [PATCH] f2fs: add cleancache support

2014-11-13 Thread Jaegeuk Kim
Hi Changman, On Thu, Nov 13, 2014 at 02:34:50PM +0900, Changman Lee wrote: To use cleancache, fs must explicitly enable cleancache by calling cleancache_init_fs. Good catch! Prior to merge this patch, can you share any testing results or performance numbers? What condition will be the best

Re: [f2fs-dev] [PATCH] f2fs: add cleancache support

2014-11-13 Thread Chao Yu
Hi Changman, -Original Message- From: Changman Lee [mailto:cm224@samsung.com] Sent: Thursday, November 13, 2014 1:35 PM To: linux-fsde...@vger.kernel.org; linux-f2fs-devel@lists.sourceforge.net Subject: [f2fs-dev] [PATCH] f2fs: add cleancache support To use cleancache, fs must

Re: [f2fs-dev] [PATCH] f2fs: add cleancache support

2014-11-13 Thread Changman Lee
On Fri, Nov 14, 2014 at 11:08:15AM +0800, Chao Yu wrote: Hi Changman, -Original Message- From: Changman Lee [mailto:cm224@samsung.com] Sent: Thursday, November 13, 2014 1:35 PM To: linux-fsde...@vger.kernel.org; linux-f2fs-devel@lists.sourceforge.net Subject: [f2fs-dev]

Re: [f2fs-dev] [PATCH] f2fs: add cleancache support

2014-11-13 Thread Changman Lee
On Thu, Nov 13, 2014 at 05:27:51PM -0800, Jaegeuk Kim wrote: Hi Changman, On Thu, Nov 13, 2014 at 02:34:50PM +0900, Changman Lee wrote: To use cleancache, fs must explicitly enable cleancache by calling cleancache_init_fs. Good catch! Prior to merge this patch, can you share any