diff options
| author | Sebastian Andrzej Siewior <[email protected]> | 2021-12-23 16:44:36 +0000 |
|---|---|---|
| committer | Theodore Ts'o <[email protected]> | 2022-01-10 18:25:54 +0000 |
| commit | ab047d516dea72f011c15c04a929851e4d053109 (patch) | |
| tree | ab050f8a61aefd2fccd6c379a4d0953052b5bf6f /fs/ext4/fast_commit.c | |
| parent | ext4: fast commit may miss tracking unwritten range during ftruncate (diff) | |
| download | kernel-ab047d516dea72f011c15c04a929851e4d053109.tar.gz kernel-ab047d516dea72f011c15c04a929851e4d053109.zip | |
ext4: destroy ext4_fc_dentry_cachep kmemcache on module removal
The kmemcache for ext4_fc_dentry_cachep remains registered after module
removal.
Destroy ext4_fc_dentry_cachep kmemcache on module removal.
Fixes: aa75f4d3daaeb ("ext4: main fast-commit commit path")
Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
Reviewed-by: Lukas Czerner <[email protected]>
Reviewed-by: Harshad Shirwadkar <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Theodore Ts'o <[email protected]>
Cc: [email protected]
Diffstat (limited to 'fs/ext4/fast_commit.c')
| -rw-r--r-- | fs/ext4/fast_commit.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/ext4/fast_commit.c b/fs/ext4/fast_commit.c index 28ddeb1d6afb..a6d647325742 100644 --- a/fs/ext4/fast_commit.c +++ b/fs/ext4/fast_commit.c @@ -2153,3 +2153,8 @@ int __init ext4_fc_init_dentry_cache(void) return 0; } + +void ext4_fc_destroy_dentry_cache(void) +{ + kmem_cache_destroy(ext4_fc_dentry_cachep); +} |
