Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754725Ab2K3ASZ (ORCPT ); Thu, 29 Nov 2012 19:18:25 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:40422 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752859Ab2K3ASX (ORCPT ); Thu, 29 Nov 2012 19:18:23 -0500 Date: Thu, 29 Nov 2012 16:18:21 -0800 From: Andrew Morton To: Hugh Dickins Cc: "Theodore Ts'o" , Zheng Liu , Jeff liu , Jim Meyering , Paul Eggert , Christoph Hellwig , Josef Bacik , Andi Kleen , Andreas Dilger , Dave Chinner , Marco Stornelli , Chris Mason , Sunil Mushran , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH] tmpfs: support SEEK_DATA and SEEK_HOLE (reprise) Message-Id: <20121129161821.8103962c.akpm@linux-foundation.org> In-Reply-To: References: <20121129145924.9fb05982.akpm@linux-foundation.org> X-Mailer: Sylpheed 3.0.2 (GTK+ 2.20.1; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1434 Lines: 38 On Thu, 29 Nov 2012 15:29:15 -0800 (PST) Hugh Dickins wrote: > On Thu, 29 Nov 2012, Andrew Morton wrote: > > On Wed, 28 Nov 2012 17:22:03 -0800 (PST) > > Hugh Dickins wrote: > > > > > +/* > > > + * llseek SEEK_DATA or SEEK_HOLE through the radix_tree. > > > + */ > > > +static pgoff_t shmem_seek_hole_data(struct address_space *mapping, > > > + pgoff_t index, pgoff_t end, int origin) > > > > So I was starting at this wondering what on earth "origin" is and why > > it has the fishy-in-this-context type "int". > > > > There is a pretty well established convention that the lseek seek mode > > is called "whence". > > > > The below gets most of it. Too anal? > > No, not too anal: I'm all in favour of "whence", which is indeed > the name of that lseek argument - since mediaeval times I believe. Alas, the rest of us don't have personal memories from those days. > It's good to have words like that in the kernel source: while you're > in the mood, please see if you can find good homes for "whither" and > "thrice" and "widdershins". We use "thrice" quite a lot. And "whither" once coz alfa peeps cnat spel. No widdershins yet. -- 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/