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 |
---|---|---|
include-prefixes | ||
libfdt | ||
.gitignore | -rw-r--r-- | 55 bytes |
Makefile | -rw-r--r-- | 1.6 KB |
checks.c | -rw-r--r-- | 50.3 KB |
data.c | -rw-r--r-- | 4.5 KB |
dt_to_config | -rwxr-xr-x | 40.8 KB |
dtc-lexer.l | -rw-r--r-- | 6.1 KB |
dtc-parser.y | -rw-r--r-- | 10.6 KB |
dtc.c | -rw-r--r-- | 9.3 KB |
dtc.h | -rw-r--r-- | 8.9 KB |
dtx_diff | -rwxr-xr-x | 9.0 KB |
fdtget.c | -rw-r--r-- | 7.9 KB |
fdtoverlay.c | -rw-r--r-- | 4.2 KB |
fdtput.c | -rw-r--r-- | 7.7 KB |
flattree.c | -rw-r--r-- | 21.5 KB |
fstree.c | -rw-r--r-- | 1.5 KB |
livetree.c | -rw-r--r-- | 20.3 KB |
srcpos.c | -rw-r--r-- | 8.6 KB |
srcpos.h | -rw-r--r-- | 2.9 KB |
treesource.c | -rw-r--r-- | 6.8 KB |
update-dtc-source.sh | -rwxr-xr-x | 2.5 KB |
util.c | -rw-r--r-- | 8.5 KB |
util.h | -rw-r--r-- | 7.0 KB |
version_gen.h | -rw-r--r-- | 42 bytes |
yamltree.c | -rw-r--r-- | 6.2 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...