If my understanding of this is correct -- stuff that will be freed on
prune_icache() or other memory pressure should be marked such -- then...
> diff -Nru a/fs/jffs/inode-v23.c b/fs/jffs/inode-v23.c
> --- a/fs/jffs/inode-v23.c Sun May 25 16:19:51 2003
> +++ b/fs/jffs/inode-v23.c Sun May 25 16:19:51 2003
> @@ -1806,9 +1806,11 @@
> jffs_proc_root = proc_mkdir("jffs", proc_root_fs);
> #endif
> fm_cache = kmem_cache_create("jffs_fm", sizeof(struct jffs_fm),
> - 0, SLAB_HWCACHE_ALIGN, NULL, NULL);
> + 0, SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT,
> + NULL, NULL);
No.
> node_cache = kmem_cache_create("jffs_node",sizeof(struct jffs_node),
> - 0, SLAB_HWCACHE_ALIGN, NULL, NULL);
> + 0, SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT,
> + NULL, NULL);
No.
> diff -Nru a/fs/jffs2/malloc.c b/fs/jffs2/malloc.c
> --- a/fs/jffs2/malloc.c Sun May 25 16:19:51 2003
> +++ b/fs/jffs2/malloc.c Sun May 25 16:19:51 2003
> @@ -73,7 +73,8 @@
>
> inode_cache_slab = kmem_cache_create("jffs2_inode_cache",
> sizeof(struct jffs2_inode_cache),
> - 0, JFFS2_SLAB_POISON, NULL, NULL);
> + 0, JFFS2_SLAB_POISON|SLAB_RECLAIM_ACCOUNT,
> + NULL, NULL);
No.
> --- a/fs/jffs2/super.c Sun May 25 16:19:51 2003
> +++ b/fs/jffs2/super.c Sun May 25 16:19:51 2003
> @@ -299,7 +299,7 @@
>
> jffs2_inode_cachep = kmem_cache_create("jffs2_i",
> sizeof(struct jffs2_inode_info),
> - 0, SLAB_HWCACHE_ALIGN,
> + 0, SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT,
> jffs2_i_init_once, NULL);
Yes.
-- dwmw2
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/