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]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux