Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3145682rdh; Thu, 28 Sep 2023 04:14:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGEIfXCzAxmnvFvu2x3//YgujmAy2r0xgJR/dyjBK18uaIqz7esIEL42EFfcgwHpePVD44X X-Received: by 2002:a05:6a00:1352:b0:68a:6d1a:b812 with SMTP id k18-20020a056a00135200b0068a6d1ab812mr1023158pfu.9.1695899652222; Thu, 28 Sep 2023 04:14:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695899652; cv=none; d=google.com; s=arc-20160816; b=dLFPPFZF3Z3KVHN96v7uilnlKq7WAqSFs0B0Ox8bgNgQFiGzNurwkqQOsYNUeN0OlM BYinEuaNSp/2YZu7TYKVyQcrL8Pu6Sf1dfRbYfPKzy/7M3HEvKFDEw6op6zdc2ZM8ErZ cx2LXUvKU6GX4DY7O6cKcV1CFl1VjTm8MDTEL8TISJuM/vgtvKTUQWM5mpYjOoH3AcIf 9/rFI9fGS50iaj6pZ1UIbc0fh6xE0buFmBNuNHg1U/3ApOQw0iZ3IGa4DN91X2ka1rvw mM5ajLqPFOzjASKr1Dldrt9IEuhPqdaNdnOXOIgJWWRUMEuYaisYgIW0R+xfxv4YgjhK Sq3w== 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:to:from :dkim-signature; bh=Lt/lYIIK8SXqdVywONTahd1JUVxFCY4qJu6QfmhhoH0=; fh=c1hve9LK7bidUltaxotdOOkNtWZ8Drk/KOyPdUWU/OI=; b=rNjqxHIH8siwBV/RO686IDJ7AwPe0SpW5VxcIrNr0OY1IbPNI5gxHLEWcrofPciYcZ U4DDXl/5JCml5WUgY2X0wFp8u9xbIZVu1KTTqzkkxaUXjB7vykPyU5Rce4eyAR9wL4yP q7Q3MglYs3DMOwnxTMRv/QT2cCb5yaBB79eu9nAHstZgrtJyfMIxlFnDpwMh6jdyJm++ aC4IZdQ+4ZKRM1u/zV8tYYtABV4AzPfZ+G3skDGPBP35F+43aMGuLpt8erQQzJ8yV7F7 VM3oRlFl1lIND79AxCAIkOGSSD2qAVh+eTCF3Ktv78ftBhuL7O8GlWNYlIHrxEBNx9hX 7M0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=S87i2JjY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id u7-20020a627907000000b0068a3cb58334si18467547pfc.320.2023.09.28.04.14.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 04:14:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=S87i2JjY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (Postfix) with ESMTP id 7DF9D836CE45; Thu, 28 Sep 2023 04:07:07 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232137AbjI1LGR (ORCPT + 99 others); Thu, 28 Sep 2023 07:06:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232147AbjI1LEt (ORCPT ); Thu, 28 Sep 2023 07:04:49 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B2D0CD3; Thu, 28 Sep 2023 04:04:47 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 384EBC433CD; Thu, 28 Sep 2023 11:04:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695899086; bh=QLHf7zWWMBT60c6zRtT5TfN5WGtreZu5GZ/416fDY80=; h=From:To:Subject:Date:In-Reply-To:References:From; b=S87i2JjYqc3rRTopHRdDhhFciOONkPQbMvFX5CTPDpJNE+nsOmSRpXL/rGx23ns2A BnUdgRDbARyYO/Xf7MPiVv7SBPf2u4qka1BV7MPb2tX+ZVVt+6d+19Iw8CcvTo7tUl otqTRpWI8FelcXoY3UXjg+V/uH8sce/1ZkF68xD48YiGYSiA7q2WLe8t/7KcFnzfso uTF+6dAHSE3dB3Iy7dO7R8GInGQUdH6LeVPtV6Wl++j88T3dkZP/+eNtyx7Qt+vWpK pXsl8HEKeHh0YV9UTxrVcgfXz4xrFLAa94YIWjDLs9g4XtvpUmVNryW2c/919gtkDO svJtjIh5BCEIg== From: Jeff Layton To: Alexander Viro , Christian Brauner , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 30/87] fs/efs: convert to new inode {a,m}time accessors Date: Thu, 28 Sep 2023 07:02:39 -0400 Message-ID: <20230928110413.33032-29-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=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email 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 (morse.vger.email [0.0.0.0]); Thu, 28 Sep 2023 04:07:07 -0700 (PDT) Signed-off-by: Jeff Layton --- fs/efs/inode.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fs/efs/inode.c b/fs/efs/inode.c index 3789d22ba501..7844ab24b813 100644 --- a/fs/efs/inode.c +++ b/fs/efs/inode.c @@ -103,10 +103,9 @@ struct inode *efs_iget(struct super_block *super, unsigned long ino) i_uid_write(inode, (uid_t)be16_to_cpu(efs_inode->di_uid)); i_gid_write(inode, (gid_t)be16_to_cpu(efs_inode->di_gid)); inode->i_size = be32_to_cpu(efs_inode->di_size); - inode->i_atime.tv_sec = be32_to_cpu(efs_inode->di_atime); - inode->i_mtime.tv_sec = be32_to_cpu(efs_inode->di_mtime); + inode_set_atime(inode, be32_to_cpu(efs_inode->di_atime), 0); + inode_set_mtime(inode, be32_to_cpu(efs_inode->di_mtime), 0); inode_set_ctime(inode, be32_to_cpu(efs_inode->di_ctime), 0); - inode->i_atime.tv_nsec = inode->i_mtime.tv_nsec = 0; /* this is the number of blocks in the file */ if (inode->i_size == 0) { -- 2.41.0