]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
committerAndrea Righi <andrea.righi@canonical.com>
Thu, 9 Mar 2023 14:57:18 +0000 (15:57 +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;