Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753907AbcCRHUG (ORCPT ); Fri, 18 Mar 2016 03:20:06 -0400 Received: from mail-ig0-f193.google.com ([209.85.213.193]:32858 "EHLO mail-ig0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752089AbcCRHUB (ORCPT ); Fri, 18 Mar 2016 03:20:01 -0400 MIME-Version: 1.0 In-Reply-To: References: <20160313233049.GA30721@dastard> <56E69398.7030508@redhat.com> <20160314144603.GO29218@thunk.org> <20160315201431.GG30721@dastard> <20160315223313.GH30721@dastard> <20160315225224.GD23848@thunk.org> <20160316015139.GC5826@birch.djwong.org> <7674C689-C07E-4D38-85EB-4FD9B55CBB35@dilger.ca> <20160317001502.GF23593@thunk.org> <56E9FB73.6040803@redhat.com> Date: Fri, 18 Mar 2016 00:19:59 -0700 X-Google-Sender-Auth: Wu09zt1QhU2DcNRMex1wD6RIc5M Message-ID: Subject: Re: [PATCH 2/2] block: create ioctl to discard-or-zeroout a range of blocks From: Linus Torvalds To: Gregory Farnum Cc: Eric Sandeen , "Theodore Ts'o" , Andreas Dilger , "Darrick J. Wong" , Dave Chinner , Ric Wheeler , Andy Lutomirski , One Thousand Gnomes , Martin Petersen , Christoph Hellwig , Jens Axboe , Andrew Morton , Linux API , Linux Kernel Mailing List , shane.seymour@hpe.com, Bruce Fields , linux-fsdevel , Jeff Layton Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 751 Lines: 16 On Thu, Mar 17, 2016 at 11:52 PM, Gregory Farnum wrote: > > I wasn't really involved in this stuff but I gather from looking at > http://www.spinics.net/lists/xfs/msg36869.html that any durability > command other than fdatasync is going to write out the mtime updates > to the inodes on disk. Given our durability requirements and the > guarantees offered about when things actually hit disk, that doesn't > work for us. Fair enough. Yes, the lazytime thing doesn't help if you actually sync the file explicitly, then you'd really do need something like NOMTIME in order to not dirty the inode itself at all (together with preallocation - otherwise the inode will be dirty due to the block allocation updates). Linus