Commit 2b34be30 authored by Yang Yingliang's avatar Yang Yingliang
Browse files

fs/stat: make tmp variable 16-bytes aligned in copy stat

hulk inclusion
category: performance
bugzilla: https://gitee.com/openeuler/kernel/issues/I7F4XV



--------------------------------

The tmp variable is used to copy_to_user(), it has better
performance if the address accesseed by ldp instruction
is 16 bytes aligned on arm64.

The performance of nginx test is improved after this patch:
http "Connection: close"	1.11%
http "Connection: keep-alive"	2.11%
https "Connection: close"	1.56%
https "Connection: keep-alive"	0.18%

Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 2fcd3e30
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment