On Thu, May 23, 2024 at 03:01:53PM +0200, Johannes Thumshirn wrote: > static int zonefs_read_super(struct super_block *sb) > { > struct zonefs_sb_info *sbi = ZONEFS_SB(sb); > + struct address_space *address_space = sb->s_bdev->bd_inode->i_mapping; 203c1ce0bb06 killed bd_inode. You want struct address_space *address_space = sb->s_bdev->bd_mapping > + folio = read_mapping_folio(address_space, 0, NULL); > + if (IS_ERR(folio)) > + return -EINVAL; Wouldn't it be better to return PTR_ERR(folio)?