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-- | 710 bytes |
Makefile | -rw-r--r-- | 542 bytes |
af_rds.c | -rw-r--r-- | 23.3 KB |
bind.c | -rw-r--r-- | 7.7 KB |
cong.c | -rw-r--r-- | 12.8 KB |
connection.c | -rw-r--r-- | 26.1 KB |
ib.c | -rw-r--r-- | 17.1 KB |
ib.h | -rw-r--r-- | 13.8 KB |
ib_cm.c | -rw-r--r-- | 36.9 KB |
ib_frmr.c | -rw-r--r-- | 11.8 KB |
ib_mr.h | -rw-r--r-- | 4.8 KB |
ib_rdma.c | -rw-r--r-- | 17.4 KB |
ib_recv.c | -rw-r--r-- | 31.0 KB |
ib_ring.c | -rw-r--r-- | 4.8 KB |
ib_send.c | -rw-r--r-- | 30.0 KB |
ib_stats.c | -rw-r--r-- | 3.1 KB |
ib_sysctl.c | -rw-r--r-- | 4.0 KB |
info.c | -rw-r--r-- | 6.4 KB |
info.h | -rw-r--r-- | 973 bytes |
loop.c | -rw-r--r-- | 7.1 KB |
loop.h | -rw-r--r-- | 235 bytes |
message.c | -rw-r--r-- | 13.3 KB |
page.c | -rw-r--r-- | 4.5 KB |
rdma.c | -rw-r--r-- | 25.1 KB |
rdma_transport.c | -rw-r--r-- | 8.4 KB |
rdma_transport.h | -rw-r--r-- | 916 bytes |
rds.h | -rw-r--r-- | 30.9 KB |
rds_single_path.h | -rw-r--r-- | 1.2 KB |
recv.c | -rw-r--r-- | 23.4 KB |
send.c | -rw-r--r-- | 39.3 KB |
stats.c | -rw-r--r-- | 4.4 KB |
sysctl.c | -rw-r--r-- | 3.4 KB |
tcp.c | -rw-r--r-- | 20.3 KB |
tcp.h | -rw-r--r-- | 3.1 KB |
tcp_connect.c | -rw-r--r-- | 6.1 KB |
tcp_listen.c | -rw-r--r-- | 9.8 KB |
tcp_recv.c | -rw-r--r-- | 9.2 KB |
tcp_send.c | -rw-r--r-- | 6.7 KB |
tcp_stats.c | -rw-r--r-- | 2.3 KB |
threads.c | -rw-r--r-- | 8.8 KB |
transport.c | -rw-r--r-- | 4.5 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...