diff options
| author | Matthew Wilcox (Oracle) <[email protected]> | 2020-12-07 15:44:35 -0500 |
|---|---|---|
| committer | Matthew Wilcox (Oracle) <[email protected]> | 2021-09-27 09:27:30 -0400 |
| commit | 4e1364286d0a2dd384bceb6db6185b99c0e2c0bc (patch) | |
| tree | 57e1d10680fc3900a884c40f94dcb308bf5d5123 /tools/perf/scripts/python | |
| parent | 2f52578f9c64d7d9a96ab81c243cc20804fabf2b (diff) | |
mm/filemap: Add folio_unlock()
Convert unlock_page() to call folio_unlock(). By using a folio we
avoid a call to compound_head(). This shortens the function from 39
bytes to 25 and removes 4 instructions on x86-64. Because we still
have unlock_page(), it's a net increase of 16 bytes of text for the
kernel as a whole, but any path that uses folio_unlock() will execute
4 fewer instructions.
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]>
Reviewed-by: William Kucharski <[email protected]>
Reviewed-by: David Howells <[email protected]>
Acked-by: Mike Rapoport <[email protected]>
Acked-by: Vlastimil Babka <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions