diff options
-rw-r--r-- | fs/f2fs/node.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c index 8c1411060e7e..77b61893fc8d 100644 --- a/fs/f2fs/node.c +++ b/fs/f2fs/node.c | |||
@@ -1875,11 +1875,9 @@ void destroy_node_manager(struct f2fs_sb_info *sbi) | |||
1875 | while ((found = __gang_lookup_nat_cache(nm_i, | 1875 | while ((found = __gang_lookup_nat_cache(nm_i, |
1876 | nid, NATVEC_SIZE, natvec))) { | 1876 | nid, NATVEC_SIZE, natvec))) { |
1877 | unsigned idx; | 1877 | unsigned idx; |
1878 | for (idx = 0; idx < found; idx++) { | 1878 | nid = nat_get_nid(natvec[found - 1]) + 1; |
1879 | struct nat_entry *e = natvec[idx]; | 1879 | for (idx = 0; idx < found; idx++) |
1880 | nid = nat_get_nid(e) + 1; | 1880 | __del_from_nat_cache(nm_i, natvec[idx]); |
1881 | __del_from_nat_cache(nm_i, e); | ||
1882 | } | ||
1883 | } | 1881 | } |
1884 | f2fs_bug_on(nm_i->nat_cnt); | 1882 | f2fs_bug_on(nm_i->nat_cnt); |
1885 | write_unlock(&nm_i->nat_tree_lock); | 1883 | write_unlock(&nm_i->nat_tree_lock); |