Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp29463856rwd; Wed, 5 Jul 2023 12:12:59 -0700 (PDT) X-Google-Smtp-Source: APBJJlEqeVmDZUViVMIzrsYW0hLulKge5mTF2u36dWo4aIwYxEjkAVjGJueZlnPPQggpWnnN7iHd X-Received: by 2002:a05:6a00:14ce:b0:67f:1d30:9e51 with SMTP id w14-20020a056a0014ce00b0067f1d309e51mr22884973pfu.33.1688584378835; Wed, 05 Jul 2023 12:12:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688584378; cv=none; d=google.com; s=arc-20160816; b=wZyT+20WXM/z74UjghTkcbBmQCVf7c8rJh3GhIju1Wm8vg7amMii2v4FqCDBqLUjIy Br3DIj7pL24iEu0sc45+hi+0I1kHS22m6Yrdte8YLv8gwuPHccPjpksYvW0kl+hftDMg fKRYdQglbx+0g6jNu8upRpkGISpk8lHlGb01Kbo51GV3JHii6JHJYx01nZYXY8mp02Pu RQLP4Tu7f8hhlT/r/mZpkbfVpCD0cIHER+G6jsMCtiVFcRZ1HbuJ+ya0euPIfF6Z8Gu2 D4lhDwRyQniKGzcEIjgBS7q0uYEw2B/n1KeRxFGW+uuI11aS1V8rJV90IZ3bNtj/1u5C gbjw== 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=TD6HONpLoEq1HWuuCLEpWBtPfX+Q9ESpp75wL6E+2ko=; fh=BEIf0HDejcEKM1qJAMu1Sh6l88BCiizvAfeBeKE5QE8=; b=oPJKKFAVDWziFSNKk8pHpPPMrmcEgE3BiKWyJtPeKJqyLJrk/O801URbpB+3XUW5qg VhS6J6TaJ7npbXFnLb+vu4xp+2ShinFa/qODIQuRFWifZQsbh/q3XAD5JfLN+76nFODq u9SeTcYWXfXBZQwalD8fXj+On8pysN1lZ92zHiCq9aXZKCwUftkrqU+IgbDhXBaZV/NQ Kt5DuQKWzP0qVT02FBe3PPfp43EEWnFpS10sDBsK/NN/yVg2PRc1Pg+nEH6HFZRLYWSl M4ar8TZDUKgdiyeNyI+RZ6foUG2+UvH9eHuniengLcih3tI9B7858ELlmKe0MDVuIpar gGEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=T8Af0tVe; 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 j193-20020a638bca000000b0055bc21caa08si5021407pge.754.2023.07.05.12.12.43; Wed, 05 Jul 2023 12:12:58 -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=T8Af0tVe; 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 S233900AbjGETHt (ORCPT + 99 others); Wed, 5 Jul 2023 15:07:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233817AbjGETGn (ORCPT ); Wed, 5 Jul 2023 15:06:43 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30FBF268E; Wed, 5 Jul 2023 12:04:34 -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 33B93616CC; Wed, 5 Jul 2023 19:04:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E04F3C433C8; Wed, 5 Jul 2023 19:04:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688583845; bh=uqLX2ipX4NvFoAzT/nc+anY78MkZU06KJM9/1GObuX4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=T8Af0tVezKUyyFTwpB8fkopaRFlqfs2/J01smC29vC9jnk2VzXjb/HOSDVs8+S1I1 H18bhrBxnL8Wqy+8f2QLVxKzTWbRDu/kG8UFoUbGO6quVb2IkVZn4Ew3/hKKv7OBny 3lYhc4BJan6Hq2SNN+Y6Ujxo0+8KxDKiQM3kgH1SQGSLuMUuxWlw3bPNxtCW/2nXln quQVcNEPodabzxhyNpS/7zo+pTDzjaD/xAK5cAXo2atP9rH8E7nJNRB+J821QGtfnJ Th6itlpuhTUQvs0he1LvgkZ8ofyTlPaArpcaoFn+hKwMCOPfn4pWHg9S+fTZC5Un/m FC5l3PNic5jhw== From: Jeff Layton To: Christian Brauner , Tyler Hicks Cc: Al Viro , Jan Kara , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, ecryptfs@vger.kernel.org Subject: [PATCH v2 36/92] ecryptfs: convert to ctime accessor functions Date: Wed, 5 Jul 2023 15:01:01 -0400 Message-ID: <20230705190309.579783-34-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. Signed-off-by: Jeff Layton --- fs/ecryptfs/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ecryptfs/inode.c b/fs/ecryptfs/inode.c index 83274915ba6d..b491bb239c8f 100644 --- a/fs/ecryptfs/inode.c +++ b/fs/ecryptfs/inode.c @@ -148,7 +148,7 @@ static int ecryptfs_do_unlink(struct inode *dir, struct dentry *dentry, } fsstack_copy_attr_times(dir, lower_dir); set_nlink(inode, ecryptfs_inode_to_lower(inode)->i_nlink); - inode->i_ctime = dir->i_ctime; + inode_set_ctime_to_ts(inode, inode_get_ctime(dir)); out_unlock: dput(lower_dentry); inode_unlock(lower_dir); -- 2.41.0