Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3149146rdh; Thu, 28 Sep 2023 04:20:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEj4JjXprRUv2JFG47o6WCu3MbXLi6n7emqHcNZiFWBh+9d3l0qXcStQ+RK2ndllhBIz5DA X-Received: by 2002:a05:6358:341a:b0:135:4003:7851 with SMTP id h26-20020a056358341a00b0013540037851mr873005rwd.19.1695900021094; Thu, 28 Sep 2023 04:20:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695900021; cv=none; d=google.com; s=arc-20160816; b=vrXc4zzjhPqLUrgF+IDoHWUVpuNAjK1kUb7lw/bVYr0QDMGhGVaTmZqH7NmYvS/FLS fcppUrGnUtybFeS+HPbI3nQy+Hh/Ya7+ytjRDS1BuPAHIZKjz/QoUzW7LuTllf9tJBCj kiDnm9xLpnE+tOiAh/Lrvk5JL0mdO8y060z/OPaVJiDGJbKNKtwJ8CNkEZy2WtrH/XEP NORoQI6iX/S2djdu1+Q8SmfZo6EB4zFaIvho6fH3sK3Awz267BOKF8O+Ck0KlfoFw8O/ Uv/4h7mmyHcKUjV4YLNV9E4mn3Zi8HF5DF/BBPK0Ru7zisgH92x+wamW6J5Q2JV14jYO r0Qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=vwEVOzoBZse/Gg9Jhuit3E6jU2I5Svcd91Z9XqH3laE=; fh=c1hve9LK7bidUltaxotdOOkNtWZ8Drk/KOyPdUWU/OI=; b=zAClrGBgR7maqklBYqd2tRBI0bz2DVcuvccqT7bDHtOk5ZM9jEbfgfss+Z5tBzzN41 6CspMYkXLkQM+FVQ61+2TwRjIOMJPuFSipIEOuQPYngj/A0o+g1EYyfluAWXIW1DNkMj DCKUX1zC/Sk8gj458z/k9BJhAAMTgijLmPA4XB+RMgHP+o8RvcxYQWIsdE8fJYrO1qzR kJOp4NHGRnRbzfL6FRWpGMGYgUAexVc2Bta3ISQt+Q+8KKNS5nqcVMIa8aQQ6aZ5tgcl DWrfQmqSZ/iTJDfIBeRUwpvvhFEyfkMsEtVnPfMPdLdTGIkxcP0NaeDI7HpDRsl1a5Fq NPcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iDIHHesg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id bx20-20020a056a00429400b00687427c1ac1si18445385pfb.25.2023.09.28.04.20.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 04:20:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iDIHHesg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id C44B4858206D; Thu, 28 Sep 2023 04:08:48 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232460AbjI1LIT (ORCPT + 99 others); Thu, 28 Sep 2023 07:08:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232430AbjI1LGx (ORCPT ); Thu, 28 Sep 2023 07:06:53 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85F8C198B; Thu, 28 Sep 2023 04:05:10 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 638B5C433CD; Thu, 28 Sep 2023 11:05:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695899109; bh=wGHG8BLVh6e2CPi1I4Lj4sfPFEY/gG6PCDAB7nwbvck=; h=From:To:Subject:Date:In-Reply-To:References:From; b=iDIHHesgkN0Utprud/ZhdXBjTWSRbOq0gj7mnBBsRENbVagC83R492BDAVPn6S9wA j9+nQcEBlIuZ0S/xXKdzsTtAoGIl8NUgT+DrlVkQJZb+xSdKw17VwZRU0o1nEWEvix nOUN8vYCHGfl54QENOKJ5OmEUpd/yE2MA38F6SnG+tYBapdQbCk8O/ZZWzKlhtUG+b q/DR5Pck2Ri+h55tKSxkYSOZWX5/lFSAzuIakCMG2kYRgdccFMeNs267KUG0nAmR3q OnSjwqRYLF4iUnWEFen1fAvgLAgYdjRcuk66Y8wD/RcEw6tlOE9qRTlaCjaUpASaLh mGacv3mwQTGLg== From: Jeff Layton To: Alexander Viro , Christian Brauner , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 48/87] fs/kernfs: convert to new inode {a,m}time accessors Date: Thu, 28 Sep 2023 07:02:57 -0400 Message-ID: <20230928110413.33032-47-jlayton@kernel.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230928110413.33032-1-jlayton@kernel.org> References: <20230928110300.32891-1-jlayton@kernel.org> <20230928110413.33032-1-jlayton@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 28 Sep 2023 04:08:49 -0700 (PDT) Signed-off-by: Jeff Layton --- fs/kernfs/inode.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/kernfs/inode.c b/fs/kernfs/inode.c index 922719a343a7..401c084300ed 100644 --- a/fs/kernfs/inode.c +++ b/fs/kernfs/inode.c @@ -151,7 +151,7 @@ ssize_t kernfs_iop_listxattr(struct dentry *dentry, char *buf, size_t size) static inline void set_default_inode_attr(struct inode *inode, umode_t mode) { inode->i_mode = mode; - inode->i_atime = inode->i_mtime = inode_set_ctime_current(inode); + simple_inode_init_ts(inode); } static inline void set_inode_attr(struct inode *inode, @@ -159,8 +159,8 @@ static inline void set_inode_attr(struct inode *inode, { inode->i_uid = attrs->ia_uid; inode->i_gid = attrs->ia_gid; - inode->i_atime = attrs->ia_atime; - inode->i_mtime = attrs->ia_mtime; + inode_set_atime_to_ts(inode, attrs->ia_atime); + inode_set_mtime_to_ts(inode, attrs->ia_mtime); inode_set_ctime_to_ts(inode, attrs->ia_ctime); } -- 2.41.0