mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 10:09:10 +02:00
jfs: handle set_blocksize failures
jfs 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-5-hch@lst.de
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
This commit is contained in:
parent
c7d911ea1c
commit
05107f5602
|
|
@ -491,7 +491,8 @@ static int jfs_fill_super(struct super_block *sb, struct fs_context *fc)
|
|||
/*
|
||||
* Initialize blocksize to 4K.
|
||||
*/
|
||||
sb_set_blocksize(sb, PSIZE);
|
||||
if (!sb_set_blocksize(sb, PSIZE))
|
||||
goto out_unload;
|
||||
|
||||
/*
|
||||
* Set method vectors.
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user