Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751026AbbEPVuk (ORCPT ); Sat, 16 May 2015 17:50:40 -0400 Received: from mail-la0-f47.google.com ([209.85.215.47]:33501 "EHLO mail-la0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750712AbbEPVuh (ORCPT ); Sat, 16 May 2015 17:50:37 -0400 Date: Sun, 17 May 2015 00:50:30 +0300 From: Azat Khuzhin To: Zach Brown Cc: Sage Weil , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org Subject: Re: [PATCH RFC v2 2/2] vfs: add O_NOCMTIME Message-ID: <20150516215030.GI11068@azat> References: <1431725028-24071-1-git-send-email-zab@zabbo.net> <1431725028-24071-3-git-send-email-zab@zabbo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1431725028-24071-3-git-send-email-zab@zabbo.net> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 811 Lines: 22 On Fri, May 15, 2015 at 02:23:48PM -0700, Zach Brown wrote: > Add a O_NOCMTIME flag which prevents inode time updates on writes and > can greatly reduce the IO overhead of writes to allocated and > initialized regions of files. > --- a/include/linux/fs.h > +++ b/include/linux/fs.h You may also want to resolve this: /* * Don't update ctime and mtime. * * Currently a special hack for the XFS open_by_handle ioctl, but we'll * hopefully graduate it to a proper O_CMTIME flag supported by open(2) soon. */ #define FMODE_NOCMTIME ((__force fmode_t)0x800) -- 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/