Re: [PATCH 22/26] xfs: track reclaimable inodes using a LRU list

Christoph Hellwig
2019-10-11T10:42:08Z

> @@ -1542,6 +1545,15 @@ xfs_mount_alloc(
> if (!mp)
> return NULL;
>
> + /*
> + * The inode lru needs to be associated with the superblock shrinker,
> + * and like the rest of the superblock shrinker, it's memcg aware.
> + */
> + if (list_lru_init_memcg(&mp->m_inode_lru, &sb->s_shrink)) {
> + kfree(mp);
> + return NULL;
> + }

This collides with the mount API work from Ian, where xfs_mount_alloc
doesn't get passed an sb anymore. It might make sense to move this
to fill_super instead.