From patchwork Wed Oct 4 18:53:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Layton X-Patchwork-Id: 148558 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:254a:b0:403:3b70:6f57 with SMTP id hf10csp350245vqb; Wed, 4 Oct 2023 12:13:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFkNfoWVW8O2sXSNlDkcrOdq3ue4ZwwO9le9KXcD+Bt9JH3yTUS2Crro1nVVo59fePAMRbq X-Received: by 2002:a17:902:e84c:b0:1bc:4f04:17f4 with SMTP id t12-20020a170902e84c00b001bc4f0417f4mr633354plg.30.1696446817550; Wed, 04 Oct 2023 12:13:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696446817; cv=none; d=google.com; s=arc-20160816; b=nVUJqOmBd+kVOXtW/KAMK2hx4Q8wZ8OzTvz/njy9k7QJtDCV+fUdYyiKHZlc3z4RYk k/lSn7a3pO2QmKC6f3PfGI0K77ji+CTaKUSvtvnf9fDqW265fVQLrdWluBcHisp1+trv h6oyAmTYpAUA0/bLYwYaBz3+QR90UN/wvEpdu3Q5SeUKbO0zGYzrath3Y0FcknXKzSct 6z4G2+H6rZGl3jhAGuTHchcFBjCMpwvpdANP5C7oT8BFv244qNvMjyjqqZdu5ndlEJ5e yXXdTsZZDl3PovN1fUQ+qqkCDoHWyqdImsMnEUp9D37NxUpHtCsm42obmkTq4X+uzCQk lA0A== 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 Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id q7-20020a170902a3c700b001c3976e22f5si3911520plb.515.2023.10.04.12.13.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 12:13:37 -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 A9E0E81F3337; Wed, 4 Oct 2023 12:13:15 -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 S245294AbjJDTIU (ORCPT + 19 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 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:13:15 -0700 (PDT) X-Spam-Level: ** X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778853418339812816 X-GMAIL-MSGID: 1778853418339812816 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;