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 |
---|---|---|
ib.h | -rw-r--r-- | 2.1 KB |
ib_addr.h | -rw-r--r-- | 7.7 KB |
ib_cache.h | -rw-r--r-- | 4.2 KB |
ib_cm.h | -rw-r--r-- | 16.9 KB |
ib_hdrs.h | -rw-r--r-- | 6.9 KB |
ib_mad.h | -rw-r--r-- | 24.6 KB |
ib_marshall.h | -rw-r--r-- | 778 bytes |
ib_pack.h | -rw-r--r-- | 7.7 KB |
ib_pma.h | -rw-r--r-- | 4.2 KB |
ib_sa.h | -rw-r--r-- | 20.1 KB |
ib_smi.h | -rw-r--r-- | 4.2 KB |
ib_umem.h | -rw-r--r-- | 5.6 KB |
ib_umem_odp.h | -rw-r--r-- | 3.4 KB |
ib_verbs.h | -rw-r--r-- | 136.8 KB |
iba.h | -rw-r--r-- | 5.5 KB |
ibta_vol1_c12.h | -rw-r--r-- | 12.9 KB |
iw_cm.h | -rw-r--r-- | 7.1 KB |
iw_portmap.h | -rw-r--r-- | 2.2 KB |
lag.h | -rw-r--r-- | 530 bytes |
mr_pool.h | -rw-r--r-- | 568 bytes |
opa_addr.h | -rw-r--r-- | 2.4 KB |
opa_port_info.h | -rw-r--r-- | 13.4 KB |
opa_smi.h | -rw-r--r-- | 3.0 KB |
opa_vnic.h | -rw-r--r-- | 2.0 KB |
rdma_cm.h | -rw-r--r-- | 12.7 KB |
rdma_cm_ib.h | -rw-r--r-- | 797 bytes |
rdma_counter.h | -rw-r--r-- | 1.8 KB |
rdma_netlink.h | -rw-r--r-- | 4.0 KB |
rdma_vt.h | -rw-r--r-- | 14.2 KB |
rdmavt_cq.h | -rw-r--r-- | 1.7 KB |
rdmavt_mr.h | -rw-r--r-- | 3.9 KB |
rdmavt_qp.h | -rw-r--r-- | 28.0 KB |
restrack.h | -rw-r--r-- | 4.1 KB |
rw.h | -rw-r--r-- | 2.2 KB |
signature.h | -rw-r--r-- | 2.9 KB |
tid_rdma_defs.h | -rw-r--r-- | 2.1 KB |
uverbs_ioctl.h | -rw-r--r-- | 29.9 KB |
uverbs_named_ioctl.h | -rw-r--r-- | 4.7 KB |
uverbs_std_types.h | -rw-r--r-- | 5.2 KB |
uverbs_types.h | -rw-r--r-- | 6.1 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...