summaryrefslogtreecommitdiffstats
path: root/bitmap.c
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2009-12-21 17:54:32 -0700
committerDan Williams <dan.j.williams@intel.com>2009-12-21 17:54:32 -0700
commit1e5c69836d4d0b6dcaef8fc187e6bf2841eb57f6 (patch)
tree8fbd3075e85acccba73a9845ef3cdae9bf6d8e89 /bitmap.c
parent2904b26f059c5d82d9d631c9987e92e3f9af498c (diff)
downloadmdadm-1e5c69836d4d0b6dcaef8fc187e6bf2841eb57f6.tar.gz
mdadm-1e5c69836d4d0b6dcaef8fc187e6bf2841eb57f6.tar.xz
mdadm-1e5c69836d4d0b6dcaef8fc187e6bf2841eb57f6.zip
imsm: add support for checkpointing via 'curr_migr_unit'
Unlike native md checkpointing some data about the geometry and type of the migration process is coded into curr_migr_unit. Provide logic to convert between md/{resync_start|recovery_start} and imsm/curr_migr_unit. Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'bitmap.c')
-rw-r--r--bitmap.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/bitmap.c b/bitmap.c
index 850b0ce..088e37d 100644
--- a/bitmap.c
+++ b/bitmap.c
@@ -20,8 +20,6 @@
#include "mdadm.h"
-#define min(a,b) (((a) < (b)) ? (a) : (b))
-
inline void sb_le_to_cpu(bitmap_super_t *sb)
{
sb->magic = __le32_to_cpu(sb->magic);