diff options
author | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2014-04-18 11:14:37 +0900 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2014-05-07 10:21:55 +0900 |
commit | 7ee0eeabcdbb1610d7bc75d1132a43e0c7f7ef28 (patch) | |
tree | 94e793d60e76c16361c9e1a0bfaa8dc188d17803 /fs/f2fs/f2fs.h | |
parent | b49ad51e6d4fa665a0ab587798d36bebfdfa54a9 (diff) | |
download | blackbird-op-linux-7ee0eeabcdbb1610d7bc75d1132a43e0c7f7ef28.tar.gz blackbird-op-linux-7ee0eeabcdbb1610d7bc75d1132a43e0c7f7ef28.zip |
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>
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r-- | fs/f2fs/f2fs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 55152de1118c..556d06b67e6a 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -244,6 +244,7 @@ static inline void set_raw_extent(struct extent_info *ext, struct f2fs_nm_info { block_t nat_blkaddr; /* base disk address of NAT */ nid_t max_nid; /* maximum possible node ids */ + nid_t available_nids; /* maximum available node ids */ nid_t next_scan_nid; /* the next nid to be scanned */ unsigned int ram_thresh; /* control the memory footprint */ |