Snapshot: Make calc_max_buckets return a constant 2M for now (need a proper fix for this). [Chris Mason] --- diff/drivers/md/dm-snap.c 2004-05-27 14:24:13.000000000 +0100 +++ source/drivers/md/dm-snap.c 2004-05-27 14:24:17.000000000 +0100 @@ -318,10 +318,8 @@ */ static int calc_max_buckets(void) { - unsigned long mem; - - mem = num_physpages << PAGE_SHIFT; - mem /= 50; + /* use a fixed size of 2MB */ + unsigned long mem = 2 * 1024 * 1024; mem /= sizeof(struct list_head); return mem;