Skip to contentSkip to conversation

fs-fuse-account-fuse_inode-slab-memory-as-reclaimable.patch removed from -mm tree

merged [email protected] 1 participant 1 message Nov 16, 2017

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: fs: fuse: account fuse_inode slab memory as reclaimable
has been removed from the -mm tree. Its filename was
fs-fuse-account-fuse_inode-slab-memory-as-reclaimable.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Johannes Weiner <[email protected]>
Subject: 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.

---

 fs/fuse/inode.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
fs/fuse/inode.c renamed from fs/fuse/inode.c~fs-fuse-account-fuse_inode-slab-memory-as-reclaimable +3 -3
diff -puN fs/fuse/inode.c~fs-fuse-account-fuse_inode-slab-memory-as-reclaimable fs/fuse/inode.c
@@ -1273,9 +1273,9 @@ static int __init fuse_fs_init(void)
 	int err;
 
 	fuse_inode_cachep = kmem_cache_create("fuse_inode",
-					      sizeof(struct fuse_inode), 0,
-					      SLAB_HWCACHE_ALIGN|SLAB_ACCOUNT,
-					      fuse_inode_init_once);
+			sizeof(struct fuse_inode), 0,
+			SLAB_HWCACHE_ALIGN|SLAB_ACCOUNT|SLAB_RECLAIM_ACCOUNT,
+			fuse_inode_init_once);
 	err = -ENOMEM;
 	if (!fuse_inode_cachep)
 		goto out;

_

Patches currently in -mm which might be from [email protected] are