[f2fs-dev] [PATCH] fs/f2fs: avoid redundant convert of inline inode

2015-09-15 Thread Zhang Zhen
Encrypted inode for regular file should not have inline_data. Here we check encrypted inode before convert of inline inode to avoid redundant convert. Signed-off-by: Zhang Zhen <zhenzhang.zh...@huawei.com> --- fs/f2fs/data.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff

Re: [f2fs-dev] [PATCH] fs/f2fs: replace open coded nofail allocation in __add_ino_entry

2015-08-24 Thread Zhang Zhen
On 2015/8/24 12:56, Jaegeuk Kim wrote: Hi Zhang, On Mon, Aug 24, 2015 at 11:39:55AM +0800, Zhang Zhen wrote: __add_ino_entry is looping around the allocation request and minics __GFP_NOFAIL behavior without any allocation fallback strategy. Here remove the open coded loop and replace

[f2fs-dev] [PATCH] fs/f2fs: atomically set inode-i_flags

2015-08-23 Thread Zhang Zhen
According to commit 5f16f3225b06 (ext4: atomically set inode-i_flags in ext4_set_inode_flags()). Signed-off-by: Zhang Zhen zhenzhang.zh...@huawei.com --- fs/f2fs/inode.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fs/f2fs/inode.c b/fs/f2fs/inode.c index 2550868

[f2fs-dev] [PATCH] fs/f2fs: replace open coded nofail allocation in __add_ino_entry

2015-08-23 Thread Zhang Zhen
__add_ino_entry is looping around the allocation request and minics __GFP_NOFAIL behavior without any allocation fallback strategy. Here remove the open coded loop and replace it with __GFP_NOFAIL. Signed-off-by: Zhang Zhen zhenzhang.zh...@huawei.com --- fs/f2fs/checkpoint.c | 7 +-- 1 file

[f2fs-dev] [PATCH] f2fs: fix checkpatch warning

2014-05-04 Thread Zhang Zhen
fix the following checkpatch warning: WARNING: do {} while (0) macros should not be semicolon terminated Signed-off-by: Zhang Zhen zhenzhang.zh...@huawei.com --- fs/f2fs/node.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/f2fs/node.h b/fs/f2fs/node.h index 5decc1a

[f2fs-dev] [PATCH] f2fs: atomically set inode-i_flags in f2fs_set_inode_flags()

2014-04-15 Thread Zhang Zhen
. Signed-off-by: Zhang Zhen zhenzhang.zh...@huawei.com --- fs/f2fs/inode.c | 17 + 1 files changed, 9 insertions(+), 8 deletions(-) diff --git a/fs/f2fs/inode.c b/fs/f2fs/inode.c index ee829d3..f7a6553 100644 --- a/fs/f2fs/inode.c +++ b/fs/f2fs/inode.c @@ -12,6 +12,7 @@ #include linux