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%
Yang Yingliang (1): fs/stat: make tmp variable 16-bytes aligned in copy stat
fs/stat.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)