RE: [f2fs-dev] [PATCH v2] f2fs: remove redundant lines in allocate_data_block

2014-07-30 Thread Chao Yu
> -Original Message- > From: Dongho Sim [mailto:dh@samsung.com] > Sent: Wednesday, July 30, 2014 2:53 PM > To: jaeg...@kernel.org > Cc: linux-fsde...@vger.kernel.org; linux-kernel@vger.kernel.org; > linux-f2fs-de...@lists.sourceforge.net > Subject: [f2fs-dev] [P

[PATCH v2] f2fs: remove redundant lines in allocate_data_block

2014-07-29 Thread Dongho Sim
There are redundant lines in allocate_data_block. In this function, we call refresh_sit_entry with old seg and old curseg. After that, we call locate_dirty_segment with old curseg. But, the new address is always allocated from old curseg and we call locate_dirty_segment with old curseg in refresh