summaryrefslogtreecommitdiff
path: root/scripts/rust_is_available_test.py
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2023-11-09 21:06:03 +0000
committerAndrew Morton <akpm@linux-foundation.org>2023-12-29 11:58:22 -0800
commit382497ada051a6fc79612aba5e30cdfa26364374 (patch)
treee56f1fb1dd8e4da19a956f00dcf586c7394030ca /scripts/rust_is_available_test.py
parent6d840a18773f36baaecc2d2f7fb18ec5862349e6 (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/20231109210608.2252323-3-willy@infradead.org Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: Pankaj Raghav <p.raghav@samsung.com> Cc: Hannes Reinecke <hare@suse.de> Cc: Luis Chamberlain <mcgrof@kernel.org> Cc: Ryusuke Konishi <konishi.ryusuke@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'scripts/rust_is_available_test.py')
0 files changed, 0 insertions, 0 deletions