Loading drivers/md/dm.c +10 −0 Original line number Diff line number Diff line Loading @@ -921,6 +921,16 @@ static struct mapped_device *dm_find_md(dev_t dev) return md; } struct mapped_device *dm_get_md(dev_t dev) { struct mapped_device *md = dm_find_md(dev); if (md) dm_get(md); return md; } void *dm_get_mdptr(dev_t dev) { struct mapped_device *md; Loading drivers/md/dm.h +1 −0 Original line number Diff line number Diff line Loading @@ -58,6 +58,7 @@ int dm_create(struct mapped_device **md); int dm_create_with_minor(unsigned int minor, struct mapped_device **md); void dm_set_mdptr(struct mapped_device *md, void *ptr); void *dm_get_mdptr(dev_t dev); struct mapped_device *dm_get_md(dev_t dev); /* * Reference counting for md. Loading Loading
drivers/md/dm.c +10 −0 Original line number Diff line number Diff line Loading @@ -921,6 +921,16 @@ static struct mapped_device *dm_find_md(dev_t dev) return md; } struct mapped_device *dm_get_md(dev_t dev) { struct mapped_device *md = dm_find_md(dev); if (md) dm_get(md); return md; } void *dm_get_mdptr(dev_t dev) { struct mapped_device *md; Loading
drivers/md/dm.h +1 −0 Original line number Diff line number Diff line Loading @@ -58,6 +58,7 @@ int dm_create(struct mapped_device **md); int dm_create_with_minor(unsigned int minor, struct mapped_device **md); void dm_set_mdptr(struct mapped_device *md, void *ptr); void *dm_get_mdptr(dev_t dev); struct mapped_device *dm_get_md(dev_t dev); /* * Reference counting for md. Loading