projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
623f594
)
proc: make struct struct map_files_info::len unsigned int
author
Alexey Dobriyan
<
[email protected]
>
Tue, 13 Dec 2016 00:45:11 +0000
(16:45 -0800)
committer
Linus Torvalds
<
[email protected]
>
Tue, 13 Dec 2016 02:55:09 +0000
(18:55 -0800)
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 <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
fs/proc/base.c
patch
|
blob
|
history
diff --git
a/fs/proc/base.c
b/fs/proc/base.c
index e1227bc570907eb810bd4d8a671631f9b69e7398..7c843024b4063662241ddb73cb7540a047014ba1 100644
(file)
--- 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 */
};