Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3149192rdh; Thu, 28 Sep 2023 04:20:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGOSjDJV+DHT2+3Bazi9BrNRF+3OPlexejvbYL7TbH5zEY2OglY5hTW3Mea/8vYRO6QJ8KQ X-Received: by 2002:a05:6808:3084:b0:3ad:f86a:878e with SMTP id bl4-20020a056808308400b003adf86a878emr1112534oib.13.1695900027616; Thu, 28 Sep 2023 04:20:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695900027; cv=none; d=google.com; s=arc-20160816; b=pwOjvKx6OduJtnIENa34Ix8hp/5JZQMoxGZ8wL/LW5LT0IWrAyuMUj/80oQKFgM4hv oDmU9U8p1yX1BjB2s7al1xsrHU6LnGrnYBybJ16Af8HGNB39GQTkfMGQ6pti1B/MkKSp jP/rE/DbSb9ojhrOiQHUCf65KL3syh5MJj/MFHb9amxiYqhTnIif2zcdIcIeA8Akp9Mn Qgju9fY1tZkJfPLDAYgL4iAJGjW2z9z7wtR+SlvM41ByuDrKBuSorTkPmzy81Jo3mqQq 0LHSRMgyrapk2ZWWEjp8lwNVMMqLF8tBkORNsq/l+yqsc14wbCSFyIoyHUkKTxuF+odM y7hw== 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=AT0cXZ8ncKx8H2mN3fMw70lpRF5OdZaBWsbVbOOdsLA=; fh=Z2bTRy1scX8IrlJyHG5XI9Cg0kzzOD+BNHzLgjwr2MI=; b=dV6czWTC69Hygwxam/bFz8naMo7cfoE0VBor9N8srA+UAyjYvq4KnG1xOa89weDvdy z64JUiHYlWGqxdIMKBtp7RgUFxUFmt101/zHLrW15/y16y+2hLlSwoEnUjIntwNjUfYX HU65Vm1t6c/C1WMuun/z9q+x1IuyXrGyFwMU583AiDaYkYRWbmvPSc8NVjkCZ45XaJUQ kOtQ5zFqc+L2X6gZ1+DJ1sGqzAIxf0CKyElGtNd2SL44lM2OPxH3kdfc8MkRPKyt4GZh EzHavrLsGWEdUoNv7gS4BXjiuU+zOBjuPd7w1e9xT2jGncr8VswcDODqxUy/vWpRyO0h eI7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=X1p1tnqk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id l62-20020a639141000000b005781afa41b3si18339606pge.152.2023.09.28.04.20.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 04:20:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=X1p1tnqk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id 8940D858E90A; Thu, 28 Sep 2023 04:09:27 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232335AbjI1LJJ (ORCPT + 99 others); Thu, 28 Sep 2023 07:09:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232373AbjI1LIA (ORCPT ); Thu, 28 Sep 2023 07:08:00 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 554781BF4; Thu, 28 Sep 2023 04:05:20 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3215AC433CD; Thu, 28 Sep 2023 11:05:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695899120; bh=DJSvCuPLAD4saV0xZe/l++49VBU2Ao4YBQp420d7aJ4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=X1p1tnqkywMXIK15zqJ2FgVjNGn7haElYKat55LiJsKAEX44aY9LJroHbA3VzKLGj /Y6rWU8/2CJidpL3EcXTC6Xu8+XrH/os0C2pOlhFNunuxtBiyODoe7HJX3GtJyWhzc ikSi7r3w2rNWPJS/8i6BgDOuAFW7BZ/AsmifvnSK7N1Ju0zyi191rT03uuSHoRuV6x Ug/dMhpw4MIlS9jrAGXCpgZhzqNmGrGaqyuG8uTeiHP1xw2JK5iohcnV73NUzY11xd A2bzjwLLv+A5lAtZRymkX5iLwUrdcnw9wGxHtX4+Iix6HcvBC2Q8qKuiiVE7JG21Q+ dh/X0w7/3+u7Q== From: Jeff Layton To: Alexander Viro , Christian Brauner , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Cc: linux-karma-devel@lists.sourceforge.net Subject: [PATCH 56/87] fs/omfs: convert to new inode {a,m}time accessors Date: Thu, 28 Sep 2023 07:03:05 -0400 Message-ID: <20230928110413.33032-55-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 (howler.vger.email [0.0.0.0]); Thu, 28 Sep 2023 04:09:27 -0700 (PDT) Signed-off-by: Jeff Layton --- fs/omfs/inode.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/fs/omfs/inode.c b/fs/omfs/inode.c index 2f8c1882f45c..cdcee7af34d1 100644 --- a/fs/omfs/inode.c +++ b/fs/omfs/inode.c @@ -51,7 +51,7 @@ struct inode *omfs_new_inode(struct inode *dir, umode_t mode) inode_init_owner(&nop_mnt_idmap, inode, NULL, mode); inode->i_mapping->a_ops = &omfs_aops; - inode->i_atime = inode->i_mtime = inode_set_ctime_current(inode); + simple_inode_init_ts(inode); switch (mode & S_IFMT) { case S_IFDIR: inode->i_op = &omfs_dir_inops; @@ -230,11 +230,9 @@ struct inode *omfs_iget(struct super_block *sb, ino_t ino) ctime = be64_to_cpu(oi->i_ctime); nsecs = do_div(ctime, 1000) * 1000L; - inode->i_atime.tv_sec = ctime; - inode->i_mtime.tv_sec = ctime; + inode_set_atime(inode, ctime, nsecs); + inode_set_mtime(inode, ctime, nsecs); inode_set_ctime(inode, ctime, nsecs); - inode->i_atime.tv_nsec = nsecs; - inode->i_mtime.tv_nsec = nsecs; inode->i_mapping->a_ops = &omfs_aops; -- 2.41.0