From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D3B1CC54FCF for ; Wed, 25 Mar 2020 15:01:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B600020714 for ; Wed, 25 Mar 2020 15:01:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727501AbgCYPBN (ORCPT ); Wed, 25 Mar 2020 11:01:13 -0400 Received: from verein.lst.de ([213.95.11.211]:41195 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727469AbgCYPBM (ORCPT ); Wed, 25 Mar 2020 11:01:12 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 6EDE168B05; Wed, 25 Mar 2020 16:01:08 +0100 (CET) Date: Wed, 25 Mar 2020 16:01:08 +0100 From: Christoph Hellwig To: Theodore Ts'o , Jaegeuk Kim , Chao Yu , Al Viro , Richard Weinberger , linux-xfs@vger.kernel.org Cc: Eric Biggers , linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-fsdevel@vger.kernel.org, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/4] fs: avoid double-writing the inode on a lazytime expiration Message-ID: <20200325150108.GA14435@lst.de> References: <20200325122825.1086872-1-hch@lst.de> <20200325122825.1086872-3-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200325122825.1086872-3-hch@lst.de> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-xfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-xfs@vger.kernel.org On Wed, Mar 25, 2020 at 01:28:23PM +0100, Christoph Hellwig wrote: > --- a/fs/ext4/super.c > +++ b/fs/ext4/super.c > @@ -1448,6 +1448,11 @@ static struct dquot **ext4_get_dquots(struct inode *inode) > return EXT4_I(inode)->i_dquot; > } > > +static void ext4_lazytime_expired(struct inode *inode) > +{ > + return ext4_dirty_inode(inode, I_DIRTY_SYNC); > +} FYI: this is inside an #ifdef CONFIG_QUOTA, so I'll have to respin even if the overall approach looks good.