f2fs: use nm_i->next_scan_nid as default for next_free_nid
authorHuang Ying <ying.huang@intel.com>
Fri, 12 Sep 2014 12:19:48 +0000 (20:19 +0800)
committerIan Chang <ianc@nvidia.com>
Wed, 27 Jan 2016 10:04:14 +0000 (18:04 +0800)
commit4e32c35f4a09076916b7e8592f67c4e2ffa612b3
treed515bc638c1ad4f3b8c34e316c0237572492b032
parentac4d18a662cc4b0f9251d3a7176b4cd4a538590c
f2fs: use nm_i->next_scan_nid as default for next_free_nid

Now, if there is no free nid in nm_i->free_nid_list, 0 may be saved
into next_free_nid of checkpoint, this may cause useless scanning for
next mount.  nm_i->next_scan_nid should be a better default value than
0.

Signed-off-by: Huang, Ying <ying.huang@intel.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/checkpoint.c