Re: [PATCH] fs: fcntl_setlease defies lease_init assumptions
From: Linus Torvalds
Date: Tue May 09 2006 - 14:56:17 EST
On Tue, 9 May 2006, Manfred Spraul wrote:
>
> How many kmalloc(PAGE_SIZE*n) users are there?
A single PAGE_SIZE allocation is quite common. Lots of kernel structures
end up (often for historical reasons) being that size. PATH_MAX, for one.
Sometimes it's also simply because it's the one "known" size that doesn't
cause fragmentation and is easily available, so..
In other words, it's often the "canonical size" for some random buffer:
if only because it's known to be the largest possible buffer that is
always available.
Linus
-
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/