]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
UBUNTU: SAUCE: shiftfs: mark slab objects SLAB_RECLAIM_ACCOUNT
authorChristian Brauner <christian.brauner@ubuntu.com>
Fri, 30 Aug 2019 12:14:31 +0000 (14:14 +0200)
committerPaolo Pisati <paolo.pisati@canonical.com>
Tue, 2 Nov 2021 07:24:46 +0000 (08:24 +0100)
BugLink: https://bugs.launchpad.net/bugs/1842059
Shiftfs does not mark it's slab cache as reclaimable. While this is not
a big deal it is not nice to the kernel in general. The shiftfs cache is
not so important that it can't be reclaimed.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
fs/shiftfs.c

index e80db9480b5cb2d7f8eb7e93c346d50874446da2..a21cb473e000bca7061c0999a27bb09bb5c91d12 100644 (file)
@@ -2108,7 +2108,7 @@ static int __init shiftfs_init(void)
 {
        shiftfs_file_info_cache = kmem_cache_create(
                "shiftfs_file_info_cache", sizeof(struct shiftfs_file_info), 0,
-               SLAB_HWCACHE_ALIGN | SLAB_ACCOUNT | SLAB_MEM_SPREAD, NULL);
+               SLAB_RECLAIM_ACCOUNT | SLAB_HWCACHE_ALIGN | SLAB_ACCOUNT | SLAB_MEM_SPREAD, NULL);
        if (!shiftfs_file_info_cache)
                return -ENOMEM;