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-- | 522 bytes |
Makefile | -rw-r--r-- | 366 bytes |
netlabel_addrlist.c | -rw-r--r-- | 9.7 KB |
netlabel_addrlist.h | -rw-r--r-- | 5.5 KB |
netlabel_calipso.c | -rw-r--r-- | 19.1 KB |
netlabel_calipso.h | -rw-r--r-- | 3.9 KB |
netlabel_cipso_v4.c | -rw-r--r-- | 21.0 KB |
netlabel_cipso_v4.h | -rw-r--r-- | 4.1 KB |
netlabel_domainhash.c | -rw-r--r-- | 27.4 KB |
netlabel_domainhash.h | -rw-r--r-- | 3.1 KB |
netlabel_kapi.c | -rw-r--r-- | 37.4 KB |
netlabel_mgmt.c | -rw-r--r-- | 21.6 KB |
netlabel_mgmt.h | -rw-r--r-- | 6.0 KB |
netlabel_unlabeled.c | -rw-r--r-- | 41.8 KB |
netlabel_unlabeled.h | -rw-r--r-- | 6.3 KB |
netlabel_user.c | -rw-r--r-- | 2.6 KB |
netlabel_user.h | -rw-r--r-- | 1.3 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...