1
0
Fork 0

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>
hifive-unleashed-5.1
Alexey Dobriyan 2016-12-12 16:45:11 -08:00 committed by Linus Torvalds
parent 623f594e7d
commit 9a87fe0d7c
1 changed files with 1 additions and 1 deletions

View File

@ -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 */
};