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)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 16 Sep 2014 11:10:45 +0000 (04:10 -0700)
commit7704182387f7eab6217a587420f8a3b3aa2d17d5
tree6bdc21baa79c89f69ca9453d3887945f0ab828da
parentc1ce1b02bb25640567dc484dc94d3a195d21e705
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