diff options
| author | Matthew Wilcox (Oracle) <[email protected]> | 2023-11-09 21:06:03 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-12-29 11:58:22 -0800 |
| commit | 382497ada051a6fc79612aba5e30cdfa26364374 (patch) | |
| tree | e56f1fb1dd8e4da19a956f00dcf586c7394030ca /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 6d840a18773f36baaecc2d2f7fb18ec5862349e6 (diff) | |
buffer: calculate block number inside folio_init_buffers()
The calculation of block from index doesn't work for devices with a block
size larger than PAGE_SIZE as we end up shifting by a negative number.
Instead, calculate the number of the first block from the folio's position
in the block device. We no longer need to pass sizebits to
grow_dev_folio().
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Matthew Wilcox (Oracle) <[email protected]>
Reviewed-by: Pankaj Raghav <[email protected]>
Cc: Hannes Reinecke <[email protected]>
Cc: Luis Chamberlain <[email protected]>
Cc: Ryusuke Konishi <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions