summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2016-12-13 01:45:08 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2016-12-13 03:55:09 +0100
commit623f594e7d20e4b5dac50aba5bd23822f2a95d6f (patch)
tree92139bd591d7cecad01154d2cd2c101bcbff5a5a /fs
parentproc: report no_new_privs state (diff)
downloadlinux-623f594e7d20e4b5dac50aba5bd23822f2a95d6f.tar.xz
linux-623f594e7d20e4b5dac50aba5bd23822f2a95d6f.zip
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 <adobriyan@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/proc/base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c
index ca651ac00660..e1227bc57090 100644
--- 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;