Re: [PATCH v2] zonefs: move super block reading from page to folio

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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)?





[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux