Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2813322rdb; Wed, 4 Oct 2023 12:11:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFv/RAQy92lKg7reyFdtVDb0u9//djSqur4wX9PlH5DHMT+UYFDb4RVTBziI4G1MqWrZR0Z X-Received: by 2002:a05:6a00:2d1e:b0:68f:bb16:d16a with SMTP id fa30-20020a056a002d1e00b0068fbb16d16amr696099pfb.5.1696446664673; Wed, 04 Oct 2023 12:11:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696446664; cv=none; d=google.com; s=arc-20160816; b=Zh0bLx/msmd5wRG2r98dOuIthXqgnANNDp9PVE+/3qx0TLWySEk9alDvUIVnTatqKj u0iI+tDFXkYsFVQhCQnW6hi61xn1hLXkAT0RbBJNRDxU1pohX4926t9ZT70PZOng0NZN A9u3Nwy1odR80xxCISQ++LhplB9yiU8j/n8QtmN3gZIbH1eLBit1e3nJZskouae3f0OJ dHdd8N7k4nm37yOvGELgSaFKiOs4D2cDHIzaWcClTfwUMRd9K25eXzzr8w0lc4rHg9yC Wz7vqjIUMY6/X+oaL/yTDMtVyiEIJ5dcSCpyqZVAZnURO4Ru1wdyw7RnpNYuqxDXYf4i k4Cw== 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=/xSMSybDb0vz7oEEIeLuKuRimluN6i2ijNHcnq4mo6c=; fh=KZ2Ejrdjn3st4YZfYh/U6JH5wVhYC1lVTNFXDG/+XsQ=; b=zgv8Cp9VQWkds5SHij+cFGN4Jd8HnOStzaKYGL59oJ2cGz8HiCK/uNVIeTkL0Vjgsx YoWzXkT8JlbYyai6279Lv/fZ/tmGPUDyrLLV7vDhwik2IcLg56mJ9e8NTvM+a+iXfUD0 zpABhtXV5IbXtisHcu6p3RO7aTFId6sT3cNmDYDWHz3f/P9staJaV/5Xj5EPwH6Rh+2I q09IJncVRKON67Uh3SmYTl2LwzBqUcYCd4KXtz3r2wYvYrzzp50D7kx0cryA5gMEWT6Z Y/X4bhILEOTTSCpdwa77lAn1XaZIb+buC9a/ZEixho74sp9V3cAUbBuSRiAZkMseTylO 8vLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="C2OsC/Rx"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id f14-20020a056a0022ce00b0068a54cfcd74si4414334pfj.192.2023.10.04.12.11.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 12:11:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="C2OsC/Rx"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id 24AAE807C5DD; Wed, 4 Oct 2023 12:10:29 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245342AbjJDTIU (ORCPT + 99 others); Wed, 4 Oct 2023 15:08:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245515AbjJDTIC (ORCPT ); Wed, 4 Oct 2023 15:08:02 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9451E1FC9; Wed, 4 Oct 2023 11:55:20 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CDDB1C433C9; Wed, 4 Oct 2023 18:55:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696445720; bh=DgEQfKZJzVRlGstT1xAqKNQO563GSXEO2vDTLGHo+yw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=C2OsC/RxcQr0BRZI/QLa1FUKzOqS8R6jL95JBqmAGXw2/a9/YQayqFFcyb+CIngJc rvBnyxd93Mhbt/eBfItE82kVUi84VCNV0+VGpl0ZBUxyg4undkJfgsehP6FT3QESat lEDZqCTTlf82pLO8msBiD9gJhrH2dFIACqxSSnKWekRNKKLqwW5K52AoQ3hVJBW52v u6wFJdDhT1kkPg+m7voxfnr1CgEGEvWVJVODxOcB966qb3FFgR1S5uJTVl2pCI/OuL jnQlakb0gAvF90i3icw0CTd+/mjWTk+C+W57VUG9h6QCiPAOQyq5gZx3gFMQ+jBYEh KAO+9XFnyV6TQ== From: Jeff Layton To: Alexander Viro , Christian Brauner , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Johannes Thumshirn Subject: [PATCH v2 78/89] zonefs: convert to new timestamp accessors Date: Wed, 4 Oct 2023 14:53:03 -0400 Message-ID: <20231004185347.80880-76-jlayton@kernel.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231004185347.80880-1-jlayton@kernel.org> References: <20231004185221.80802-1-jlayton@kernel.org> <20231004185347.80880-1-jlayton@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.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 (pete.vger.email [0.0.0.0]); Wed, 04 Oct 2023 12:10:29 -0700 (PDT) X-Spam-Level: ** Convert to using the new inode timestamp accessor functions. Signed-off-by: Jeff Layton --- fs/zonefs/super.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fs/zonefs/super.c b/fs/zonefs/super.c index 9d1a9808fbbb..e6a75401677d 100644 --- a/fs/zonefs/super.c +++ b/fs/zonefs/super.c @@ -658,8 +658,8 @@ static struct inode *zonefs_get_file_inode(struct inode *dir, inode->i_ino = ino; inode->i_mode = z->z_mode; - inode->i_mtime = inode->i_atime = inode_set_ctime_to_ts(inode, - inode_get_ctime(dir)); + inode_set_mtime_to_ts(inode, + inode_set_atime_to_ts(inode, inode_set_ctime_to_ts(inode, inode_get_ctime(dir)))); inode->i_uid = z->z_uid; inode->i_gid = z->z_gid; inode->i_size = z->z_wpoffset; @@ -695,8 +695,8 @@ static struct inode *zonefs_get_zgroup_inode(struct super_block *sb, inode->i_ino = ino; inode_init_owner(&nop_mnt_idmap, inode, root, S_IFDIR | 0555); inode->i_size = sbi->s_zgroup[ztype].g_nr_zones; - inode->i_mtime = inode->i_atime = inode_set_ctime_to_ts(inode, - inode_get_ctime(root)); + inode_set_mtime_to_ts(inode, + inode_set_atime_to_ts(inode, inode_set_ctime_to_ts(inode, inode_get_ctime(root)))); inode->i_private = &sbi->s_zgroup[ztype]; set_nlink(inode, 2); @@ -1319,7 +1319,7 @@ static int zonefs_fill_super(struct super_block *sb, void *data, int silent) inode->i_ino = bdev_nr_zones(sb->s_bdev); inode->i_mode = S_IFDIR | 0555; - inode->i_mtime = inode->i_atime = inode_set_ctime_current(inode); + simple_inode_init_ts(inode); inode->i_op = &zonefs_dir_inode_operations; inode->i_fop = &zonefs_dir_operations; inode->i_size = 2; -- 2.41.0