buffer-cast-block-to-loff_t-before-shifting-it.patch removed from -mm tree
The quilt patch titled
Subject: buffer: cast block to loff_t before shifting it
has been removed from the -mm tree. Its filename was
buffer-cast-block-to-loff_t-before-shifting-it.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: "Matthew Wilcox (Oracle)" <[email protected]>
Subject: buffer: cast block to loff_t before shifting it
Date: Thu, 9 Nov 2023 21:06:05 +0000
While sector_t is always defined as a u64 today, that hasn't always been the case and it might not always be the same size as loff_t in the future.
---
fs/buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/buffer.c renamed from fs/buffer.c~buffer-cast-block-to-loff_t-before-shifting-it +1 -1
@@ -2008,7 +2008,7 @@ static int iomap_to_bh(struct inode *inode, sector_t block, struct buffer_head *bh, const struct iomap *iomap) { - loff_t offset = block << inode->i_blkbits; + loff_t offset = (loff_t)block << inode->i_blkbits; bh->b_bdev = iomap->bdev;
_
Patches currently in -mm which might be from [email protected] are
mm-remove-inc-dec-lruvec-page-state-functions.patch slub-use-alloc_pages_node-in-alloc_slab_page.patch slub-use-folio-apis-in-free_large_kmalloc.patch slub-use-a-folio-in-__kmalloc_large_node.patch mm-khugepaged-use-a-folio-more-in-collapse_file.patch mm-memcontrol-remove-__mod_lruvec_page_state.patch