f2fs: add available_nids to fix handling max_nid correctly
authorJaegeuk Kim <jaegeuk.kim@samsung.com>
Fri, 18 Apr 2014 02:14:37 +0000 (11:14 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Wed, 7 May 2014 01:21:55 +0000 (10:21 +0900)
commit7ee0eeabcdbb1610d7bc75d1132a43e0c7f7ef28
tree94e793d60e76c16361c9e1a0bfaa8dc188d17803
parentb49ad51e6d4fa665a0ab587798d36bebfdfa54a9
f2fs: add available_nids to fix handling max_nid correctly

This patch introduces available_nids for alloc_nids() and fixes max_nid for
build_free_nids() and scan_nat_pages().

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Reviewed-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/f2fs.h
fs/f2fs/node.c