1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-08-03 08:22:00 +03:00

o use dev_name(dev) to get the name of a device, this operation is cheap

since it just get's the first alias.
This commit is contained in:
Joe Thornber
2001-10-25 14:04:18 +00:00
parent 3cfae6cfce
commit c7f0b573ac
16 changed files with 78 additions and 82 deletions

View File

@ -151,7 +151,7 @@ static int _accept_p(struct dev_filter *f, struct device *dev)
int m;
struct rfilter *rf = (struct rfilter *) f->private;
m = matcher_run(rf->engine, dev->name);
m = matcher_run(rf->engine, dev_name(dev));
/*
* pass everything that doesn't match,