Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751163AbWEIS4f (ORCPT ); Tue, 9 May 2006 14:56:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751181AbWEIS4f (ORCPT ); Tue, 9 May 2006 14:56:35 -0400 Received: from smtp.osdl.org ([65.172.181.4]:6840 "EHLO smtp.osdl.org") by vger.kernel.org with ESMTP id S1751163AbWEIS4e (ORCPT ); Tue, 9 May 2006 14:56:34 -0400 Date: Tue, 9 May 2006 11:56:12 -0700 (PDT) From: Linus Torvalds To: Manfred Spraul cc: Pekka J Enberg , Christoph Lameter , Daniel Hokka Zakrisson , linux-kernel@vger.kernel.org, =?ISO-8859-1?Q?Bj=F6rn_Steinbrink?= , greg@kroah.com, matthew@wil.cx, akpm@osdl.org Subject: Re: [PATCH] fs: fcntl_setlease defies lease_init assumptions In-Reply-To: <4460DEAD.9040900@colorfullife.com> Message-ID: References: <445E80DD.9090507@hozac.com> <84144f020605080131r58ce2a93w6c7ba784a266bbeb@mail.gmail.com> <84144f020605080134q7e16f37fl385359c634ece8ca@mail.gmail.com> <1147104412.22096.8.camel@localhost> <1147116991.11282.3.camel@localhost> <44603543.8070205@colorfullife.com> <4460DEAD.9040900@colorfullife.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 786 Lines: 21 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/