Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756120AbXKDSbQ (ORCPT ); Sun, 4 Nov 2007 13:31:16 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752989AbXKDSbF (ORCPT ); Sun, 4 Nov 2007 13:31:05 -0500 Received: from extu-mxob-2.symantec.com ([216.10.194.135]:33567 "EHLO extu-mxob-2.symantec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752467AbXKDSbE (ORCPT ); Sun, 4 Nov 2007 13:31:04 -0500 Date: Sun, 4 Nov 2007 18:29:54 +0000 (GMT) From: Hugh Dickins X-X-Sender: hugh@blonde.wat.veritas.com To: Michael Marineau cc: Andrew Morton , linux-kernel@vger.kernel.org, trivial@kernel.org Subject: Re: [PATCH, RESEND] tmpfs: fix mounts when size is less than the page size In-Reply-To: Message-ID: References: <11941279021705-git-send-email-mike@marineau.org> <11941336124117-git-send-email-mike@marineau.org> 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: 1025 Lines: 21 On Sun, 4 Nov 2007, Michael Marineau wrote: > On 11/4/07, Hugh Dickins wrote: > > Fair enough, that does match the documentation of "size=0" better. > > Though either way, someone who typos is going to get one kind of surprise > > or another. Do you mind if we do it slightly differently, achieving the > > same effect without a special case, by rounding up instead of down? > > Sounds reasonable to me. I didn't know about DIV_ROUND_UP :-) I'm not familiar with it either (had to look it up to check it's the right thing) - in mm/ we're accustomed to writing things like "(size + PAGE_CACHE_SIZE - 1) >> PAGE_CACHE_SHIFT"; but that took the line over 80 columns, and I dreaded someone somewhere mailing in to ask "Why didn't you use DIV_ROUND_UP?" ;-) Hugh - 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/