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

Use lvm_getpagesize wrapper

This commit is contained in:
Zdenek Kabelac 2011-03-06 17:52:07 +00:00
parent affd9c086d
commit 2bd6583a34

View File

@ -344,7 +344,7 @@ static void _unlock_mem(struct cmd_context *cmd)
dm_free(_maps_buffer); dm_free(_maps_buffer);
_maps_buffer = NULL; _maps_buffer = NULL;
if (_mstats < unlock_mstats) { if (_mstats < unlock_mstats) {
if ((_mstats + getpagesize()) < unlock_mstats) if ((_mstats + lvm_getpagesize()) < unlock_mstats)
log_error(INTERNAL_ERROR log_error(INTERNAL_ERROR
"Maps lock %ld < unlock %ld", "Maps lock %ld < unlock %ld",
(long)_mstats, (long)unlock_mstats); (long)_mstats, (long)unlock_mstats);