All of lore.kernel.org
 help / color / mirror / Atom feed
* + proc-make-struct-struct-map_files_info-len-unsigned-int.patch added to -mm tree
@ 2016-11-08  0:48 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2016-11-08  0:48 UTC (permalink / raw)
  To: adobriyan, mm-commits


The patch titled
     Subject: proc: make struct struct map_files_info::len unsigned int
has been added to the -mm tree.  Its filename is
     proc-make-struct-struct-map_files_info-len-unsigned-int.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/proc-make-struct-struct-map_files_info-len-unsigned-int.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/proc-make-struct-struct-map_files_info-len-unsigned-int.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Alexey Dobriyan <adobriyan@gmail.com>
Subject: proc: make struct struct map_files_info::len unsigned int

Linux doesn't support 4GB+ filenames in /proc, so unsigned long is too much.

MOV r64, r/m64 is smaller than MOV r32, r/m32.

Link: http://lkml.kernel.org/r/20161029161123.GG1246@avx2
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 fs/proc/base.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN fs/proc/base.c~proc-make-struct-struct-map_files_info-len-unsigned-int fs/proc/base.c
--- a/fs/proc/base.c~proc-make-struct-struct-map_files_info-len-unsigned-int
+++ a/fs/proc/base.c
@@ -1967,7 +1967,7 @@ out:
 
 struct map_files_info {
 	fmode_t		mode;
-	unsigned long	len;
+	unsigned int	len;
 	unsigned char	name[4*sizeof(long)+2]; /* max: %lx-%lx\0 */
 };
 
_

Patches currently in -mm which might be from adobriyan@gmail.com are

scripts-bloat-o-meter-fix-sigpipe.patch
kbuild-simpler-generation-of-assembly-constants.patch
proc-make-struct-pid_entry-len-unsigned.patch
proc-make-struct-struct-map_files_info-len-unsigned-int.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-11-08  0:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-08  0:48 + proc-make-struct-struct-map_files_info-len-unsigned-int.patch added to -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.