|
@@ -808,8 +808,7 @@ void nilfs_put_root(struct nilfs_root *root)
|
|
spin_lock(&nilfs->ns_cptree_lock);
|
|
spin_lock(&nilfs->ns_cptree_lock);
|
|
rb_erase(&root->rb_node, &nilfs->ns_cptree);
|
|
rb_erase(&root->rb_node, &nilfs->ns_cptree);
|
|
spin_unlock(&nilfs->ns_cptree_lock);
|
|
spin_unlock(&nilfs->ns_cptree_lock);
|
|
- if (root->ifile)
|
|
|
|
- iput(root->ifile);
|
|
|
|
|
|
+ iput(root->ifile);
|
|
|
|
|
|
kfree(root);
|
|
kfree(root);
|
|
}
|
|
}
|