Message ID | 20230621164557.3510324-8-willy@infradead.org (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 65E2CEB64D7 for <linux-mm@archiver.kernel.org>; Wed, 21 Jun 2023 16:46:14 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2E8688D000A; Wed, 21 Jun 2023 12:46:07 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C58AE8D0007; Wed, 21 Jun 2023 12:46:06 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6698F8D0005; Wed, 21 Jun 2023 12:46:06 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 2208C8D0008 for <linux-mm@kvack.org>; Wed, 21 Jun 2023 12:46:06 -0400 (EDT) Received: from smtpin25.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id D6F424099D for <linux-mm@kvack.org>; Wed, 21 Jun 2023 16:46:05 +0000 (UTC) X-FDA: 80927332290.25.5152940 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf05.hostedemail.com (Postfix) with ESMTP id 2232410001B for <linux-mm@kvack.org>; Wed, 21 Jun 2023 16:46:03 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=jUfm5Cn2; spf=none (imf05.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1687365964; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=5w9pZnjuH0cui0+bbF2YOmmpAFWEgjcRmo7ue1AvTtQ=; b=JSUAwrVBpyIIv5qxE3qWIUC3jCUfczCVXgsygugHWXyKH1GtyjOIO2+ncYiOs+0YCo/fUX 497t5erO5/rfSuyg9fGsFPLXcxir1Vknc8gWih0k6eXDUQ0ZhZ5S0l6VDJvUOsWjfUe7Gs 4zT8Is05gjTJJV1Y5AxukM+NsL26wn4= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1687365964; a=rsa-sha256; cv=none; b=whs6WGLHl74HHgGd4e3HcnlyU5uLPJ3DLV1SRU5WPNdUxVt4GYmI2Q0yerjTbMibcnyUKa XHjn2WKr072FIIOAhI4brl/zcjW4EYhmUaSCyXG6OGa77pKAI2p16EUalOG6uMYUFdojmZ X+jMyjx76nnAddqG9Evwaze5k3TEan4= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=jUfm5Cn2; spf=none (imf05.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org; dmarc=none DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=5w9pZnjuH0cui0+bbF2YOmmpAFWEgjcRmo7ue1AvTtQ=; b=jUfm5Cn2cwJWNOM2prgSqprGkR LmBwKRhuxKAUtr8BE0MWy123wKScLJoAtBpp0gWtFk3qBzdvXx83AHH41KrVC1zrHidgkWPuXbrUN WfjD0ZrDlse8jhsHm3mVGDt2m2kicLbSXaIYsdsLwQGBh+zoXbupr5MgiE7h5bsNCA2miJz2l/Fzn JGs/PkNFCac9dJLJDLKFksQrmKWOn8+imY/f0PkCnuqNBHAGKE/4jhmFP0h25e/UcAXoK54snBzmr ASDFZdUINRldKxUu0XLKMVMG+6bqx2IQgdu4zsWwH2B//OzYxwHJGhCgXv+2qTr4vXqFF+Ng3qqub 1asVHOzQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1qC0y1-00EjE6-T3; Wed, 21 Jun 2023 16:46:01 +0000 From: "Matthew Wilcox (Oracle)" <willy@infradead.org> To: linux-mm@kvack.org, Andrew Morton <akpm@linux-foundation.org> Cc: "Matthew Wilcox (Oracle)" <willy@infradead.org>, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org, linux-afs@lists.infradead.org, linux-nfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH 07/13] pagevec: Rename fbatch_count() Date: Wed, 21 Jun 2023 17:45:51 +0100 Message-Id: <20230621164557.3510324-8-willy@infradead.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230621164557.3510324-1-willy@infradead.org> References: <20230621164557.3510324-1-willy@infradead.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 2232410001B X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: jxphd7wsufq7y76bsrk3pmswom8e7agd X-HE-Tag: 1687365963-377169 X-HE-Meta: U2FsdGVkX1+TeTEcicndVwDEwqyGew93IXSz5o5sgoWiKn8oeTH9EovpOqDz59z0NgLNCLRbz2bFFmdKlkPuNNNcgC2tGM3MX1osYyxlrCIoa/5Te0Fok6YloBvKjvQWWr2cEP9rOjReUVmdcmZQ6YA8fHwspk+/qeYb4nnMwx1ZAhYBrn05WUvM0cZOZbjGU5tyxGZCtoYkSuGqGC1RBdy7GE8cLveILRrbq1E2Sk9DW7kpqc8h1Uq6iGZd+hiQxvN6tExq/3RaVRxfH2Xw6ZIdPaKbyi5kIPf/29PYYhVVCAqRfBYa0nkDhLwghiKesLzhG2PF9KwBSJCs0/YeAaPNq4iG0RA4joVQ399jyLEy0sOZcGJd98eq3HT6Qk2mHeiSlFICLbprl5dAZS58I9tFBjN9C9QuclP/5Ldo+PV3zClcL6QjcG+TidT1c6qLxzrqIMUvc0vkUcoKHeMuJikB1Vb3188bL3fPvmO/xgfJ/KIC4IAPWKce+DElL7au9ZaOirZL3aljasdq/XyPnWl0J5e5vLWKXUkmPkPxBq8/KZacSaFkf3E0Il/NfXI09UojVLAZv1PVQibZ7wumeHMLGnp0Ncdy2GAk72ofoZvWUquu78VLWNizcvmigqLpsYIH6fnG/pz3LmIHYAqxJ8vj8rlrH3Ilto2zT68GyLjix+td8IB9Xewv7deY+acM2Wijd5RAXSyZ9BH6FU9Ie+10rITBUNsKI46xLb3gmnBJ+lEVATts2rffgzjvar/xBzji/6jLgQPrI9NQjnfbDEpNXREviyvuyWLIxVQUXmc9QsuWvCKDlEHR6G0i2CKKdBuiUT570hOnWq5fMvjPO3dFTqEFV9tIlEHYZBBSUbpEC8xjlJQKsscWiw1/pwjTTev6T81YC3yWAhHB74aGvT5QpoCtWTl0hA97CFaAw50jxoSzrQqOmZHavJIRuGyAEAKQg1C5PnFApPaHBdo nGO1aHGC i36CF7BkPD7EwkxcSHiI1Ile26NFDN5XKfkfOqmpIvz58iVoC+I4InXQeYzZD3XQaVR2lAYm2heNTz2/KWAnTR+5T+BJ7OZdtRndMKwReAqn+i9QcnJAAYNwlBt0merRdivSQTN8GpE3wQdp1DKcFBvahr1G7d2BEbq0igtNtlL5Dac4mSZv4/FdQzHqxWFSBlfSR8ckvupEv+P6y/Ff2h+uyDRMzpAbF969t X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
Remove pagevecs
|
expand
|
diff --git a/include/linux/pagevec.h b/include/linux/pagevec.h index 42aad53e382e..3a9d29dd28a3 100644 --- a/include/linux/pagevec.h +++ b/include/linux/pagevec.h @@ -105,7 +105,7 @@ static inline unsigned int folio_batch_count(struct folio_batch *fbatch) return fbatch->nr; } -static inline unsigned int fbatch_space(struct folio_batch *fbatch) +static inline unsigned int folio_batch_space(struct folio_batch *fbatch) { return PAGEVEC_SIZE - fbatch->nr; } @@ -124,7 +124,7 @@ static inline unsigned folio_batch_add(struct folio_batch *fbatch, struct folio *folio) { fbatch->folios[fbatch->nr++] = folio; - return fbatch_space(fbatch); + return folio_batch_space(fbatch); } static inline void __folio_batch_release(struct folio_batch *fbatch)
This should always have been called folio_batch_count(). Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> --- include/linux/pagevec.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)