diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2016-12-13 01:45:11 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-12-13 03:55:09 +0100 |
commit | 9a87fe0d7c2d4fb62255cb69088da5a812df3516 (patch) | |
tree | a295606a46b73d72b189eb7a522f519415f826b3 /fs/proc | |
parent | proc: make struct pid_entry::len unsigned (diff) | |
download | linux-9a87fe0d7c2d4fb62255cb69088da5a812df3516.tar.xz linux-9a87fe0d7c2d4fb62255cb69088da5a812df3516.zip |
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 larger 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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/proc')
-rw-r--r-- | fs/proc/base.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c index e1227bc57090..7c843024b406 100644 --- a/fs/proc/base.c +++ b/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 */ }; |