Revision a25fddced835ae53d18eb4bddabd719b4cebf624 authored by Miaohe Lin on 24 February 2021, 20:10:14 UTC, committed by Linus Torvalds on 24 February 2021, 21:38:35 UTC
The calculation 1U << (h->order + PAGE_SHIFT - 10) is actually equal to (PAGE_SHIFT << (h->order)) >> 10. So we can make it more readable by replace it with huge_page_size(h) >> 10. Link: https://lkml.kernel.org/r/20210122083141.24548-1-linmiaohe@huawei.com Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> Reviewed-by: Mike Kravetz <mike.kravetz@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 88ce3fe
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 3.4 KB |
Makefile | -rw-r--r-- | 530 bytes |
espintcp.c | -rw-r--r-- | 12.6 KB |
xfrm_algo.c | -rw-r--r-- | 13.9 KB |
xfrm_compat.c | -rw-r--r-- | 18.1 KB |
xfrm_device.c | -rw-r--r-- | 9.7 KB |
xfrm_hash.c | -rw-r--r-- | 803 bytes |
xfrm_hash.h | -rw-r--r-- | 4.4 KB |
xfrm_inout.h | -rw-r--r-- | 1.8 KB |
xfrm_input.c | -rw-r--r-- | 18.8 KB |
xfrm_interface.c | -rw-r--r-- | 22.7 KB |
xfrm_ipcomp.c | -rw-r--r-- | 7.4 KB |
xfrm_output.c | -rw-r--r-- | 17.7 KB |
xfrm_policy.c | -rw-r--r-- | 106.2 KB |
xfrm_proc.c | -rw-r--r-- | 2.8 KB |
xfrm_replay.c | -rw-r--r-- | 17.7 KB |
xfrm_state.c | -rw-r--r-- | 66.5 KB |
xfrm_sysctl.c | -rw-r--r-- | 1.9 KB |
xfrm_user.c | -rw-r--r-- | 80.9 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...