Re: [PATCH 19/24] dm: remove dm_get_dev_t

From: Christoph Hellwig
Date: Wed May 24 2023 - 02:07:08 EST


On Tue, May 23, 2023 at 12:49:16PM -0400, Mike Snitzer wrote:
> > - dev = dm_get_dev_t(path);
> > - if (!dev)
> > + r = lookup_bdev(path, &dev);
> > + if (r)
> > + r = early_lookup_bdev(path, &dev);
> > + if (r)
> > return -ENODEV;
> > }
> > if (dev == disk_devt(t->md->disk))
>
> OK, but you aren't actually propagating the exact error code. Did
> you intend to change the return from -ENODEV to r?

Yes, thanks.