aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <[email protected]>2021-03-01 19:38:25 -0500
committerMatthew Wilcox (Oracle) <[email protected]>2021-09-27 09:27:30 -0400
commit7c23c782d5d57df97509ed2fc17f9b9490f18f1b (patch)
treeb4669c3184c0f795c5c15b086a0257abed664571 /tools/perf/scripts/python
parent4e1364286d0a2dd384bceb6db6185b99c0e2c0bc (diff)
mm/filemap: Add folio_lock()
This is like lock_page() but for use by callers who know they have a folio. Convert __lock_page() to be __folio_lock(). This saves one call to compound_head() per contended call to lock_page(). Saves 455 bytes of text; mostly from improved register allocation and inlining decisions. __folio_lock is 59 bytes while __lock_page was 79. Signed-off-by: Matthew Wilcox (Oracle) <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Acked-by: Jeff Layton <[email protected]> Acked-by: Kirill A. Shutemov <[email protected]> Acked-by: Vlastimil Babka <[email protected]> Reviewed-by: William Kucharski <[email protected]> Reviewed-by: David Howells <[email protected]> Acked-by: Mike Rapoport <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions