Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3178752rdh; Thu, 28 Sep 2023 05:12:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEQwkV0Rhe8xqZpMbi3ZjD6Vfj+3F00t4pO9Dpwau+K/aHTUoe3ZMwxk0rw7ATd5fLh0XLo X-Received: by 2002:a05:6a20:9382:b0:15c:b7bb:2bb5 with SMTP id x2-20020a056a20938200b0015cb7bb2bb5mr962107pzh.7.1695903153146; Thu, 28 Sep 2023 05:12:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695903153; cv=none; d=google.com; s=arc-20160816; b=e8hF6u/op0o65/Dt/ekh3ApSkKZ3EiWMaz6q2pcAos+N/wjUvvf4o6/lz3MxXvOgw/ yUN7y4t6YP6/TmQjQuZpLpoEtyz10TwV8MK9kxfMJu2yEZlxccCabNQyuO+j/IfVg/I+ 7nuwXedChZCSvqzAMYWak7jmxvjPmFSFsioiyydIv1YYcQIK5EHORpnw9nKFUrjS+EBl L5gn03Za7l35B5ireImDj0ZtM1gA1Qzvk0YLUQ5UbPVH6avLhsAa0LhFwgjjvBB0L7DV uMl29ceOB4pXbPe4DquzMJICO5zX0r4LnPsF+s+8QKgnSiqcSHAH9nRIPp7tmmLFLKVp 8I/A== 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=GZsaxN1mdyVXqGD5dmyug97nNGisN8Cd+Ro8xNMHT0o=; fh=c1hve9LK7bidUltaxotdOOkNtWZ8Drk/KOyPdUWU/OI=; b=WmC+l6ZsikmJZ60xNOyc/faltBQsKr0jxYDAcVDBANihRRp2Q+pzmKNaf0fBtEZ6bd /PJQmeIETTxhF55E+D6dWjCml3PX1edIkeHhJy58W58plvGevX3TZnEKrttL8eXGZYl6 hnfadAqRCsmEnd+mhG0JnQGsQavud+euWaJ1DglE+bA1RNGDH4jxkS3YQovyLV4FEiNb L3OpuCDxPJMr1Wj3jw9ed/zAvR+Y/QcomKDhSj1QDRInnjwLLsKCiYF05EtxfDWnUbjX GHRPTo/jppK2AIlYPl7uvl8CHCNDWnfXLtP1u43N0P5eM/DdUzYmJT7W2uSZyLxG/+yW GfRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Us0gigFI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id b13-20020a056a000ccd00b00690f74dd2ccsi19313239pfv.69.2023.09.28.05.12.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 05:12:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Us0gigFI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id 3E57D80978B5; Thu, 28 Sep 2023 04:06:06 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232313AbjI1LFm (ORCPT + 99 others); Thu, 28 Sep 2023 07:05:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232089AbjI1LEg (ORCPT ); Thu, 28 Sep 2023 07:04:36 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F58412A; Thu, 28 Sep 2023 04:04:35 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9624BC433C9; Thu, 28 Sep 2023 11:04:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695899075; bh=FSkoPS2wpHGRikf2wCbjVJa2Td2hPo0FwgxsJtrzOEE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Us0gigFIQ2FJf81+51xlE+Hw5y2wuAJCaWZ9qjjdfANYud1X1ohoIg+f3NH/qEjWk R0PvjRv7r+HVePgBUPuLELsHHdlQxCO/kE/o33nDcjHld3K3wlkjRvF9/tFXuAYd1Q sbg9IAEGdsc7bWHg5k9ruxBBbYKGPzPzxt2Z7F0UxmZ/vJlWK0LvUFL6uRlfA5Pr7Q dnhf8mn5vzLrPuuYen46rMYzak0NkyADGM4jcOBNCUeE0o6nyTAGRlni/AROnDDCPz ABwjYILEYSJvt7irGkZ1li7y2Py7xxKofBNqs1y0Z6gI7kN0rtNk4mTKIDbA+2CPyz S7LvbGo9noW4A== From: Jeff Layton To: Alexander Viro , Christian Brauner , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 20/87] fs/befs: convert to new inode {a,m}time accessors Date: Thu, 28 Sep 2023 07:02:29 -0400 Message-ID: <20230928110413.33032-19-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 (snail.vger.email [0.0.0.0]); Thu, 28 Sep 2023 04:06:06 -0700 (PDT) Signed-off-by: Jeff Layton --- fs/befs/linuxvfs.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c index 9a16a51fbb88..9acdec56f626 100644 --- a/fs/befs/linuxvfs.c +++ b/fs/befs/linuxvfs.c @@ -360,11 +360,11 @@ static struct inode *befs_iget(struct super_block *sb, unsigned long ino) * for indexing purposes. (PFD, page 54) */ - inode->i_mtime.tv_sec = - fs64_to_cpu(sb, raw_inode->last_modified_time) >> 16; - inode->i_mtime.tv_nsec = 0; /* lower 16 bits are not a time */ - inode_set_ctime_to_ts(inode, inode->i_mtime); - inode->i_atime = inode->i_mtime; + inode_set_mtime(inode, + fs64_to_cpu(sb, raw_inode->last_modified_time) >> 16, + 0);/* lower 16 bits are not a time */ + inode_set_ctime_to_ts(inode, inode_get_mtime(inode)); + inode_set_atime_to_ts(inode, inode_get_mtime(inode)); befs_ino->i_inode_num = fsrun_to_cpu(sb, raw_inode->inode_num); befs_ino->i_parent = fsrun_to_cpu(sb, raw_inode->parent); -- 2.41.0