Re: [PATCH 3/4] f2fs: optimize scan_nat_page()

2013-05-07 Thread Haicheng Li
On Tue, May 07, 2013 at 07:36:28PM +0900, Jaegeuk Kim wrote: > Hi, > > 2013-05-06 (월), 23:15 +0800, Haicheng Li: > > if (nm_i->fcnt > 2 * MAX_FREE_NIDS) > > - return 0; > > + return -1; > > We should check all the handler of add_free_nid(). yes, sorry that I missed double

Re: [PATCH 3/4] f2fs: optimize scan_nat_page()

2013-05-07 Thread Jaegeuk Kim
Hi, 2013-05-06 (월), 23:15 +0800, Haicheng Li: > When nm_i->fcnt > 2 * MAX_FREE_NIDS, stop scanning other NAT entries. > > Signed-off-by: Haicheng Li > --- > fs/f2fs/node.c | 13 + > 1 file changed, 9 insertions(+), 4 deletions(-) > > diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c >