Skip to content

Commit d9e8319

Browse files
Al Viroamir73il
authored andcommitted
ovl: move freeing ovl_entry past rcu delay
... into ->free_inode(), that is. Fixes: 0af950f "ovl: move ovl_entry into ovl_inode" Signed-off-by: Al Viro <[email protected]> Signed-off-by: Amir Goldstein <[email protected]>
1 parent 8542f17 commit d9e8319

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fs/overlayfs/super.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ static void ovl_free_inode(struct inode *inode)
167167
struct ovl_inode *oi = OVL_I(inode);
168168

169169
kfree(oi->redirect);
170+
kfree(oi->oe);
170171
mutex_destroy(&oi->lock);
171172
kmem_cache_free(ovl_inode_cachep, oi);
172173
}
@@ -176,7 +177,7 @@ static void ovl_destroy_inode(struct inode *inode)
176177
struct ovl_inode *oi = OVL_I(inode);
177178

178179
dput(oi->__upperdentry);
179-
ovl_free_entry(oi->oe);
180+
ovl_stack_put(ovl_lowerstack(oi->oe), ovl_numlower(oi->oe));
180181
if (S_ISDIR(inode->i_mode))
181182
ovl_dir_cache_free(inode);
182183
else

0 commit comments

Comments
 (0)