summaryrefslogtreecommitdiffstats
path: root/mm/rmap.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2023-11-09 21:06:08 +0000
committerAndrew Morton <akpm@linux-foundation.org>2023-12-29 11:58:23 -0800
commitfa399c3112344fa420944e99cd529d679411ebe6 (patch)
treecc60862e91cfb39ee34f703bbf56a3a19011d3f5 /mm/rmap.c
parentb0619401b8cdafcf32ad352a8e9a225ab0b4b10d (diff)
downloadlinux-fa399c3112344fa420944e99cd529d679411ebe6.tar.gz
linux-fa399c3112344fa420944e99cd529d679411ebe6.tar.bz2
linux-fa399c3112344fa420944e99cd529d679411ebe6.zip
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/20231109210608.2252323-8-willy@infradead.org Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Cc: Hannes Reinecke <hare@suse.de> Cc: Luis Chamberlain <mcgrof@kernel.org> Cc: Pankaj Raghav <p.raghav@samsung.com> Cc: Ryusuke Konishi <konishi.ryusuke@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/rmap.c')
0 files changed, 0 insertions, 0 deletions