diff options
| author | Matthew Wilcox (Oracle) <[email protected]> | 2020-12-08 00:07:31 -0500 |
|---|---|---|
| committer | Matthew Wilcox (Oracle) <[email protected]> | 2021-09-27 09:27:30 -0400 |
| commit | af7f29d9e1a7bda1429923327421367b69aa2e70 (patch) | |
| tree | 1414a3f8d7cd7a58a1f677fa7f2d760d48f2bc47 /tools/perf/scripts/python/bin | |
| parent | 7c23c782d5d57df97509ed2fc17f9b9490f18f1b (diff) | |
mm/filemap: Add folio_lock_killable()
This is like lock_page_killable() but for use by callers who
know they have a folio. Convert __lock_page_killable() to be
__folio_lock_killable(). This saves one call to compound_head() per
contended call to lock_page_killable().
__folio_lock_killable() is 19 bytes smaller than __lock_page_killable()
was. filemap_fault() shrinks by 74 bytes and __lock_page_or_retry()
shrinks by 71 bytes. That's a total of 164 bytes of text saved.
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]>
Acked-by: Mike Rapoport <[email protected]>
Reviewed-by: David Howells <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions