Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp9594111rwd; Wed, 21 Jun 2023 09:15:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4d87KKuBnFNMBlRUejlEhDeEKB3H6Su/OdiJ+aeZ6N79zzIk9EqNr1M3yJOX1XcVPhqHmW X-Received: by 2002:a05:6830:4c4:b0:6b5:9826:4a53 with SMTP id s4-20020a05683004c400b006b598264a53mr4637078otd.1.1687364127516; Wed, 21 Jun 2023 09:15:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687364127; cv=none; d=google.com; s=arc-20160816; b=j/rHsOHKVzDVs0NuuZvnSNH5Rbvg2Oi5L3vyyKVvVK3+Opstm6CFXlyl+iS8yXgpcT EW+pZfWElkDXSnGFSn5+GC6aYUMPY76e+9/dFdBtRznabg4FJldZBAY+opkvnALSJmrD 5a1dUlvk4g5LyTiHZvZrEpEUAl2QpJSnVkh1c7wB8DRY7ac7wnqqqZEAijHxaZM+x9+j 7mzcOiZWJkCSxPJO5RrYbQ7O41SbnGWW4hrJQHnCt/9OAh3hq5lorQfDRul1+14CoZIF pNY9vG8rznqAr7oDqQ75GbIY6+FOVS89tuQ/wIXSq9LlIgeDMkIoQDuA7c2HjCt96Eq9 VNPw== 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:cc:to:from :dkim-signature; bh=8rC99QzeU2IcO9I5IK6DzNpCP8uRjL6uSXhzK74rBF4=; b=ihbPpI1rHkvvIM96bF4qnvNX6Gl2E7MBqi+B7sIsEVKd+6bf65mwsObn6rsp9TR4tS uvGtpJ26YW/iZpL2/dsMlIwMNgWIs2F8Ztc6yYfldAeaIPPL0CRDxXrn6ZHc32OkPu8K 1OCBk2aPS87HGO6haqqn/2pFw3rwIW/4i61en7ldKMZv9hgG/bfAJEZJwkRYhf8G67zR j50t1g2tSXfHnQy1DGPUIOudqF/SDut+6umaQ6f8kknT34dRK4PI+zaadgWRODHbepl+ Gp6vqTdGx+11GNUx7sp3Ky4WRRsef/fwBdFWqSWcE+hM7m/T+/mYYRrhWUB06tGoW28o Ymeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=owSMvesL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p25-20020a637f59000000b005429248576asi984504pgn.128.2023.06.21.09.15.15; Wed, 21 Jun 2023 09:15:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=owSMvesL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233068AbjFUO4f (ORCPT + 99 others); Wed, 21 Jun 2023 10:56:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233105AbjFUOy5 (ORCPT ); Wed, 21 Jun 2023 10:54:57 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 909F535BD; Wed, 21 Jun 2023 07:50:27 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9FC076157B; Wed, 21 Jun 2023 14:49:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4DFA8C433C8; Wed, 21 Jun 2023 14:49:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687358954; bh=Vg/q4ub2LEKrZ4zBjRc7OAhNi+XpqXacU3lh8zGDHJw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=owSMvesLWC51zX/w3HurcDsigUZBkUjBx89d/v/tKRNiBBfM/VPhtcpo9dR8B3ZMc PDe+zG2re5PUV2UEoOrM44yZHSL3P+gwidySNM86UXsHOIUSf0Qky5oJOnhwT+qYA1 VHjBdUj8aQhn7E2OJZeHktqkQXMulITgMesuwodMynt+FeodeotnCrKXtehojXdeP7 Rt5fDUl3pvcPlLE3os7F2iynv0K5izO/6hmJUsAU9Ve36RmcIDosxIvUwnFlexo8aD jsOHq3F8CCbhDrNkVWbhpXiTw0SnWBypegWbqxSnOuDF1wlYqhYk6Oc8oJmKfY5I3P dUULt9UrCqVDg== From: Jeff Layton To: Christian Brauner , Kees Cook , Tony Luck , "Guilherme G. Piccoli" Cc: Al Viro , Jan Kara , linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 56/79] pstore: switch to new ctime accessors Date: Wed, 21 Jun 2023 10:46:09 -0400 Message-ID: <20230621144735.55953-55-jlayton@kernel.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230621144735.55953-1-jlayton@kernel.org> References: <20230621144507.55591-1-jlayton@kernel.org> <20230621144735.55953-1-jlayton@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 In later patches, we're going to change how the ctime.tv_nsec field is utilized. Switch to using accessor functions instead of raw accesses of inode->i_ctime. Signed-off-by: Jeff Layton --- fs/pstore/inode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/pstore/inode.c b/fs/pstore/inode.c index ffbadb8b3032..20624d6006e6 100644 --- a/fs/pstore/inode.c +++ b/fs/pstore/inode.c @@ -223,7 +223,7 @@ static struct inode *pstore_get_inode(struct super_block *sb) struct inode *inode = new_inode(sb); if (inode) { inode->i_ino = get_next_ino(); - inode->i_atime = inode->i_mtime = inode->i_ctime = current_time(inode); + inode->i_atime = inode->i_mtime = inode_ctime_set_current(inode); } return inode; } @@ -390,7 +390,7 @@ int pstore_mkfile(struct dentry *root, struct pstore_record *record) inode->i_private = private; if (record->time.tv_sec) - inode->i_mtime = inode->i_ctime = record->time; + inode->i_mtime = inode_ctime_set(inode, record->time); d_add(dentry, inode); -- 2.41.0