diff options
| author | Matthew Wilcox (Oracle) <[email protected]> | 2023-11-09 21:06:08 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-12-29 11:58:23 -0800 |
| commit | fa399c3112344fa420944e99cd529d679411ebe6 (patch) | |
| tree | cc60862e91cfb39ee34f703bbf56a3a19011d3f5 /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | b0619401b8cdafcf32ad352a8e9a225ab0b4b10d (diff) | |
buffer: fix more functions for block size > PAGE_SIZE
Both __block_write_full_folio() and block_read_full_folio() assumed that
block size <= PAGE_SIZE. Replace the shift with a divide, which is
probably cheaper than first calculating the shift. That lets us remove
block_size_bits() as these were the last callers.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Matthew Wilcox (Oracle) <[email protected]>
Cc: Hannes Reinecke <[email protected]>
Cc: Luis Chamberlain <[email protected]>
Cc: Pankaj Raghav <[email protected]>
Cc: Ryusuke Konishi <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions