diff options
| author | Alexey Dobriyan <[email protected]> | 2018-02-06 23:37:31 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2018-02-07 02:32:43 +0000 |
| commit | 93ad5bc6d4addb74e30d421cd3ba5249c961fb3e (patch) | |
| tree | 6c739b20c4d25cab23c2bd0e008c8ded561f86c5 /lib/test_bitmap.c | |
| parent | proc: spread likely/unlikely a bit (diff) | |
| download | kernel-93ad5bc6d4addb74e30d421cd3ba5249c961fb3e.tar.gz kernel-93ad5bc6d4addb74e30d421cd3ba5249c961fb3e.zip | |
proc: rearrange args
Rearrange args for smaller code.
lookup revolves around memcmp() which gets len 3rd arg, so propagate
length as 3rd arg.
readdir and lookup add additional arg to VFS ->readdir and ->lookup, so
better add it to the end.
Space savings on x86_64:
add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-18 (-18)
Function old new delta
proc_readdir 22 13 -9
proc_lookup 18 9 -9
proc_match() is smaller if not inlined, I promise!
Link: http://lkml.kernel.org/r/20180104175958.GB5204@avx2
Signed-off-by: Alexey Dobriyan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/test_bitmap.c')
0 files changed, 0 insertions, 0 deletions
