diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2016-12-12 16:45:28 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-12-12 18:55:09 -0800 |
commit | bac5f5d56bbcb0ef7d3a926dd28b5f1db09117b7 (patch) | |
tree | 9f23c35f9c44ba0d21ff24db07c9da6afaa0bc28 /fs/proc/internal.h | |
parent | 209b14dc030760d3a17029a5c3bd92c9d6fd3f37 (diff) | |
download | linux-bac5f5d56bbcb0ef7d3a926dd28b5f1db09117b7.tar.gz linux-bac5f5d56bbcb0ef7d3a926dd28b5f1db09117b7.tar.bz2 linux-bac5f5d56bbcb0ef7d3a926dd28b5f1db09117b7.zip |
fs/proc/base.c: save decrement during lookup/readdir in /proc/$PID
Comparison for "<" works equally well as comparison for "<=" but one
SUB/LEA is saved (no, it is not optimised away, at least here).
Link: http://lkml.kernel.org/r/20161122195143.GA29812@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/proc/internal.h')
0 files changed, 0 insertions, 0 deletions