diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2020-08-14 17:30:33 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-08-14 19:56:56 -0700 |
commit | af3bbc12df80e8c279b94c752b6edca29841f4f5 (patch) | |
tree | 5e69277956e96fe4ccce71613db1f66dd13b1441 /certs/Makefile | |
parent | 6ffbb45826f5d9ae09aa60cd88594b7816c96190 (diff) | |
download | linux-stable-af3bbc12df80e8c279b94c752b6edca29841f4f5.tar.gz linux-stable-af3bbc12df80e8c279b94c752b6edca29841f4f5.tar.bz2 linux-stable-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 'certs/Makefile')
0 files changed, 0 insertions, 0 deletions