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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1052AC7EE2F for ; Fri, 9 Jun 2023 16:46:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229889AbjFIQqN (ORCPT ); Fri, 9 Jun 2023 12:46:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229842AbjFIQpv (ORCPT ); Fri, 9 Jun 2023 12:45:51 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BC491AE for ; Fri, 9 Jun 2023 09:44:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1686329095; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lP5O6Y+WWlbHJraaUNqLEu0298uTs2XTBNqgvHhDjHo=; b=WmnsYHgIj+AQ7N2tl8AxknWxPnsx7Ug1QbzYl7HCfimX5uzMwyc5GeYnOh7HD9KBtDxna8 9sGQz6ZPWVOSa4EIqCdQjShfs3kSCuKqLoaS9Z7saFfuriy6LT9dyLcUkyoRKgWw83Hg7p vc251aVbIkrBYHiHFZ9yrqwNtjfZXd8= Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-451-kmyg0xy3NXiVEUpbebBo6A-1; Fri, 09 Jun 2023 12:44:54 -0400 X-MC-Unique: kmyg0xy3NXiVEUpbebBo6A-1 Received: by mail-pl1-f199.google.com with SMTP id d9443c01a7336-1b03cfa7602so6733235ad.3 for ; Fri, 09 Jun 2023 09:44:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686329093; x=1688921093; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lP5O6Y+WWlbHJraaUNqLEu0298uTs2XTBNqgvHhDjHo=; b=aUpyDkc+BtnCwJv5T/QDyl2oYOVZg0Jbn7oEtmka0el+wC7PTi0OnY2N2HFtFQ7kbl C/QuX64Lsu4Pv9lyFShoxJ4J3t73dF7v2XhKFsAhBNgHnIpBpWP0eL5Cw2cU+2UfQhDX sQhboMbwqzucQnj+2MgSbjvzgWLJggrXYaXUU7HA5jL2IFb2eDQ/3eNRtFkv+nluBr8A Q822JJl58ySuE0xkpH7E5r5eR3AOBpiiBlPQZdRuId+7tJWwCkloZyn2VnQTxdTLScPf x7+UIdxhAoaR5tJeEY1gBQh7KhJLwWL8mm0/37pyvK87so929IkaagmGaR+Xmw4x57f1 ZnSg== X-Gm-Message-State: AC+VfDzKVzdksRgyxWwTf2STOBZFNVo3y6d78GNHd+FLMFbAGG50d6Tu TRHkpf6EwLd3ow0SayrV5cCipzeVbbQH2neHX4nT0KLeZO9IW14CF6PLUGWBssRpIkqQCk4aofw qMIsWdgW7oQ/ehqckDnzIrsJXSPEYEa/UPbTa4ryf X-Received: by 2002:a17:902:b905:b0:1af:e63f:5bb1 with SMTP id bf5-20020a170902b90500b001afe63f5bb1mr1282638plb.7.1686329092970; Fri, 09 Jun 2023 09:44:52 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7zDVq695OK7McLR4vzNBftl0R3SL21TRjXzZOuBBU36wjdeP/MVpNAkO6JcixIuhfY6AAHiytBnKwzWzUI7o8= X-Received: by 2002:a17:902:b905:b0:1af:e63f:5bb1 with SMTP id bf5-20020a170902b90500b001afe63f5bb1mr1282622plb.7.1686329092671; Fri, 09 Jun 2023 09:44:52 -0700 (PDT) MIME-Version: 1.0 References: <20230609125023.399942-1-jlayton@kernel.org> <20230609125023.399942-8-jlayton@kernel.org> In-Reply-To: <20230609125023.399942-8-jlayton@kernel.org> From: Andreas Gruenbacher Date: Fri, 9 Jun 2023 18:44:41 +0200 Message-ID: Subject: Re: [PATCH 7/9] gfs2: update ctime when quota is updated To: Jeff Layton Cc: Christian Brauner , Al Viro , Brad Warrum , Ritu Agarwal , Arnd Bergmann , Greg Kroah-Hartman , Ian Kent , "Tigran A. Aivazian" , Jeremy Kerr , Ard Biesheuvel , Namjae Jeon , Sungjong Seo , Bob Peterson , Steve French , Paulo Alcantara , Ronnie Sahlberg , Shyam Prasad N , Tom Talpey , John Johansen , Paul Moore , James Morris , "Serge E. Hallyn" , Ruihan Li , Suren Baghdasaryan , Sebastian Reichel , Wolfram Sang , linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, autofs@vger.kernel.org, linux-efi@vger.kernel.org, linux-fsdevel@vger.kernel.org, cluster-devel@redhat.com, linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, apparmor@lists.ubuntu.com, linux-security-module@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Jeff, On Fri, Jun 9, 2023 at 2:50=E2=80=AFPM Jeff Layton wro= te: > Signed-off-by: Jeff Layton > --- > fs/gfs2/quota.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/gfs2/quota.c b/fs/gfs2/quota.c > index 1ed17226d9ed..6d283e071b90 100644 > --- a/fs/gfs2/quota.c > +++ b/fs/gfs2/quota.c > @@ -869,7 +869,7 @@ static int gfs2_adjust_quota(struct gfs2_inode *ip, l= off_t loc, > size =3D loc + sizeof(struct gfs2_quota); > if (size > inode->i_size) > i_size_write(inode, size); > - inode->i_mtime =3D inode->i_atime =3D current_time(inode)= ; > + inode->i_mtime =3D inode->i_atime =3D inode->i_ctime =3D = current_time(inode); I don't think we need to worry about the ctime of the quota inode as that inode is internal to the filesystem only. > mark_inode_dirty(inode); > set_bit(QDF_REFRESH, &qd->qd_flags); > } > -- > 2.40.1 > Thanks, Andreas