summaryrefslogtreecommitdiffstats
path: root/sys/geom/linux_lvm/g_linux_lvm.c
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2016-10-06 15:35:36 +0000
committermav <mav@FreeBSD.org>2016-10-06 15:35:36 +0000
commit22006077c2446ea98e0602f970cb428bb25acbd5 (patch)
tree233dd7787950de439df1cdf19f19f1d554d82336 /sys/geom/linux_lvm/g_linux_lvm.c
parent22e3935b200286024203db77aec100fca35e3e95 (diff)
downloadFreeBSD-src-22006077c2446ea98e0602f970cb428bb25acbd5.zip
FreeBSD-src-22006077c2446ea98e0602f970cb428bb25acbd5.tar.gz
MFC r306279: Use g_wither_provider() where applicable.
It is just a helper function combining G_PF_WITHER setting with g_orphan_provider().
Diffstat (limited to 'sys/geom/linux_lvm/g_linux_lvm.c')
-rw-r--r--sys/geom/linux_lvm/g_linux_lvm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/linux_lvm/g_linux_lvm.c b/sys/geom/linux_lvm/g_linux_lvm.c
index bf2f1e7..f03ba10 100644
--- a/sys/geom/linux_lvm/g_linux_lvm.c
+++ b/sys/geom/linux_lvm/g_linux_lvm.c
@@ -333,7 +333,7 @@ g_llvm_remove_disk(struct g_llvm_vg *vg, struct g_consumer *cp)
if (found) {
G_LLVM_DEBUG(0, "Device %s removed.",
lv->lv_gprov->name);
- g_orphan_provider(lv->lv_gprov, ENXIO);
+ g_wither_provider(lv->lv_gprov, ENXIO);
lv->lv_gprov = NULL;
}
}
OpenPOWER on IntegriCloud