]> sourceware.org Git - lvm2.git/commitdiff
Fix hardcoded page size, fixing test fails with 8k page and new kernel.
authorMilan Broz <mbroz@redhat.com>
Sun, 6 Mar 2011 16:47:43 +0000 (16:47 +0000)
committerMilan Broz <mbroz@redhat.com>
Sun, 6 Mar 2011 16:47:43 +0000 (16:47 +0000)
WHATS_NEW
lib/mm/memlock.c

index 9c71103313bbb51cf773620202a7e0c1f62e6859..36249e44dfe9178f6344e8b02d3afb9327a36b2e 100644 (file)
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
 Version 2.02.85 - 
 ===================================
+  Use system page size and not hardcoded value in locking code check.
   Fix reading of released memory for printing segment type.
   Fix syslog initialisation in clvmd to respect lvm.conf setting.
   Fix possible overflow in maximum stripe size and physical extent size.
index 6698a31f0ae8ee6b09d0e774ee41610e43956a94..f3caaf681555e88da47f7c22856719c58311bbb4 100644 (file)
@@ -344,7 +344,7 @@ static void _unlock_mem(struct cmd_context *cmd)
                dm_free(_maps_buffer);
                _maps_buffer = NULL;
                if (_mstats < unlock_mstats) {
-                       if ((_mstats + 4096) < unlock_mstats)
+                       if ((_mstats + getpagesize()) < unlock_mstats)
                                log_error(INTERNAL_ERROR
                                          "Maps lock %ld < unlock %ld",
                                          (long)_mstats, (long)unlock_mstats);
This page took 0.050056 seconds and 5 git commands to generate.