1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-10 16:58:47 +03:00

cleanup: skip call of detect...

SInce we know the pool was locked and we want to reloc pool again,
just use '1' directly.
This commit is contained in:
Zdenek Kabelac 2013-09-20 15:52:25 +02:00
parent 861a3b2f19
commit 30432bd604

View File

@ -850,7 +850,7 @@ static int _vg_update_vg_ondisk(struct volume_group *vg)
dm_config_destroy(cft);
/* recompute the pool crc */
if (pool_locked && !dm_pool_lock(vg->vgmem, detect_internal_vg_cache_corruption()))
if (pool_locked && !dm_pool_lock(vg->vgmem, 1))
return_0;
return vg->vg_ondisk ? 1 : 0;