diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2020-08-15 03:30:43 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-08-15 05:56:56 +0300 |
commit | ee6c400f5c05459b8c5f2884a176a1287ce2f68f (patch) | |
tree | 1c6b77eeb0209995bf012dcbe90bcd1ef76a1fcc /arch/sh/configs/se7750_defconfig | |
parent | 2be1d71841b7ecfb01ce4c59f6e1d082c3c18a8a (diff) | |
download | linux-ee6c400f5c05459b8c5f2884a176a1287ce2f68f.tar.xz |
mm: introduce offset_in_thp
Mirroring offset_in_page(), this gives you the offset within this
particular page, no matter what size page it is. It optimises down to
offset_in_page() if CONFIG_TRANSPARENT_HUGEPAGE is not set.
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: William Kucharski <william.kucharski@oracle.com>
Reviewed-by: Zi Yan <ziy@nvidia.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-8-willy@infradead.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/sh/configs/se7750_defconfig')
0 files changed, 0 insertions, 0 deletions