1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

Issue an Internal error message whenever _memlock_count drops below 0.

This commit is contained in:
Petr Rockai 2009-11-18 18:22:32 +00:00
parent b9ac4b0cf8
commit 39b1e58979

View File

@ -135,6 +135,8 @@ void memlock_dec(void)
if (_memlock_count && (!--_memlock_count))
_unlock_mem();
log_debug("memlock_count dec to %d", _memlock_count);
if (_memlock_count < 0)
log_error("Internal error: _memlock_count has dropped below 0.");
}
int memlock(void)