[f2fs-dev] [PATCH 1/2] f2fs: add tracepoint for set_page_dirty

2013-10-24 Thread Jaegeuk Kim
This patch adds a tracepoint for set_page_dirty. Signed-off-by: Jaegeuk Kim --- fs/f2fs/checkpoint.c| 2 ++ fs/f2fs/data.c | 2 ++ fs/f2fs/node.c | 2 ++ include/trace/events/f2fs.h | 44 4 files changed, 50 insert

[f2fs-dev] [PATCH 2/2] f2fs: add tracepoint for vm_page_mkwrite

2013-10-24 Thread Jaegeuk Kim
This patch adds a tracepoint for f2fs_vm_page_mkwrite. Signed-off-by: Jaegeuk Kim --- fs/f2fs/file.c | 1 + include/trace/events/f2fs.h | 7 +++ 2 files changed, 8 insertions(+) diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index c80faa2..2d4190a 100644 --- a/fs/f2fs/file.c +++

Re: [f2fs-dev] [PATCH V2] f2fs: check all ones or zeros bitmap with bitops for better mount performance

2013-10-24 Thread Chao Yu
Hi Gu, > -Original Message- > From: Gu Zheng [mailto:guz.f...@cn.fujitsu.com] > Sent: Thursday, October 24, 2013 6:04 PM > To: Chao Yu > Cc: jaegeuk@samsung.com; linux-fsde...@vger.kernel.org; > linux-ker...@vger.kernel.org; linux-f2fs-devel@lists.sourceforge.net; '谭姝' > Subject: Re: [

Re: [f2fs-dev] [PATCH V2] f2fs: check all ones or zeros bitmap with bitops for better mount performance

2013-10-24 Thread Gu Zheng
Hi Yu, On 10/24/2013 04:21 PM, Chao Yu wrote: > Previously, check_block_count check valid_map with bit data type in common > scenario that sit has all ones or zeros bitmap, it makes low mount > performance. > So let's check the special bitmap with integer data type instead of the bit > one. >

[f2fs-dev] [PATCH V2] f2fs: check all ones or zeros bitmap with bitops for better mount performance

2013-10-24 Thread Chao Yu
Previously, check_block_count check valid_map with bit data type in common scenario that sit has all ones or zeros bitmap, it makes low mount performance. So let's check the special bitmap with integer data type instead of the bit one. v2: use find_next_bit_le/find_next_zero_bit_le for better

[f2fs-dev] [PATCH 1/3] f2fs: reclaim prefree segments periodically

2013-10-24 Thread Jaegeuk Kim
Previously, f2fs postpones reclaiming prefree segments into free segments as much as possible. However, if user writes and deletes a bunch of data without any sync or fsync calls, some flash storages can suffer from garbage collections. So, this patch adds the reclaiming codes to f2fs_write_node_p

[f2fs-dev] [PATCH 3/3] f2fs: add reclaiming control by sysfs

2013-10-24 Thread Jaegeuk Kim
This patch adds a control method in sysfs to reclaim prefree segments. Signed-off-by: Changman Lee Signed-off-by: Jaegeuk Kim --- Documentation/filesystems/f2fs.txt | 6 + fs/f2fs/super.c| 50 +++--- 2 files changed, 42 insertions(+), 14

[f2fs-dev] [PATCH 2/3] f2fs: introduce f2fs_balance_fs_bg for some background jobs

2013-10-24 Thread Jaegeuk Kim
This patch merges some background jobs into this new function. Signed-off-by: Changman Lee Signed-off-by: Jaegeuk Kim --- fs/f2fs/f2fs.h| 2 ++ fs/f2fs/gc.c | 5 ++--- fs/f2fs/node.c| 10 +++--- fs/f2fs/segment.c | 8 4 files changed, 15 insertions(+), 10 deletions(

[f2fs-dev] [PATCH] f2fs: remove redundant set_page_dirty from write_compacted_summaries

2013-10-24 Thread Chao Yu
Previously, set_page_dirty is called every time after writting one summary info into compacted summary page, To avoid redundant set_page_dirty, we only call set_page_dirty before release page. Signed-off-by: Yu Chao --- fs/f2fs/segment.c |8 1 file changed, 4 insertions(+), 4 dele