diff options
| author | Matthew Wilcox (Oracle) <[email protected]> | 2020-04-06 20:04:31 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2020-04-07 10:43:38 -0700 |
| commit | a0650604a707b1926cbc32feb2f006ebb74ef47b (patch) | |
| tree | 9ccf2f46cb62ab402dd3d028f0b984ae97d40a1f /tools/perf/scripts/python | |
| parent | 85b9f46e8ea451633ccd60a7d8cacbfff9f34047 (diff) | |
include/linux/pagemap.h: optimise find_subpage for !THP
If THP is disabled, find_subpage() can become a no-op by using
hpage_nr_pages() instead of compound_nr(). hpage_nr_pages() embeds a
check for PageTail, so we can drop the check here.
Signed-off-by: Matthew Wilcox (Oracle) <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Acked-by: Kirill A. Shutemov <[email protected]>
Cc: Aneesh Kumar K.V <[email protected]>
Cc: Pankaj Gupta <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions