[f2fs-dev] dentry Hash Method

2013-11-03 Thread Zachary
Hello, I was looking at the source code for f2fs with regard to how dentries are created and I have a question about how the __le32 hash_code is calculated. If I have a file like /etc/fstab, would the hash be f2fs_dentry_hash("/etc/fstab", 10) or f2fs_dentry_hash("fstab", 5) or something complete

[f2fs-dev] Porting f2fs tools to Android.

2013-11-03 Thread Konstantin Dorfman
Hello, I'm working on [subj]. Particularly porting mkfs.f2fs and fsck.f2fs to android build environment. Do you know about similar effort? Anybody in this community is interested? Thanks, Kostya -- sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc.

[f2fs-dev] [PATCH 1/1] No need to do recovery if there is no available CP

2013-11-03 Thread Huajun Li
From: Huajun Li Normally we expect an empty partition after formatting by mkfs.f2fs. But in this case, when we format a dirty partition and mount it again. The former file will be recovered and available again! and kernel log shows a recovery procedure is evoked. This patch adds a new flag CP_EXI

Re: [f2fs-dev] Porting f2fs tools to Android.

2013-11-03 Thread Jaegeuk Kim
Hi, 2013-11-03 (일), 15:34 +0200, Konstantin Dorfman: > Hello, > > I'm working on [subj]. > Particularly porting mkfs.f2fs and fsck.f2fs to android build environment. > > Do you know about similar effort? So far, I couldn't have heard about that. Well, someone who are working on android may be i

Re: [f2fs-dev] dentry Hash Method

2013-11-03 Thread Jaegeuk Kim
Hi, 2013-11-03 (일), 02:47 -0500, Zachary: > Hello, > > I was looking at the source code for f2fs with regard to how dentries > are created and I have a question about how the __le32 hash_code is > calculated. If I have a file like /etc/fstab, would the hash be > f2fs_dentry_hash("/etc/fstab", 10

Re: [f2fs-dev] [PATCH 1/1] No need to do recovery if there is no available CP

2013-11-03 Thread Jaegeuk Kim
2013-11-03 (일), 23:08 +0800, Huajun Li: > From: Huajun Li > > Normally we expect an empty partition after formatting by > mkfs.f2fs. But in this case, when we format a dirty partition and mount > it again. The former file will be recovered and available again! and > kernel log shows a recovery pr

[f2fs-dev] [PATCH] f2fs: remove unnecessary TestClearPageError when wait pages writeback

2013-11-03 Thread Chao Yu
In wait_on_node_pages_writeback we will test and clear error flag for all pages in radix tree, but not necessary. So we only do this for pages belong to the specified inode. Signed-off-by: Chao Yu --- fs/f2fs/node.c |7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/f

[f2fs-dev] [PATCH] f2fs: cleanup waiting routine for writeback completion during cp

2013-11-03 Thread Changman Lee
use general method supported by kernel Signed-off-by: Changman Lee --- fs/f2fs/checkpoint.c | 25 - fs/f2fs/f2fs.h |2 +- fs/f2fs/segment.c|4 ++-- fs/f2fs/super.c |1 + 4 files changed, 20 insertions(+), 12 deletions(-) diff --git a/fs/f2fs/