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
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:
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
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/
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
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
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
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
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)