diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2020-08-15 02:30:33 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-08-15 04:56:56 +0200 |
commit | af3bbc12df80e8c279b94c752b6edca29841f4f5 (patch) | |
tree | 5e69277956e96fe4ccce71613db1f66dd13b1441 /mm/swap.c | |
parent | mm: add thp_order (diff) | |
download | linux-af3bbc12df80e8c279b94c752b6edca29841f4f5.tar.xz linux-af3bbc12df80e8c279b94c752b6edca29841f4f5.zip |
mm: add thp_size
This function returns the number of bytes in a THP. It is like
page_size(), but compiles to just PAGE_SIZE if CONFIG_TRANSPARENT_HUGEPAGE
is disabled.
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: William Kucharski <william.kucharski@oracle.com>
Reviewed-by: Zi Yan <ziy@nvidia.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Link: http://lkml.kernel.org/r/20200629151959.15779-5-willy@infradead.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/swap.c')
0 files changed, 0 insertions, 0 deletions