Re: [PATCH] Permit inode & dentry hash tables to be allocated > MAX_ORDER size

From: Andy Whitcroft
Date: Sat Jun 12 2004 - 07:50:22 EST


--On 11 June 2004 16:30 -0700 Andrew Morton <akpm@xxxxxxxx> wrote:

Doesn't look that way. It uses

(zone->zone_mem_map - page) >> (1 + order)

Hmmm, yes. Does this not mean that we will violate the object size N will be aligned at size N. Presumably that's why the error says 'it'll crash'. If we are two pages offset we will allocate 4 page objects 2 page aligned. I'll have a closer look and see if we can just 'round down' the zone_mem_map pointer here to give the correct alignment. As long as we don't try and free them into the allocator originally we should be ok, as they are marked allocated in the bitmaps at the start.

-apw
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/