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 RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux