|
@@ -264,6 +264,8 @@ out_free_sb:
|
|
|
*/
|
|
|
static inline void destroy_super(struct super_block *s)
|
|
|
{
|
|
|
+ list_lru_destroy(&s->s_dentry_lru);
|
|
|
+ list_lru_destroy(&s->s_inode_lru);
|
|
|
#ifdef CONFIG_SMP
|
|
|
free_percpu(s->s_files);
|
|
|
#endif
|
|
@@ -323,8 +325,6 @@ void deactivate_locked_super(struct super_block *s)
|
|
|
|
|
|
/* caches are now gone, we can safely kill the shrinker now */
|
|
|
unregister_shrinker(&s->s_shrink);
|
|
|
- list_lru_destroy(&s->s_dentry_lru);
|
|
|
- list_lru_destroy(&s->s_inode_lru);
|
|
|
|
|
|
put_filesystem(fs);
|
|
|
put_super(s);
|