proc: make struct pid_entry::len unsigned

"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]>
This commit is contained in:
Alexey Dobriyan 2016-12-12 16:45:08 -08:00 • committed by Linus Torvalds
commit 623f594e7d

View file

@ -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;