mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
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.
This commit is contained in:
parent
e694adb9e1
commit
83ef8a9fcd
1 changed files with 0 additions and 9 deletions
|
@ -1604,8 +1604,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)
|
||||
|
@ -1616,13 +1614,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);
|
||||
|
|
Loading…
Reference in a new issue