Skip to content

Commit

Permalink
Fix cache leak in umount simplefs
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyWFHuang committed Jun 27, 2024
1 parent f15ea0c commit 1c37365
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions super.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ int simplefs_init_inode_cache(void)
void simplefs_destroy_inode_cache(void)
{
kmem_cache_destroy(simplefs_inode_cache);
rcu_barrier();
}

static struct inode *simplefs_alloc_inode(struct super_block *sb)
Expand Down

0 comments on commit 1c37365

Please sign in to comment.