aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <[email protected]>2020-08-14 17:30:43 -0700
committerLinus Torvalds <[email protected]>2020-08-14 19:56:56 -0700
commitee6c400f5c05459b8c5f2884a176a1287ce2f68f (patch)
tree1c6b77eeb0209995bf012dcbe90bcd1ef76a1fcc /lib/test_overflow.c
parent2be1d71841b7ecfb01ce4c59f6e1d082c3c18a8a (diff)
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) <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Reviewed-by: David Hildenbrand <[email protected]> Reviewed-by: William Kucharski <[email protected]> Reviewed-by: Zi Yan <[email protected]> Cc: Mike Kravetz <[email protected]> Cc: "Kirill A. Shutemov" <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions