Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp485839imn; Wed, 27 Jul 2022 11:31:50 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tCaIZo5qhPuKhI3/AyrYE7kRergNVXIVUZktY3ClvOp6ba/v50PizQxcdWMuXNaEPdM0AA X-Received: by 2002:a17:902:d4c2:b0:16d:798a:51c2 with SMTP id o2-20020a170902d4c200b0016d798a51c2mr14752347plg.15.1658946710733; Wed, 27 Jul 2022 11:31:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658946710; cv=none; d=google.com; s=arc-20160816; b=N3wApeG5dkb4qeCmsVFv0ePjs51UBaXu207CNOrrPihfHJGu7ySwgvuLmga9zROE0j exF/o4T1fPsmlDvEqhPcxKm6Oo4b6QOSQsopiQswkAnqi1OkVZhyA0Sxl4HLirb70Ubr pjNopT7J5S5wX8PiJ4B+jVnihTMMyn+c+oxq2Aff9hr79i3fDKdPNIkcHizVL8RtXYBR QbU2XBINW+BUVV+L4DgFkTZUW2YUEsVOarT4zramaCYgOtMijIuq6SSgUeRn86wFzLAk lOdBVdXDzW6/M8JSiD1ypk+xvWH6YMZ3VmsGtfXAmRZtsXSWS77RuWHPbica+U/14DjO H1wg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=IAb54IXR5bFNhWTGtzKdagMlgwFUK3jL6dMpXHto5f8=; b=PzDEfVpeuysFNpItFcaRfaEpu6XLR1yLvZ35c8lPrC9xgXFGxPqAWNiXTbI7QM7ZrD TeBJKpvCyY1i2wbc0q+9OHCYgajgM4mWpGfBdFqzg3RvhZ1VnuKWZJORhTspwjGvRbXI KT+aEdWLHUCf92RwPbSyrX9cb34ClWv2JLondA97MaI5nfh2oiCvK0tGg4cqYu9IgqWl IKl5DwdUmJEob8DoinveFhED7lmp0o2/puOlM0OQXcsEB76ZiQsbzDLbOAMcX2Z6zf6T 66TnUL+TYik0tX/QMAaxVdjrk7pPtcJovMynzlLXxtXQkZ4F7AA3YP1Vx0IvT9p+C18N xfkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tTm3X+xb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j16-20020aa79290000000b0052b88948d54si14574417pfa.342.2022.07.27.11.31.35; Wed, 27 Jul 2022 11:31:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tTm3X+xb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240981AbiG0RCo (ORCPT + 99 others); Wed, 27 Jul 2022 13:02:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241082AbiG0RCM (ORCPT ); Wed, 27 Jul 2022 13:02:12 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 393FE6C11C; Wed, 27 Jul 2022 09:38:14 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id AC080B8200D; Wed, 27 Jul 2022 16:37:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E12BBC433D7; Wed, 27 Jul 2022 16:37:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1658939859; bh=mPEUpCltEvoeCnadERliB+25tv9OoFIoS22pvdNZNYU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tTm3X+xbNMxO5dsZcTY44AV3pkiF91hYYiqet1h3813doI7SczY5c2Fj2bUMF7J/5 xCTJHONCZO9644Eq7gVB5mLleodrooOjEKTvbj6FWtQ4bxyRUKcEdiKRjdVtdey/1G rvLHquyFb/7da+yNxre5RF0BBnlqOR36J7omOdJU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Brian Foster , Dave Chinner , "Darrick J. Wong" , Leah Rumancik Subject: [PATCH 5.15 023/201] xfs: rename the next_agno perag iteration variable Date: Wed, 27 Jul 2022 18:08:47 +0200 Message-Id: <20220727161027.866105909@linuxfoundation.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220727161026.977588183@linuxfoundation.org> References: <20220727161026.977588183@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 From: Brian Foster [ Upstream commit f1788b5e5ee25bedf00bb4d25f82b93820d61189 ] Rename the next_agno variable to be consistent across the several iteration macros and shorten line length. [backport: dependency for 8ed004eb9d07a5d6114db3e97a166707c186262d] Signed-off-by: Brian Foster Reviewed-by: Dave Chinner Reviewed-by: Darrick J. Wong Signed-off-by: Darrick J. Wong Signed-off-by: Leah Rumancik Acked-by: Darrick J. Wong Signed-off-by: Greg Kroah-Hartman --- fs/xfs/libxfs/xfs_ag.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) --- a/fs/xfs/libxfs/xfs_ag.h +++ b/fs/xfs/libxfs/xfs_ag.h @@ -127,22 +127,22 @@ void xfs_perag_put(struct xfs_perag *pag static inline struct xfs_perag * xfs_perag_next( struct xfs_perag *pag, - xfs_agnumber_t *next_agno) + xfs_agnumber_t *agno) { struct xfs_mount *mp = pag->pag_mount; - *next_agno = pag->pag_agno + 1; + *agno = pag->pag_agno + 1; xfs_perag_put(pag); - return xfs_perag_get(mp, *next_agno); + return xfs_perag_get(mp, *agno); } -#define for_each_perag_range(mp, next_agno, end_agno, pag) \ - for ((pag) = xfs_perag_get((mp), (next_agno)); \ - (pag) != NULL && (next_agno) <= (end_agno); \ - (pag) = xfs_perag_next((pag), &(next_agno))) +#define for_each_perag_range(mp, agno, end_agno, pag) \ + for ((pag) = xfs_perag_get((mp), (agno)); \ + (pag) != NULL && (agno) <= (end_agno); \ + (pag) = xfs_perag_next((pag), &(agno))) -#define for_each_perag_from(mp, next_agno, pag) \ - for_each_perag_range((mp), (next_agno), (mp)->m_sb.sb_agcount, (pag)) +#define for_each_perag_from(mp, agno, pag) \ + for_each_perag_range((mp), (agno), (mp)->m_sb.sb_agcount, (pag)) #define for_each_perag(mp, agno, pag) \