Re: [PATCH 20/29] btrfs: Convert to bdev_open_by_path()

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

 



On Wed, Aug 23, 2023 at 12:48:31PM +0200, Jan Kara wrote:
> Convert btrfs to use bdev_open_by_path() and pass the handle around.  We
> also drop the holder from struct btrfs_device as it is now not needed
> anymore.
> 
> CC: David Sterba <dsterba@xxxxxxxx>
> CC: linux-btrfs@xxxxxxxxxxxxxxx
> Acked-by: Christoph Hellwig <hch@xxxxxx>
> Signed-off-by: Jan Kara <jack@xxxxxxx>
> ---

Looks good to me,
Reviewed-by: Christian Brauner <brauner@xxxxxxxxxx>

> -	bdev = blkdev_get_by_path(path, BLK_OPEN_READ, NULL, NULL);
> -	if (IS_ERR(bdev))
> -		return ERR_CAST(bdev);
> +	bdev_handle = bdev_open_by_path(path, BLK_OPEN_READ, NULL, NULL);
> +	if (IS_ERR(bdev_handle))
> +		return ERR_CAST(bdev_handle);

Minor merge conflict with what's in vfs.super because we dropped
unrelated btrfs patches like David asked us to. Very easy to fix for me.
Just an fyi.



[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