[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 chao2...@samsung.com --- fs/f2fs/segment.c |8 1 file changed, 4

[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 cm224@samsung.com Signed-off-by: Jaegeuk Kim jaegeuk@samsung.com --- Documentation/filesystems/f2fs.txt | 6 + fs/f2fs/super.c| 50

[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 cm224@samsung.com Signed-off-by: Jaegeuk Kim jaegeuk@samsung.com --- fs/f2fs/f2fs.h| 2 ++ fs/f2fs/gc.c | 5 ++--- fs/f2fs/node.c| 10 +++--- fs/f2fs/segment.c | 8 4

[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-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

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. v2:

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:

[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 jaegeuk@samsung.com --- fs/f2fs/checkpoint.c| 2 ++ fs/f2fs/data.c | 2 ++ fs/f2fs/node.c | 2 ++ include/trace/events/f2fs.h | 44 4