diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-01-02 20:23:27 +0300 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-01-07 06:15:49 +0300 |
commit | 957efb0c2144cc5ff1795f43bf2d2ca430eaa227 (patch) | |
tree | 1b944cdd348bde5de02206863d5faa640e392c9a /fs/f2fs | |
parent | a51311938e14c17f5a94d30baac9d7bec71f5858 (diff) | |
download | linux-957efb0c2144cc5ff1795f43bf2d2ca430eaa227.tar.xz |
Revert "f2fs: check the node block address of newly allocated nid"
Original issue is fixed by:
f2fs: cover more area with nat_tree_lock
This reverts commit 24928634f81b1592e83b37dcd89ed45c28f12feb.
Diffstat (limited to 'fs/f2fs')
-rw-r--r-- | fs/f2fs/node.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c index 4dab09f141b7..6d5f548d2090 100644 --- a/fs/f2fs/node.c +++ b/fs/f2fs/node.c @@ -1602,8 +1602,6 @@ retry: /* We should not use stale free nids created by build_free_nids */ if (nm_i->fcnt && !on_build_free_nids(nm_i)) { - struct node_info ni; - f2fs_bug_on(sbi, list_empty(&nm_i->free_nid_list)); list_for_each_entry(i, &nm_i->free_nid_list, list) if (i->state == NID_NEW) @@ -1614,13 +1612,6 @@ retry: i->state = NID_ALLOC; nm_i->fcnt--; spin_unlock(&nm_i->free_nid_list_lock); - - /* check nid is allocated already */ - get_node_info(sbi, *nid, &ni); - if (ni.blk_addr != NULL_ADDR) { - alloc_nid_done(sbi, *nid); - goto retry; - } return true; } spin_unlock(&nm_i->free_nid_list_lock); |