Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3178932rdh; Thu, 28 Sep 2023 05:12:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFVp+kWiiqX0tsoZx0IGRJoGvtlqZjaEsFTB78kHn+RNskUxZIbbJh5fcRv7DbgBsVeo7YG X-Received: by 2002:a17:902:f541:b0:1c0:c174:3695 with SMTP id h1-20020a170902f54100b001c0c1743695mr1021352plf.13.1695903167072; Thu, 28 Sep 2023 05:12:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695903167; cv=none; d=google.com; s=arc-20160816; b=e2L3Sc0MpQk398EJdBggAxGqtRmvhzyk2lhQfVIoUT8wHoFsKH9htATQ7km1BNaMqA Uf4VKIAB7AN/bzRgH2PR1jBSjHn4ILWYkJTj0CR6TVbp4pecI9ElNbGfGgWB5M9bGRTr c3f4mIAOMRBRS2Iw3Cuuoqc//KUNzP4SaFSV4+RJaexpGGkmXMHC+DbgXRhZPqvmy6lp DosuNNfgqRMyd+SScc7CDR4nifx+mUGwqufnoZwZMSeC66kP+LMqDSvIXP+o7ZdtHozU MjoSpXME3DZJL3yRXYsN00Xn57CBekNAdZfguWOSfDsFg4qfUduHfgZxvDWcOK6lD70w +yyw== 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=CoVNIPIO1nzPKsbkodviNA0gs3jsCOY5af3GE3stblg=; fh=c1hve9LK7bidUltaxotdOOkNtWZ8Drk/KOyPdUWU/OI=; b=c3rcxW7ZcbYZUFszGP+v0UYIfoY7iYIgXV3nPsMBVQoQnW/Tl+InujdkgQ/lW/305N +klN5OvAmhb/tfpya05QA8jj27S4Ie5dOMVIksuz7QfNc6QMhzZOYXMjEMayGC+JMHNY iF97lbJ73c9/dkIfwITgCLzRp1fLE2Hkb3tOITJBol35kEsZVU/x6ZB2JpT2yk5taKyc j7gkRX8X5XDtzpgw2/sW4gmJRRbe8UN77nVOHTozBrruefDkhI1ZYsimMftGxItbjAnB WXB2L+HeCMsvRHtCSFUT7Hu3Pt4PWqMT92bSYaJKwxAIXNnU7gyceO5sUa482tdkNcg6 +aAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ht1vnVyW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id i11-20020a17090332cb00b001bf1973eafcsi10199106plr.571.2023.09.28.05.12.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 05:12:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ht1vnVyW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id BF68A80C1134; Thu, 28 Sep 2023 04:06:17 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232335AbjI1LF4 (ORCPT + 99 others); Thu, 28 Sep 2023 07:05:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232014AbjI1LEn (ORCPT ); Thu, 28 Sep 2023 07:04:43 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D8F21B4; Thu, 28 Sep 2023 04:04:41 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0DFD9C433C9; Thu, 28 Sep 2023 11:04:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695899081; bh=+GMC4PjnNkP7Yi4b9udX8bXyU16DKLRsXZYo4cptrO8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ht1vnVyW/c4zmL5Lt42VSykPHnoEj7AdgEUYbSusR7nMwwPloOhdvyU9DLfeH/wWj GBU8OrrwrxxKHRFysO1RJ8Ijd95p6WQ8qW2Rn6gLZt8VhWBpscsIFYXkCZF6gCnNyC XndQPDS6+tlc+g/G8taFL4EXoYYy0sHFFUOMni0CvoiF5rUw4rSpYep627g4pkj1s7 aMC3FEuUXL/nd3ZKT9PJIXETA0kmVzmzeOstP5Cp0wKTqYsOlwkZBiG7aJgMiQlWCA cynEX+MtFsns6fmP0I4EaqftzPr3Me5CZLzyB7a72FlBMoihhcEtm5ZM8wmu07qsb+ SVuXNU0+JcA0Q== From: Jeff Layton To: Alexander Viro , Christian Brauner , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 25/87] fs/configfs: convert to new inode {a,m}time accessors Date: Thu, 28 Sep 2023 07:02:34 -0400 Message-ID: <20230928110413.33032-24-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 (snail.vger.email [0.0.0.0]); Thu, 28 Sep 2023 04:06:18 -0700 (PDT) Signed-off-by: Jeff Layton --- fs/configfs/inode.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/configfs/inode.c b/fs/configfs/inode.c index fbdcb3582926..dcc22f593e43 100644 --- a/fs/configfs/inode.c +++ b/fs/configfs/inode.c @@ -88,7 +88,7 @@ int configfs_setattr(struct mnt_idmap *idmap, struct dentry *dentry, 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, struct iattr * iattr) @@ -96,8 +96,8 @@ static inline void set_inode_attr(struct inode * inode, struct iattr * iattr) inode->i_mode = iattr->ia_mode; inode->i_uid = iattr->ia_uid; inode->i_gid = iattr->ia_gid; - inode->i_atime = iattr->ia_atime; - inode->i_mtime = iattr->ia_mtime; + inode_set_atime_to_ts(inode, iattr->ia_atime); + inode_set_mtime_to_ts(inode, iattr->ia_mtime); inode_set_ctime_to_ts(inode, iattr->ia_ctime); } @@ -171,7 +171,7 @@ struct inode *configfs_create(struct dentry *dentry, umode_t mode) return ERR_PTR(-ENOMEM); p_inode = d_inode(dentry->d_parent); - p_inode->i_mtime = inode_set_ctime_current(p_inode); + inode_set_mtime_to_ts(p_inode, inode_set_ctime_current(p_inode)); configfs_set_inode_lock_class(sd, inode); return inode; } -- 2.41.0