1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

dev_manager: open_count not needed

We do not need to check for open_count in these _info calls.
This commit is contained in:
Zdenek Kabelac 2024-03-21 14:27:13 +01:00
parent 363e8888ae
commit 622884d67a

View File

@ -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) {