[f2fs-dev] [PATCH 1/2] f2fs: introduce F2FS_INODE macro to get f2fs_inode

2013-12-26 Thread Jaegeuk Kim
This patch introduces F2FS_INODE that returns struct f2fs_inode * from the inode page. By using this macro, we can remove unnecessary casting codes like below. struct f2fs_inode *ri = F2FS_NODE(inode_page)-i; - struct f2fs_inode *ri = F2FS_INODE(inode_page); Signed-off-by: Jaegeuk Kim

Re: [f2fs-dev] [PATCH 1/2] f2fs: introduce F2FS_INODE macro to get f2fs_inode

2013-12-26 Thread Chao Yu
Hi, -Original Message- From: Jaegeuk Kim [mailto:jaegeuk@samsung.com] Sent: Thursday, December 26, 2013 4:17 PM Cc: linux-fsde...@vger.kernel.org; linux-ker...@vger.kernel.org; linux-f2fs-devel@lists.sourceforge.net Subject: [f2fs-dev] [PATCH 1/2] f2fs: introduce F2FS_INODE

[f2fs-dev] [PATCH] f2fs: convert max_orphans to a field of f2fs_sb_info

2013-12-26 Thread Gu Zheng
Previously, we need to calculate the max orphan num when we try to acquire an orphan inode, but it's a stable value since the super block was inited. So converting it to a field of f2fs_sb_info and use it directly when needed seems a better choose. Signed-off-by: Gu Zheng guz.f...@cn.fujitsu.com

[f2fs-dev] [PATCH] f2fs: check the blocksize before calling generic_direct_IO path

2013-12-26 Thread Jaegeuk Kim
The f2fs supports 4KB block size. If user requests dwrite with under 4KB data, it allocates a new 4KB data block. However, f2fs doesn't add zero data into the untouched data area inside the newly allocated data block. This incurs an error during the xfstest #263 test as follow. 263 12s ...

Re: [f2fs-dev] [PATCH v2] f2fs: introduce F2FS_INODE macro to get f2fs_inode

2013-12-26 Thread Jaegeuk Kim
Hi, Nice catch. :) Change log from v1: o handle recover_inode_page too From 58bfaf44df58082c72882b235cae611c975537d4 Mon Sep 17 00:00:00 2001 From: Jaegeuk Kim jaegeuk@samsung.com Date: Thu, 26 Dec 2013 16:30:41 +0900 Subject: [PATCH] f2fs: introduce F2FS_INODE macro to get f2fs_inode

[f2fs-dev] Можем собрать для Вас контакты только Ваших потенциальных клиентов несколько десятков тысяч в течение суток Skype: prodawez389

2013-12-26 Thread linux-f2fs-devel
Можем собрать для Вас контакты только Ваших потенциальных клиентов несколько десятков тысяч в течение суток Skype: prodawez389 -- Rapidly troubleshoot problems before they affect your business. Most IT organizations

[f2fs-dev] [PATCH 4/6] f2fs: refactor f2fs_convert_inline_data

2013-12-26 Thread Jaegeuk Kim
This patch refactors f2fs_convert_inline_data to check a couple of conditions internally for deciding whether it needs to convert inline_data or not. So, the new f2fs_convert_inline_data initially checks: 1) f2fs_has_inline_data(), and 2) the data size to be changed. If the inode has inline_data

[f2fs-dev] [PATCH 6/6] f2fs: add inline_data recovery routine

2013-12-26 Thread Jaegeuk Kim
This patch adds a inline_data recovery routine with the following policy. [prev.] [next] of inline_data flag o o - recover inline_data o x - remove inline_data, and then recover data blocks x o - remove inline_data, and then recover inline_data x x -

[f2fs-dev] [PATCH 1/6] f2fs: don't need to get f2fs_lock_op for the inline_data test

2013-12-26 Thread Jaegeuk Kim
This patch locates checking the inline_data prior to calling f2fs_lock_op() in truncate_blocks(), since getting the lock is unnecessary. Signed-off-by: Jaegeuk Kim jaegeuk@samsung.com --- fs/f2fs/file.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git

[f2fs-dev] [PATCH 2/6] f2fs: convert inline_data for punch_hole

2013-12-26 Thread Jaegeuk Kim
In the punch_hole(), let's convert inline_data all the time for simplicity and to avoid potential deadlock conditions. It is pretty much not a big deal to do this. Signed-off-by: Jaegeuk Kim jaegeuk@samsung.com --- fs/f2fs/file.c | 22 +++--- 1 file changed, 3 insertions(+),

Re: [f2fs-dev] [PATCH 5/6] f2fs: add the number of inline_data files to status info

2013-12-26 Thread Jaegeuk Kim
Change log from v1: o fix kbuild failure From a9ebdcffd30b9642b2973ea8e9688e7b0d4bf7e3 Mon Sep 17 00:00:00 2001 From: Jaegeuk Kim jaegeuk@samsung.com Date: Tue, 26 Nov 2013 11:08:57 +0900 Subject: [PATCH] f2fs: add the number of inline_data files to status info This patch adds the number of