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 |
---|---|---|
ccids | ||
Kconfig | -rw-r--r-- | 1.1 KB |
Makefile | -rw-r--r-- | 878 bytes |
ackvec.c | -rw-r--r-- | 12.3 KB |
ackvec.h | -rw-r--r-- | 4.5 KB |
ccid.c | -rw-r--r-- | 5.1 KB |
ccid.h | -rw-r--r-- | 8.6 KB |
dccp.h | -rw-r--r-- | 15.6 KB |
diag.c | -rw-r--r-- | 2.1 KB |
feat.c | -rw-r--r-- | 47.4 KB |
feat.h | -rw-r--r-- | 4.4 KB |
input.c | -rw-r--r-- | 21.7 KB |
ipv4.c | -rw-r--r-- | 28.3 KB |
ipv6.c | -rw-r--r-- | 29.9 KB |
ipv6.h | -rw-r--r-- | 608 bytes |
minisocks.c | -rw-r--r-- | 7.3 KB |
options.c | -rw-r--r-- | 16.3 KB |
output.c | -rw-r--r-- | 20.3 KB |
proto.c | -rw-r--r-- | 29.8 KB |
qpolicy.c | -rw-r--r-- | 3.3 KB |
sysctl.c | -rw-r--r-- | 2.6 KB |
timer.c | -rw-r--r-- | 7.1 KB |
trace.h | -rw-r--r-- | 2.2 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...