From patchwork Wed Jun 21 14:45:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Layton X-Patchwork-Id: 111062 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp4422371vqr; Wed, 21 Jun 2023 07:52:28 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6Wt+EZNi4PoNltnoLUUBWowqQqPRkpfjUL6mGX7oFPqEHH8z2HKAEEVBvhxcYZvXak4EWx X-Received: by 2002:a17:90a:c905:b0:25e:a36c:46ef with SMTP id v5-20020a17090ac90500b0025ea36c46efmr21460582pjt.13.1687359148042; Wed, 21 Jun 2023 07:52:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687359148; cv=none; d=google.com; s=arc-20160816; b=oMPtIP4Tu9frV2tvg632CuXSFF65mBJhseHw4zZqQpW7S4Lw7zJFf+wbNWANZI5Nrs k65cKAerm7DG9hE9pyvsOqNr8+F4apL9n+KOaFWZXDQnyfnGv1eEqFokYkOTKYN30PsC Q2e8yZrhig+Uo01kaU0JMt9tvuVOGJLBFezq8U+58pQNL3777ZKjSsKRK3YxkyfMRV6y fPRNXrdcUKLzPnEcDMaBqVkkP4CEls/2fqAqIJ4uu4nYdbii3FM8/Xbo2+jHVNwx140h 4fOlSBMxllUt2hndhhHidinvarbAHhKx/59aZKqXwH1E4BFfPT/g6gOHl3qr/WW9n9CO LRhg== 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=vgeBm5ZYAeDy1y789gb03JurUkH/yjL8hMHxtLFyIvg=; b=khhcRn+FeYGX2fiUy0wxxB8EC6/BvSu40B6wAgCyYpRkYiey0mnL9R8mxRCfFQsPpP NVhntOQm/MufOVcu88biHSQ0QDkoc8o3NKHspDQ0OGVRyf0cbjFfISAYlF+I0YUqzrE1 OWJMNuFiJjkXNcEhkKkeoS06MWyBpD6YVkm91AA+AotFPyUYEF1+JjnOqXblbuLcasJr QCXg2OE58o1LNnyCtqxjfEGMBGo8ZuFcEP5lA/OcSyprVP1EUXCP+OsOnKDhf8MxeoOq 5pXsGDvPyRtX/SRSIzG110LjDHUT1J8SeTeAhH764EEJgGH9BkGmAd6DeTlYb77LmsSB sxZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qZ54Gl50; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gg2-20020a17090b0a0200b00256933298absi12045064pjb.84.2023.06.21.07.52.08; Wed, 21 Jun 2023 07:52:28 -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=qZ54Gl50; 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 S231253AbjFUOuV (ORCPT + 99 others); Wed, 21 Jun 2023 10:50:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232165AbjFUOtN (ORCPT ); Wed, 21 Jun 2023 10:49:13 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B20C2128 for ; Wed, 21 Jun 2023 07:48:11 -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 0A99C61536 for ; Wed, 21 Jun 2023 14:48:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C52E1C433C0; Wed, 21 Jun 2023 14:48:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687358890; bh=huZJIp/B9xWSD0X0dlYvUh0CjmXR4oUY7WvD+3absj0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qZ54Gl50DxIfN8Z7D1qc9Ee/OkA44CbpKhWtgQQxPz2nKb0w7aceIscGljczPSc87 tj8hCLEDgsUJftRjlFPHA+ir31Gr5ZeHd5bhJwPDDxNNYze+N63PTt/7UN/viTfgDC +7oQezge7lxn5VYH4H6HvxmERUt+StjYcpQo1KT9Vn1GTl9c05B9vD1RQOk9Vclx+y Sds7AIx2TIy0JIg60/6FjANCecOOmBKmhr7CGmgxSIrT6g09VE/5h9MyQIMsyB0x2t kSEDCpTyjygdg/Mqz8QpDdCtk3EVIs11lBtnyis7TFXQkjHUPC2gOu1qnF7RYDL2dg SAgpLvQ76Gz9Q== From: Jeff Layton To: Christian Brauner , Greg Kroah-Hartman , "Rafael J. Wysocki" Cc: Al Viro , Jan Kara , linux-kernel@vger.kernel.org Subject: [PATCH 21/79] debugfs: switch to new ctime accessors Date: Wed, 21 Jun 2023 10:45:34 -0400 Message-ID: <20230621144735.55953-20-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 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,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769324305887881168?= X-GMAIL-MSGID: =?utf-8?q?1769324305887881168?= 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 Acked-by: Greg Kroah-Hartman --- fs/debugfs/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c index 3f81f73c241a..d4932a128c7d 100644 --- a/fs/debugfs/inode.c +++ b/fs/debugfs/inode.c @@ -73,7 +73,7 @@ static struct inode *debugfs_get_inode(struct super_block *sb) if (inode) { inode->i_ino = get_next_ino(); inode->i_atime = inode->i_mtime = - inode->i_ctime = current_time(inode); + inode_ctime_set_current(inode); } return inode; }