]> Git Repo - linux.git/commit
mm: introduce page_size()
authorMatthew Wilcox (Oracle) <[email protected]>
Mon, 23 Sep 2019 22:34:25 +0000 (15:34 -0700)
committerLinus Torvalds <[email protected]>
Tue, 24 Sep 2019 22:54:08 +0000 (15:54 -0700)
commita50b854e073cd3335bbbada8dcff83a857297dd7
tree2ffc3a1e603860d6c0acc00154b47080c567c9c6
parent1f18b296699c83d858ca8ebb8b77dbc641d87cae
mm: introduce page_size()

Patch series "Make working with compound pages easier", v2.

These three patches add three helpers and convert the appropriate
places to use them.

This patch (of 3):

It's unnecessarily hard to find out the size of a potentially huge page.
Replace 'PAGE_SIZE << compound_order(page)' with page_size(page).

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Matthew Wilcox (Oracle) <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Reviewed-by: Ira Weiny <[email protected]>
Acked-by: Kirill A. Shutemov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
17 files changed:
arch/arm/mm/flush.c
arch/arm64/mm/flush.c
arch/ia64/mm/init.c
drivers/crypto/chelsio/chtls/chtls_io.c
drivers/staging/android/ion/ion_system_heap.c
drivers/target/tcm_fc/tfc_io.c
fs/io_uring.c
include/linux/hugetlb.h
include/linux/mm.h
lib/iov_iter.c
mm/kasan/common.c
mm/nommu.c
mm/page_vma_mapped.c
mm/rmap.c
mm/slob.c
mm/slub.c
net/xdp/xsk.c
This page took 0.103968 seconds and 4 git commands to generate.