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:
af884cd
)
proc: make struct pid_entry::len unsigned
author
Alexey Dobriyan
<
[email protected]
>
Tue, 13 Dec 2016 00:45:08 +0000
(16:45 -0800)
committer
Linus Torvalds
<
[email protected]
>
Tue, 13 Dec 2016 02:55:09 +0000
(18:55 -0800)
"unsigned int" is better on x86_64 because it most of the time it
autoexpands to 64-bit value while "int" requires MOVSX instruction.
Link:
http://lkml.kernel.org/r/20161029160810.GF1246@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 ca651ac00660889a86fcd5c27d4a29aa709d5a53..e1227bc570907eb810bd4d8a671631f9b69e7398 100644
(file)
--- a/
fs/proc/base.c
+++ b/
fs/proc/base.c
@@
-106,7
+106,7
@@
struct pid_entry {
const char *name;
- int len;
+
unsigned
int len;
umode_t mode;
const struct inode_operations *iop;
const struct file_operations *fop;