Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp29463343rwd; Wed, 5 Jul 2023 12:12:30 -0700 (PDT) X-Google-Smtp-Source: APBJJlGOvlWOvolK/3/l/Z4n4aZvETwcnSqCNTdX9o00bGzXCTy50jyUuJ0je4jd65biNI9LOPlA X-Received: by 2002:a05:6871:520e:b0:1b3:eec8:fa9c with SMTP id ht14-20020a056871520e00b001b3eec8fa9cmr2077162oac.6.1688584350582; Wed, 05 Jul 2023 12:12:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688584350; cv=none; d=google.com; s=arc-20160816; b=dABIFTqltv7DTIeH1MJ2hoqyAFWI+BofIldLO6su29NY54BYkMu8gHR+ydbHUAz23F kPds2VYnMN1fd4mo4Vl4HV35heI7KRXmJ5Usf+ovtJhG8zxZQiWj16bhn5pKsUM++fgr 0RlRNSX3/UvYHGSgGGFkl5fli3IzrC+EdmEVAKR4lJo4anrRqXrQsbFB3IoBaspH4Lxi ++Nhu/hrObZSEZh6ekFfTj0j0TpKUd7v1WTo070WKk+J7Sifp0s/E3tAMcta00BTeiZJ A01a3Y4Ovr5rlaSHdZM+Ugl+c2K7i5sZqzqSYEJr2ULLo2xwg58YP45R4Cbn7THXlTNp uk5A== 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=Y7nttLs7jWS/7o71+Y+nbGCplZOIyWtgMM8l8E44tF4=; fh=6LvVLkF5N5b23W0n1o0AnHwclrMpO5fD0c0D0QjMvvM=; b=pzvi6tlykhsoEYwbVmDmWO3Oay2cXrMZwMiX7t1XlgnJbH50b6T4B4s3HrYNRWW6N3 BsDVuAYaMHFcT5iw1mfpvgclZgNcqoK2untUVluR4l7UQFEtlGPk+ESDNUoh7k5H+Re2 0VQzgIIIRA893bBJHQaQVSmqy+dKia/S6MKXPmWnk9JlPAJlZ4CGMz15CyIWqvWIsvEm WiJURNWVSU6xNV42f9xFRAfrrHCR7FBCDupvnxEe/DtpZzBuiLi1eDlEphTpsyuUEK8l iL8HKU2h/dJv8vJUaGsR3qY7IqB/4y034lEvJo6o9l1TnVQXEopG8V+RWmkvucXyr/Vl 453g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bnPu6yyt; 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 y9-20020a17090aa40900b00263fc986e28si896210pjp.24.2023.07.05.12.12.15; Wed, 05 Jul 2023 12:12:30 -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=bnPu6yyt; 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 S233720AbjGETGR (ORCPT + 99 others); Wed, 5 Jul 2023 15:06:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233398AbjGETFi (ORCPT ); Wed, 5 Jul 2023 15:05:38 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F4311990; Wed, 5 Jul 2023 12:04:03 -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 80F4E61708; Wed, 5 Jul 2023 19:04:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3B233C433C8; Wed, 5 Jul 2023 19:04:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688583842; bh=DUInkTGhM3RE+Yyt7MHGOgLEyFmaFCBsA/ds7TaIzd4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bnPu6yytz3ogb8uIc5oLsPmMTBixB6Ox42zUnbg/nA4m5GKzoDGn0aEv2VNzWS+54 e90wbleClenj/FFb0JS2tCmDbF//Dfv9x2qtEPbAWTnP/83193sm9S18SG0CUdZC45 yflsj5It4T6cqtO067gIcFjH1PssDKGxB8zWOM0pG/SmL/ugb/GxINRPBFZT/l4m1y GhsMWvlQ1wIdciWrRJeNanRObyYVpvELWrD0L3XpmY/fOdgLom8mF9x7nRa2hPXmEu 44nF3J3qdjz2ETHumOrapnbj3Gy+b++Ei+Hqat4OoOJ3JrIolLPFFFoKxjmpDrCqEz WKnyYgG7hSEeg== From: Jeff Layton To: Christian Brauner , Greg Kroah-Hartman , "Rafael J. Wysocki" Cc: Al Viro , Jan Kara , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 34/92] debugfs: convert to ctime accessor functions Date: Wed, 5 Jul 2023 15:00:59 -0400 Message-ID: <20230705190309.579783-32-jlayton@kernel.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230705190309.579783-1-jlayton@kernel.org> References: <20230705185755.579053-1-jlayton@kernel.org> <20230705190309.579783-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 inode's ctime field is used. Switch to using accessor functions instead of raw accesses of inode->i_ctime. Acked-by: Greg Kroah-Hartman Signed-off-by: Jeff Layton --- fs/debugfs/inode.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c index 3f81f73c241a..83e57e9f9fa0 100644 --- a/fs/debugfs/inode.c +++ b/fs/debugfs/inode.c @@ -72,8 +72,7 @@ static struct inode *debugfs_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_set_ctime_current(inode); } return inode; } -- 2.41.0