Messages in this thread Patch in this message | | | Date | Wed, 14 Feb 2018 11:24:09 +0300 | From | Alexey Dobriyan <> | Subject | [PATCH -mm 3/3] proc: account "struct pde_opener" |
| |
The allocation is persistent in fact as any fool can open a file in /proc and sit on it.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> ---
fs/proc/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
--- a/fs/proc/inode.c +++ b/fs/proc/inode.c @@ -103,7 +103,7 @@ void __init proc_init_kmemcache(void) init_once); pde_opener_cache = kmem_cache_create("pde_opener", sizeof(struct pde_opener), 0, - SLAB_PANIC, NULL); + SLAB_ACCOUNT|SLAB_PANIC, NULL); } static int proc_show_options(struct seq_file *seq, struct dentry *root)
| |