RE: [f2fs-dev] [PATCH] f2fs: optimize __find_rev_next_bit

2015-11-12 Thread Chao Yu
Hi Fan, > -Original Message- > From: Fan Li [mailto:fanofcode...@samsung.com] > Sent: Thursday, November 12, 2015 8:43 AM > To: 'Jaegeuk Kim' > Cc: linux-kernel@vger.kernel.org; linux-f2fs-de...@lists.sourceforge.net > Subject: [f2fs-dev] [PATCH] f2fs: optimiz

[f2fs-dev] [PATCH] f2fs: optimize __find_rev_next_bit

2015-11-11 Thread Fan Li
1. Skip __reverse_ulong if the bitmap is empty. 2. Reduce branches and codes. According to my test, the performance of this new version is 5% higher on an empty bitmap of 64bytes, and remains about the same in the worst scenario. Signed-off-by: Fan li --- fs/f2fs/segment.c | 46 ++