lkml.org 
[lkml]   [2023]   [May]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 19/24] dm: remove dm_get_dev_t
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.

\
 
 \ /
  Last update: 2023-05-24 08:07    [W:0.113 / U:0.216 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site