mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-09-18 23:09:29 +02:00
isofs: handle set_blocksize failures
isofs 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-8-hch@lst.de
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
This commit is contained in:
+2
-1
@@ -818,7 +818,8 @@ root_found:
|
||||
* entries. By forcing the blocksize in this way, we ensure
|
||||
* that we will never be required to do this.
|
||||
*/
|
||||
sb_set_blocksize(s, orig_zonesize);
|
||||
if (!sb_set_blocksize(s, orig_zonesize))
|
||||
goto out_freesbi;
|
||||
|
||||
sbi->s_nls_iocharset = NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user