[f2fs-dev] [RFC 2/5] f2fs: Handle inline data read and write

2013-06-03 Thread Huajun Li
Hook inline data read/write in address space operations. Signed-off-by: Huajun Li Signed-off-by: Haicheng Li --- fs/f2fs/data.c | 78 ++-- fs/f2fs/file.c |9 +-- 2 files changed, 83 insertions(+), 4 deletions(-) diff --git a/fs/f2fs

[f2fs-dev] [RFC 4/5] f2fs: Add Kconfig interface for inline data support

2013-06-03 Thread Huajun Li
From: Haicheng Li Add Kconfig interface for inline data support, and update Makefile to compile new added source file. Signed-off-by: Haicheng Li Signed-off-by: Huajun Li --- fs/f2fs/Kconfig | 10 ++ fs/f2fs/Makefile |1 + 2 files changed, 11 insertions(+) diff --git a/fs/f2fs

[f2fs-dev] [RFC 0/5] Enable f2fs support inline data

2013-06-03 Thread Huajun Li
f2fs inode is so large, small files can be stored directly in the inode, rather than just storing a single block address and storing the data elsewhere. This RFC patch set is just to enable f2fs support inline data: files less than about 3.6K can be stored directly in inode block. TODO: make smal

[f2fs-dev] [RFC 3/5] f2fs: Key functions to handle inline data

2013-06-03 Thread Huajun Li
Functions to implement inline data read/write, and move inline data to normal data block when file size exceeds inline data limitation. Signed-off-by: Huajun Li Signed-off-by: Haicheng Li --- fs/f2fs/inline.c | 152 ++ 1 file changed, 152 ins

[f2fs-dev] [RFC 1/5] f2fs: Add helper functions and flag to support inline data

2013-06-03 Thread Huajun Li
From: Haicheng Li Add a new flag i_dyn_flags to struct f2fs_inode_info to indicate whether the inode has inline data, and sync the flag with raw inode while update file. Signed-off-by: Haicheng Li Signed-off-by: Huajun Li --- fs/f2fs/f2fs.h | 70

[f2fs-dev] [RFC 5/5] f2fs: add tracepoints to debug inline data operations

2013-06-03 Thread Huajun Li
From: Haicheng Li Add tracepoints for: f2fs_read_inline_data(), f2fs_convert_inline_data(), f2fs_write_inline_data(). Cc: Steven Rostedt Signed-off-by: Haicheng Li Signed-off-by: Huajun Li --- fs/f2fs/inline.c|4 +++ include/trace/events/f2fs.h | 69

[f2fs-dev] [SPAM] Advancement in Technology

2013-06-03 Thread DesignBuddy's
www.designbuddys.com When You Choose DesignBuddy's You Get a Web Company that is Full of Energy We Offer:

Re: [f2fs-dev] [RFC 5/5] f2fs: add tracepoints to debug inline data operations

2013-06-03 Thread Steven Rostedt
On Mon, 2013-06-03 at 18:04 +0800, Huajun Li wrote: > From: Haicheng Li > > Add tracepoints for: f2fs_read_inline_data(), f2fs_convert_inline_data(), > f2fs_write_inline_data(). > > Cc: Steven Rostedt > Signed-off-by: Haicheng Li > Signed-off-by: Huajun Li > --- > fs/f2fs/inline.c

Re: [f2fs-dev] [RFC 5/5] f2fs: add tracepoints to debug inline data operations

2013-06-03 Thread Haicheng Li
On Mon, Jun 03, 2013 at 09:50:00AM -0400, Steven Rostedt wrote: > Can you convert the above to use DECLARE_EVENT_CLASS() and > DEFINE_EVENT(), as the above three are basically the same. You'll save a > few K in text by doing so. sure, thank you for the review. > > > + > > #endif /* _TRACE_F2FS

Re: [f2fs-dev] [RFC 0/5] Enable f2fs support inline data

2013-06-03 Thread Jaegeuk Kim
Hi, This feature is one of my todo items. ;) Thank you for the contribution. Before reviewing the below code intensively, we need to check the following issues. - deadlock conditions - FS consistency - recovery routine Could you check one more time? Thanks again, 2013-06-03 (월), 18:04 +0800, H

Re: [f2fs-dev] [PATCH 1/2] f2fs: add remount_fs callback support

2013-06-03 Thread Gu Zheng
On 06/01/2013 03:20 PM, Namjae Jeon wrote: > From: Namjae Jeon > > Add the f2fs_remount function call which will be used > during the filesystem remounting. This function > will help us to change the mount options specific to > f2fs. > > Also modify the f2fs background_gc mount option, which >

Re: [f2fs-dev] [RFC 0/5] Enable f2fs support inline data

2013-06-03 Thread Namjae Jeon
Hi. Huajun. I agree jaegeuk's opinion. Additionally, It is better that you describe the effect in change-log when this feature is added to f2fs. e.g. 1. how much space is saved when storing kernel-tree(small files) ? 2. small files creation performance test. 3. file look-up performance

Re: [f2fs-dev] [RFC 0/5] Enable f2fs support inline data

2013-06-03 Thread Haicheng Li
Hi Jaegeuk & Namjae, Sure, we'll address your comments. And this version is RFC, just wanna to make sure this feature is meaningful for f2fs project, and there is no obvious mistake, e.g. missing some critical path. And if you team has some special opensource test suites used in your daily f2fs t