proc-less-memory-for-proc-map_files-readdir.patch removed from -mm tree
The patch titled
Subject: proc: less memory for /proc/*/map_files readdir
has been removed from the -mm tree. Its filename was
proc-less-memory-for-proc-map_files-readdir.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Alexey Dobriyan <[email protected]>
Subject: proc: less memory for /proc/*/map_files readdir
dentry name can be evaluated later, right before calling into VFS.
Also, spend less time under ->mmap_sem.
Signed-off-by Alexey Dobriyan <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
fs/proc/base.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-)
fs/proc/base.c renamed from fs/proc/base.c~proc-less-memory-for-proc-map_files-readdir +9 -6
@@ -2026,9 +2026,9 @@ out: }struct map_files_info { +unsigned long start; +unsigned long end;fmode_t mode; -unsigned int len; -unsigned char name[4 *sizeof (long )+2 ];/* max: %lx-%lx\0 */ };/*
@@ -2198,10 +2198,9 @@ proc_map_files_readdir(struct file *fileif (++pos <= ctx->pos)continue ; + info.start = vma->vm_start; + info.end = vma->vm_end; info.mode = vma->vm_file->f_mode; - info.len =snprintf (info.name, -sizeof (info.name),"%lx-%lx" , - vma->vm_start, vma->vm_end);if (flex_array_put (fa, i++, &info,GFP_KERNEL ))BUG (); }
@@ -2209,9 +2208,13 @@ proc_map_files_readdir(struct file *fileup_read (&mm->mmap_sem);for (i =0 ; i < nr_files; i++) { +char buf[4 *sizeof (long ) +2 ];/* max: %lx-%lx\0 */ +unsigned int len; + p =flex_array_get (fa, i); + len =snprintf (buf,sizeof (buf),"%lx-%lx" , p->start, p->end);if (!proc_fill_cache (file, ctx, - p->name, p->len, + buf, len, proc_map_files_instantiate, task, (void *)(unsigned long )p->mode))
_
Patches currently in -mm which might be from [email protected] are
seq_file-delete-small-value-optimization.patch