Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3149280rdh; Thu, 28 Sep 2023 04:20:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEMZ+AFdCjEC9efv5m5mVawIqZb4LgZw3AZuCvSm7xIsKaVkBcGCPSx6IK7s0bnYYAb6kn4 X-Received: by 2002:a05:6358:9494:b0:140:e7af:44c9 with SMTP id i20-20020a056358949400b00140e7af44c9mr744827rwb.23.1695900036983; Thu, 28 Sep 2023 04:20:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695900036; cv=none; d=google.com; s=arc-20160816; b=XnIBaEjydx6S7jh5eyy2hOiFKUVTgGSpwbtRXbbOh4ur9MrmIdGJYILfGgvMD3KEI6 MvX+R7+nfs97D9n3KCFihXLiSsUCtln6cH/Gxu6yxVZspaiVuwJognzzhRblN9617XQZ 1Nl91FX89eRjmNqExh2Teo3RBHLCTE+hVDggKlGmcMBHGkcd5BHVOGezwmHaN5QfXsNB iMJ8m1WncRFCOb4guBf+sBc//KcxmgA1r7S++/DNFhCVaPE7ci29Bk+dgc/yGoo3HBEG OkCCBBOSJ0PUdEsPaBpLczIy2xRwc9OASLRJ7DgdprnYH6iUir7SMYgEOb/1WaDFQAbi SiFw== 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=Wel8+KQiPKWdXTglMNBGw/bPxv7fDbPSODAly1bwSNc=; fh=tSP12W2W6KpbvgXhzX2/WLclKY+Hbbispj0/1qq5urU=; b=UQ/PcyxyF/e1l4fGJCEexxG2NKJzPCDqPMFp6iG5SjxIveX0dU9Q8/kxmr4yU71BtH ozvONre2C8QIqSdNqOfbmu9ir5bj9zWDxNA/ujCfaYv5Loc5g9TwMHaVWsLr3bv+NMlU R3bE+ZjmEMeh3y1Z8jZi8N6VcPwMRH86NoGF5zfKdyVBoyFdft5FLNp63ul3isrncGy3 nvPR5coPJb+e+wOxsonjxUcvc3xkiinv1t+vKEVO/5Yk3+GXW3/gnTSzJiMTDeERqkQ2 6xoSLYbTl1bOkdiEM1/AYnBDVyNL1TkraKMDILa6tQ3shByrpQJuVV72uR1eSiZvSMK/ An2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GB2bi8+h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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. [23.128.96.34]) by mx.google.com with ESMTPS id bs6-20020a632806000000b0057458518e20si3892000pgb.164.2023.09.28.04.20.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 04:20:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GB2bi8+h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 B4087858E93D; Thu, 28 Sep 2023 04:10:03 -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 S232143AbjI1LJl (ORCPT + 99 others); Thu, 28 Sep 2023 07:09:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232317AbjI1LI5 (ORCPT ); Thu, 28 Sep 2023 07:08:57 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C33021FFA; Thu, 28 Sep 2023 04:05:26 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DCA6DC433C7; Thu, 28 Sep 2023 11:05:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695899126; bh=Ss7nLMp7jLyE6miSYsprdXK+tzY89Wa3eXUpvyW77Ug=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GB2bi8+hguQ/MH1kAXUuU1IWliWyqT+gj6ORqRdaqWx//xKgrh1/giZmmtA0PgxlV rCEHfaQ13m8Us+1ADvEN2ugG/nb4keyAFRhGOm8yKDERmEeTsYGpKW0iWqBcVYtpzx krqs7C229KDYWJBITkNxFK6MQepOt2qb1WwCSbwl5WuLVo2d2dBUoC3xqX+7WG+pyz H8jUEK3UgzBkIVDoCUuUYqpNu6hqefcY/Uztmbu/pzphpYJtazLsEiWG5IOvsND2rX YglEz/g6FYTpmXddC01mx+F9+X+DITp17pceumXx3RkrGO17iP3ezLmJMG5F2SBnCM NhjlPxSnCmeRg== From: Jeff Layton To: Alexander Viro , Christian Brauner , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Tony Luck , "Guilherme G. Piccoli" , linux-hardening@vger.kernel.org Subject: [PATCH 61/87] fs/pstore: convert to new inode {a,m}time accessors Date: Thu, 28 Sep 2023 07:03:10 -0400 Message-ID: <20230928110413.33032-60-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:10:04 -0700 (PDT) Signed-off-by: Jeff Layton --- fs/pstore/inode.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fs/pstore/inode.c b/fs/pstore/inode.c index 585360706b33..d41c20d1b5e8 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_set_ctime_current(inode); + simple_inode_init_ts(inode); } return inode; } @@ -390,7 +390,8 @@ int pstore_mkfile(struct dentry *root, struct pstore_record *record) inode->i_private = private; if (record->time.tv_sec) - inode->i_mtime = inode_set_ctime_to_ts(inode, record->time); + inode_set_mtime_to_ts(inode, + inode_set_ctime_to_ts(inode, record->time)); d_add(dentry, inode); -- 2.41.0