Re: [f2fs-dev] [PATCH] f2fs: optimize the flow of f2fs_map_blocks

2015-12-17 Thread Chao Yu
> -Original Message- > From: Fan Li [] > Sent: Thursday, December 17, 2015 1:21 PM > To: 'Jaegeuk Kim' > Cc:; > Subject: [f2fs-dev] [PATCH] f2fs: optimize the flow of f2fs_map_blocks > >

[f2fs-dev] [PATCH] f2fs: add a tracepoint for sync_dirty_inodes

2015-12-17 Thread Chao Yu
This patch adds a tracepoint for sync_dirty_inodes. Signed-off-by: Chao Yu --- fs/f2fs/checkpoint.c| 8 include/trace/events/f2fs.h | 38 ++ 2 files changed, 46 insertions(+) diff --git a/fs/f2fs/checkpoint.c

[f2fs-dev] [PATCH v3 5/7] f2fs: stat dirty regular/symlink inodes

2015-12-17 Thread Chao Yu
Add to stat dirty regular and symlink inode for showing in debugfs. Signed-off-by: Chao Yu --- v2: - rename F2FS_DIRTY_DATAS to F2FS_DIRTY_DATA v3: - fix compiler warning --- fs/f2fs/checkpoint.c | 7 ++- fs/f2fs/debug.c | 6 +- fs/f2fs/f2fs.h | 13

[f2fs-dev] [PATCH v3 7/7] f2fs: support data flush in background

2015-12-17 Thread Chao Yu
Previously, when finishing a checkpoint, we have persisted all fs meta info including meta inode, node inode, dentry page of directory inode, so, after a sudden power cut, f2fs can recover from last checkpoint with full directory structure. But during checkpoint, we didn't flush dirty pages of

[f2fs-dev] [PATCH 2/2] defrag.f2fs: return error if there is no space

2015-12-17 Thread Jaegeuk Kim
This patch checks whether there is a space or not to allocate new blocks. Signed-off-by: Jaegeuk Kim --- fsck/mount.c | 28 ++-- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/fsck/mount.c b/fsck/mount.c index 735ed90..4b38df8 100644

[f2fs-dev] [PATCH] libf2fs: fix incorrect type define of declaration

2015-12-17 Thread Chao Yu
When compiling f2fs toolset in 32-bits machine, following error was reported: libf2fs.c:342:5: error: conflicting types for 'find_next_bit_le' ../include/f2fs_fs.h:864:22: note: previous declaration of 'find_next_bit_le' was here libf2fs.c:348:5: error: conflicting types for