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 --- Create.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'Create.c') diff --git a/Create.c b/Create.c index df6d850..2cd644b 100644 --- a/Create.c +++ b/Create.c @@ -432,9 +432,6 @@ int Create(struct supertype *st, char *mddev, int mdfd, if (bitmap_file) { int uuid[4]; - if (bitmap_chunk == UnSet) - bitmap_chunk = DEFAULT_BITMAP_CHUNK; - st->ss->uuid_from_super(uuid, super); if (CreateBitmap(bitmap_file, force, (char*)uuid, bitmap_chunk, delay, write_behind, -- cgit