]> git.baikalelectronics.ru Git - kernel.git/commit
fs: fuse: account fuse_inode slab memory as reclaimable
authorJohannes Weiner <hannes@cmpxchg.org>
Thu, 16 Nov 2017 01:38:34 +0000 (17:38 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 16 Nov 2017 02:21:07 +0000 (18:21 -0800)
commitb5861d5bfbce1422ffbaee940f8be0e6307af238
tree593a32e78620f54e46bb05c6f63dff85d91e1e43
parente054b2cdd61fe15ca66b678d79f4efad1c90d137
fs: fuse: account fuse_inode slab memory as reclaimable

Fuse inodes are currently included in the unreclaimable slab counts -
SUnreclaim in /proc/meminfo, slab_unreclaimable in /proc/vmstat and the
per-cgroup memory.stat.  But they are reclaimable just like other
filesystems' inodes, and /proc/sys/vm/drop_caches frees them easily.

Mark the slab cache reclaimable.

Link: http://lkml.kernel.org/r/20171102202727.12539-1-hannes@cmpxchg.org
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/fuse/inode.c