[f2fs-dev] [PATCH 2/2] f2fs: avoid variable length array

2015-02-10 Thread Jaegeuk Kim
Instead of using variable length array, this patch let preallocate memory for them. Signed-off-by: Jaegeuk Kim --- fs/f2fs/debug.c | 1 + fs/f2fs/segment.c | 10 -- fs/f2fs/segment.h | 1 + 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/fs/f2fs/debug.c b/fs/f2fs/debu

[f2fs-dev] [PATCH 1/2] f2fs: fix sparse warnings

2015-02-10 Thread Jaegeuk Kim
This patch resolves the following warnings. include/trace/events/f2fs.h:150:1: warning: expression using sizeof bool include/trace/events/f2fs.h:180:1: warning: expression using sizeof bool include/trace/events/f2fs.h:990:1: warning: expression using sizeof bool include/trace/events/f2fs.h:990:1:

[f2fs-dev] [PATCH 4/4] f2fs: allocate data blocks in advance for f2fs_direct_IO

2015-02-10 Thread Jaegeuk Kim
This patch adds preallocation for data blocks to prepare f2fs_direct_IO. Signed-off-by: Jaegeuk Kim --- fs/f2fs/data.c | 57 ++--- 1 file changed, 54 insertions(+), 3 deletions(-) diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 26e2476..985

[f2fs-dev] [PATCH 3/4] f2fs: introduce macros to convert bytes and blocks in f2fs

2015-02-10 Thread Jaegeuk Kim
This patch adds two macros for transition between byte and block offsets. Currently, f2fs only supports 4KB blocks, so use the default size for now. Signed-off-by: Jaegeuk Kim --- fs/f2fs/checkpoint.c| 7 +++ fs/f2fs/file.c | 3 +-- fs/f2fs/segment.c | 8 include/

[f2fs-dev] [PATCH 2/4] f2fs: call set_buffer_new for get_block

2015-02-10 Thread Jaegeuk Kim
This patch fixes wrong handling of buffer_new flag in get_block. If f2fs allocates new blocks and mapped buffer_head, it needs to set buffer_new for the bh_result. Signed-off-by: Jaegeuk Kim --- fs/f2fs/data.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fs/f2fs/data.c

[f2fs-dev] [PATCH 1/4] f2fs: check node page contents all the time

2015-02-10 Thread Jaegeuk Kim
In get_node_page, if the page is up-to-date, we assumed that the page was not reclaimed at all. But, sometimes it was reported that its contents was missing. So, just for sure, let's check its mapping and contents. Signed-off-by: Jaegeuk Kim --- fs/f2fs/node.c | 7 +++ 1 file changed, 3 inse

Re: [f2fs-dev] [PATCH 0/9 v5] make xfs/tests generic by introducing shutdown for filesystems

2015-02-10 Thread Jaegeuk Kim
On Tue, Feb 10, 2015 at 05:04:14PM +1100, Dave Chinner wrote: > On Thu, Feb 05, 2015 at 10:37:04PM -0800, Jaegeuk Kim wrote: > > Thanks to Dave. :) > > > > Change log from v4: > > o add mkfs in _require_scratch_shutdown > > o add _require_fiemap and _extent_hole_counts > > o add _require_logsta

Re: [f2fs-dev] [PATCH 8/9 v6] xfs/087: give quota mount option per filesystem

2015-02-10 Thread Jaegeuk Kim
Change log from v5: o move function into the test script -- >8 -- This patch add _get_quota_option to assign the mount option selectively. Signed-off-by: Jaegeuk Kim --- tests/xfs/087 | 19 --- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/tests/xfs/087 b/test

Re: [f2fs-dev] [PATCH 2/9 v6] common/rc: add _require_fiemap and counting extents and holes

2015-02-10 Thread Jaegeuk Kim
Change log from v5: o split _count_extents and _count_holes -- >8 -- This is to detect whether fiemap tool supports or not. For the follwoing tests, this patch adds general script to get extent and hole counts. xfs/137 (data vs filesize) xfs/138 (data vs filesize vs truncate)