]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
Revert "btrfs: fix the file offset calculation inside btrfs_decompress_buf2page()"
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 22 May 2026 18:14:07 +0000 (19:14 +0100)
committerJohannes Thumshirn <johannes.thumshirn@wdc.com>
Tue, 9 Jun 2026 16:22:44 +0000 (18:22 +0200)
commit0279bed34c22dd5ebff12e5af8ef940de93c5523
tree12d935bcfd7792b44ef8745cafd020a6a189d494
parent814c3b4ea357297c507158bceb07bcdc5fbe9808
Revert "btrfs: fix the file offset calculation inside btrfs_decompress_buf2page()"

It seems that af566bdaff54 was tested against a tree which did not
contain commit 12851bd921d4 ("fs: Turn page_offset() into a wrapper
around folio_pos()).  Unfortunately it has a bug of its own; on 32-bit
systems, shifting by PAGE_SHIFT will overflow on files larger than 4GiB.
Since page_offset() is now fixed, just revert af566bdaff54.

Fixes: af566bdaff54 (btrfs: fix the file offset calculation inside btrfs_decompress_buf2page())
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Boris Burkov <boris@bur.io>
Tested-by: Boris Burkov <boris@bur.io>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/compression.c