]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
minix: handle set_blocksize failures
authorChristoph Hellwig <hch@lst.de>
Mon, 11 May 2026 07:16:53 +0000 (09:16 +0200)
committerChristian Brauner <brauner@kernel.org>
Thu, 21 May 2026 11:39:36 +0000 (13:39 +0200)
commit38a03dc2bc71e7e0746cdb9ef5e9947f72470c67
tree40e196cc1155d2c6875e9c532a07ca4da680ee5d
parent25ef4c4d9f0e96fb89c0ae0d7127c3f12a31bc32
minix: handle set_blocksize failures

minix uses buffer_heads, which don't handle block size > PAGE_SIZE well.
Without this, mounting we will hit the

        BUG_ON(offset >= folio_size(folio));

in folio_set_bh on the first __bread_gfp call.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://patch.msgid.link/20260511071701.2456211-9-hch@lst.de
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
fs/minix/inode.c