Commit d9e8319a authored by Al Viro's avatar Al Viro Committed by Amir Goldstein

ovl: move freeing ovl_entry past rcu delay

... into ->free_inode(), that is.

Fixes: 0af950f5 "ovl: move ovl_entry into ovl_inode"
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarAmir Goldstein <amir73il@gmail.com>
parent 8542f171
...@@ -167,6 +167,7 @@ static void ovl_free_inode(struct inode *inode) ...@@ -167,6 +167,7 @@ static void ovl_free_inode(struct inode *inode)
struct ovl_inode *oi = OVL_I(inode); struct ovl_inode *oi = OVL_I(inode);
kfree(oi->redirect); kfree(oi->redirect);
kfree(oi->oe);
mutex_destroy(&oi->lock); mutex_destroy(&oi->lock);
kmem_cache_free(ovl_inode_cachep, oi); kmem_cache_free(ovl_inode_cachep, oi);
} }
...@@ -176,7 +177,7 @@ static void ovl_destroy_inode(struct inode *inode) ...@@ -176,7 +177,7 @@ static void ovl_destroy_inode(struct inode *inode)
struct ovl_inode *oi = OVL_I(inode); struct ovl_inode *oi = OVL_I(inode);
dput(oi->__upperdentry); dput(oi->__upperdentry);
ovl_free_entry(oi->oe); ovl_stack_put(ovl_lowerstack(oi->oe), ovl_numlower(oi->oe));
if (S_ISDIR(inode->i_mode)) if (S_ISDIR(inode->i_mode))
ovl_dir_cache_free(inode); ovl_dir_cache_free(inode);
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment