]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mm/mmap.c: change __install_special_mapping() args order
authorChen Gang <gang.chen.5i5j@gmail.com>
Wed, 21 Oct 2015 22:03:13 +0000 (09:03 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 21 Oct 2015 22:03:13 +0000 (09:03 +1100)
commit540682b2dfa9ff2e8d5073e06a8d49156bb261ef
tree06a3989de1c606cb8640ed13ae01a9f6604a6a9b
parent708113fbd7053b3bf1128d829c9906dd6130c948
mm/mmap.c: change __install_special_mapping() args order

Make __install_special_mapping() args order match the caller, so the
caller can pass their register args directly to callee with no touch.

For most of architectures, args (at least the first 5th args) are in
registers, so this change will have effect on most of architectures.

For -O2, __install_special_mapping() may be inlined under most of
architectures, but for -Os, it should not. So this change can get a
little better performance for -Os, at least.

Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/mmap.c