Re: [PATCH] kernfs: account kernfs_node_cache as reclaimable

From: Tejun Heo
Date: Mon Jan 29 2018 - 14:13:38 EST


On Fri, Jan 26, 2018 at 02:47:20PM -0800, Cong Wang wrote:
> Similar to commit df206988e03e
> ("fs: fuse: account fuse_inode slab memory as reclaimable"), these
> kernfs nodes are currently included in the unreclaimable slab counts -
> SUnreclaim in /proc/meminfo. And they are reclaimable too and can be
> freed by kernfs_evict_inode() via /proc/sys/vm/drop_caches easily.

That evicts the inode, not the kernfs_node. kernfs_node is the
backing storage for these filesystems. They aren't reclaimable.

Thanks.

--
tejun