Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753548Ab2K2CCX (ORCPT ); Wed, 28 Nov 2012 21:02:23 -0500 Received: from mail-qc0-f174.google.com ([209.85.216.174]:54758 "EHLO mail-qc0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752896Ab2K2CCV (ORCPT ); Wed, 28 Nov 2012 21:02:21 -0500 Date: Wed, 28 Nov 2012 18:02:21 -0800 (PST) From: Hugh Dickins X-X-Sender: hugh@eggly.anvils To: Jaegeuk Hanse cc: Andrew Morton , "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) In-Reply-To: <20121129012933.GA9112@kernel> Message-ID: References: <20121129012933.GA9112@kernel> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1778 Lines: 45 On Thu, 29 Nov 2012, Jaegeuk Hanse wrote: > On Wed, Nov 28, 2012 at 05:22:03PM -0800, Hugh Dickins wrote: > >Revert 3.5's f21f8062201f ("tmpfs: revert SEEK_DATA and SEEK_HOLE") > >to reinstate 4fb5ef089b28 ("tmpfs: support SEEK_DATA and SEEK_HOLE"), > >with the intervening additional arg to generic_file_llseek_size(). > > > >In 3.8, ext4 is expected to join btrfs, ocfs2 and xfs with proper > >SEEK_DATA and SEEK_HOLE support; and a good case has now been made > >for it on tmpfs, so let's join the party. > > > > Hi Hugh, > > IIUC, several months ago you revert the patch. You said, > > "I don't know who actually uses SEEK_DATA or SEEK_HOLE, and whether it > would be of any use to them on tmpfs. This code adds 92 lines and 752 > bytes on x86_64 - is that bloat or worthwhile?" YUC. > > But this time in which scenario will use it? I was not very convinced by the grep argument from Jim and Paul: that seemed to be grep holding on to a no-arbitrary-limits dogma, at the expense of its users, causing an absurd line-length issue, which use of SEEK_DATA happens to avoid in some cases. The cp of sparse files from Jeff and Dave was more convincing; but I still didn't see why little old tmpfs needed to be ahead of the pack. But at LinuxCon/Plumbers in San Diego in August, a more convincing case was made: I was hoping you would not ask, because I did not take notes, and cannot pass on the details - was it rpm building on tmpfs? I was convinced enough to promise support on tmpfs when support on ext4 goes in. 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/