Re: [PATCH 28/29] xfs: Convert to bdev_open_by_path()

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

 



On Mon 14-08-23 10:27:46, Daniel Gomez wrote:
> 
> Hi Jan,
> 
> On Fri, Aug 11, 2023 at 01:04:59PM +0200, Jan Kara wrote:
> > Convert xfs to use bdev_open_by_path() and pass the handle around.
> >
> > CC: "Darrick J. Wong" <djwong@xxxxxxxxxx>
> > CC: linux-xfs@xxxxxxxxxxxxxxx
> > Signed-off-by: Jan Kara <jack@xxxxxxx>
...
> > @@ -2012,7 +2013,7 @@ xfs_alloc_buftarg(
> >  	ratelimit_state_init(&btp->bt_ioerror_rl, 30 * HZ,
> >  			     DEFAULT_RATELIMIT_BURST);
> >
> > -	if (xfs_setsize_buftarg_early(btp, bdev))
> > +	if (xfs_setsize_buftarg_early(btp, btp->bt_bdev))
> 
> This can now be simplified to one parameter. And use the btp->bt_bdev
> directly when invoking bdev_logical_block_size.

Fair point. Done.

								Honza
-- 
Jan Kara <jack@xxxxxxxx>
SUSE Labs, CR



[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