From 622884d67ac0818ab387378d2330b05508507f3b Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Thu, 21 Mar 2024 14:27:13 +0100 Subject: [PATCH] dev_manager: open_count not needed We do not need to check for open_count in these _info calls. --- lib/activate/dev_manager.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/activate/dev_manager.c b/lib/activate/dev_manager.c index 0d24d392a..e15291371 100644 --- a/lib/activate/dev_manager.c +++ b/lib/activate/dev_manager.c @@ -2702,7 +2702,7 @@ static int _add_cvol_subdev_to_dtree(struct dev_manager *dm, struct dm_tree *dtr if (!(name = dm_build_dm_name(dm->mem, lv->vg->name, pool_lv->name, layer))) return_0; - if (!_info(dm->cmd, name, dlid, 1, 0, 0, &info, NULL, NULL)) + if (!_info(dm->cmd, name, dlid, 0, 0, 0, &info, NULL, NULL)) return_0; if (info.exists) { @@ -2994,7 +2994,7 @@ static char *_add_error_or_zero_device(struct dev_manager *dm, struct dm_tree *d seg->lv->name, errid))) return_NULL; - if (!_info(dm->cmd, name, dlid, 1, 0, 0, &info, NULL, NULL)) + if (!_info(dm->cmd, name, dlid, 0, 0, 0, &info, NULL, NULL)) return_NULL; if (!info.exists) {