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:
parent
affd9c086d
commit
2bd6583a34
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user