Commit 9a87fe0d authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Linus Torvalds

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@avx2Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 623f594e
...@@ -1967,7 +1967,7 @@ static int map_files_get_link(struct dentry *dentry, struct path *path) ...@@ -1967,7 +1967,7 @@ static int map_files_get_link(struct dentry *dentry, struct path *path)
struct map_files_info { struct map_files_info {
fmode_t mode; fmode_t mode;
unsigned long len; unsigned int len;
unsigned char name[4*sizeof(long)+2]; /* max: %lx-%lx\0 */ unsigned char name[4*sizeof(long)+2]; /* max: %lx-%lx\0 */
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment