f2fs: optimize scan_nat_page()
authorHaicheng Li <haicheng.li@linux.intel.com>
Mon, 6 May 2013 15:15:43 +0000 (23:15 +0800)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Wed, 8 May 2013 10:54:22 +0000 (19:54 +0900)
commit23d38844276680abbf33624f56b6779d43f53633
tree13238b257994d31c5bc6653d4b4328e10984be83
parent8760952d92b2fd2310fac340ff5bcdf3ada500d7
f2fs: optimize scan_nat_page()

When nm_i->fcnt > 2 * MAX_FREE_NIDS, stop scanning other NAT entries.

Signed-off-by: Haicheng Li <haicheng.li@linux.intel.com>
[Jaegeuk Kim: fix handling the return value of add_free_nid()]
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/node.c