From 1bfdbe01ff300ebbf92d68c15722d2ba861aac3b Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Mon, 15 May 2006 04:21:33 +0000 Subject: Limit size of bitmap to 2million chunks. When creating a file bitmap, choose a default size that results in fewer than 2^21 chunks. Without this kmalloc failure in the kernel becomes likely. Signed-off-by: Neil Brown --- mdadm.c | 1 - 1 file changed, 1 deletion(-) (limited to 'mdadm.c') diff --git a/mdadm.c b/mdadm.c index f310474..7f10948 100644 --- a/mdadm.c +++ b/mdadm.c @@ -1020,7 +1020,6 @@ int main(int argc, char *argv[]) } break; case BUILD: - if (bitmap_chunk == UnSet) bitmap_chunk = DEFAULT_BITMAP_CHUNK; if (delay == 0) delay = DEFAULT_BITMAP_DELAY; if (write_behind && !bitmap_file) { fprintf(stderr, Name ": write-behind mode requires a bitmap.\n"); -- cgit