]> Git Repo - linux.git/blobdiff - fs/super.c
fs: propagate shrinker::id to list_lru
[linux.git] / fs / super.c
index 78227c4ddb219eb3cc3d9fbba1256112744bef48..f5f96e52e0cdee8eeac0437d1aa5207ae68fbaa0 100644 (file)
@@ -261,9 +261,9 @@ static struct super_block *alloc_super(struct file_system_type *type, int flags,
        s->s_shrink.flags = SHRINKER_NUMA_AWARE | SHRINKER_MEMCG_AWARE;
        if (prealloc_shrinker(&s->s_shrink))
                goto fail;
-       if (list_lru_init_memcg(&s->s_dentry_lru))
+       if (list_lru_init_memcg(&s->s_dentry_lru, &s->s_shrink))
                goto fail;
-       if (list_lru_init_memcg(&s->s_inode_lru))
+       if (list_lru_init_memcg(&s->s_inode_lru, &s->s_shrink))
                goto fail;
        return s;
 
This page took 0.030831 seconds and 4 git commands to generate.