From patchwork Wed Apr 2 21:06:09 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Wilcox X-Patchwork-Id: 14036484 Return-Path: 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 38361C3601E for ; Wed, 2 Apr 2025 21:06:21 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D9BD5280001; Wed, 2 Apr 2025 17:06:17 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id BB464280004; Wed, 2 Apr 2025 17:06:17 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 96BB5280003; Wed, 2 Apr 2025 17:06:17 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 70763280001 for ; Wed, 2 Apr 2025 17:06:17 -0400 (EDT) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 9132C1607E6 for ; Wed, 2 Apr 2025 21:06:18 +0000 (UTC) X-FDA: 83290336836.24.1F9CC69 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf10.hostedemail.com (Postfix) with ESMTP id D2764C000E for ; Wed, 2 Apr 2025 21:06:16 +0000 (UTC) Authentication-Results: imf10.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=suhrBjDL; spf=none (imf10.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=1743627977; 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=FK4WOp5c58Z+NW1ocgPzv/oQMmQ5qTAfrmyeSlx2/M4=; b=yZn+Mhn+btAqNNuMTAXY5IfQ1ePU+R4guhUvkbPus8bfFX5Ar7OI5EBmcByJzHkrLxi/Hb CFYAcIUALjC3gcD7kyjexNrSWskWQQo+M/oqmkFc/PhN1pMQxbxqytSnNjxXgXsk8zIWJ7 o44LCKiitbfqD+3Zyt520eoYjRC/DKM= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1743627977; a=rsa-sha256; cv=none; b=MROWHDKEQkZDwP0Apyi8OtUfjA05qjU+AKd6/fFTOwd2ml0Nca+BglbID17QZTOm1IIDQu kL1VH4CDt1BFyzy5EZlvEayB7YVXULrZBTeLqTSyqnuiWo1iBBxCqAjoqyFtJAgtDt8BBq FMDSICXFupwYyOWygenvCY4G5Fqpo1k= ARC-Authentication-Results: i=1; imf10.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=suhrBjDL; spf=none (imf10.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=FK4WOp5c58Z+NW1ocgPzv/oQMmQ5qTAfrmyeSlx2/M4=; b=suhrBjDLDbKfVT2i3Wu1H0JKrE eKEkCQRVRl0mJNXbrsfHdzRalicBbWC4MsuV6n1s6xYB52VgXHfx0kSNNqNEpDoKjj7GBAUFfHbTG czMv2i+MiYP2o0E33C+tDMxYWm4yFrjstLqzXzFLXnas/vAueK/lVYDAgWj34Mnv0Fp6zxRST9WZC LnYcQQDA/6cBiLcCdLptTlovyFQUxY9lngBUcHv+bE8Zz7OhbJDH4+cw67VdyoVvXw5FN+6cv/aRH NNoXaVorUlfkGhzlhzgPy7ESETcpmVvcgH98SOiBdYD+kQBGWaoKaYeZwIwt9TB1BGIdK3I2PIvO/ QF0xapQw==; Received: from willy by casper.infradead.org with local (Exim 4.98.1 #2 (Red Hat Linux)) id 1u05Hr-0000000AFqi-1LhK; Wed, 02 Apr 2025 21:06:15 +0000 From: "Matthew Wilcox (Oracle)" To: Andrew Morton Cc: "Matthew Wilcox (Oracle)" , linux-mm@kvack.org, linux-fsdevel@vger.kernel.org Subject: [PATCH 7/8] filemap: Remove readahead_page_batch() Date: Wed, 2 Apr 2025 22:06:09 +0100 Message-ID: <20250402210612.2444135-8-willy@infradead.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250402210612.2444135-1-willy@infradead.org> References: <20250402210612.2444135-1-willy@infradead.org> MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: D2764C000E X-Stat-Signature: ad3uzuddk6jjwoofzqo6gqsuc8de8kcu X-HE-Tag: 1743627976-67144 X-HE-Meta: U2FsdGVkX19Y5W7SfuUTtb6MJcnykYMg3v9LfC/gtavrHarnnZTxMzvkjuVIJgPbDXhWwsOywhtnYL/57/5CtCDRbwHuYXmCVl2ybAYrf+bYVdfyJ8yNyhGtDa/iZDLdgEgIa3Mc7ekbRaKegg5QPMgMSrVS7zHgkqQzRLq4HipNeiTKlvfMHapA65BABNfLHGpUj0MP8u/QkIFc489mpLTb9UOYefgQontqWHqFHqb4Cz7l6ZISJf7MLDVYUtyIwyk9kzAprGKSb4YBb1szP2b0ziBTAoZLC63RX6MmxJZ8z625G5W9TxUgF0wQnVzFTUmjVEvwSMHVI9Xkkfpi8oRcUFjbMNp/nG/kzr7EbQcxflNrkpe3P2I0ZNwVqhRXCsZHOISO9saTj8Jr6znDckbgQspa+UjQIpg/Ry1weLYEvzOerHg3aw6E4CHVOTZm+uRqyOeCz833pTAjjkI3Zjpgs3gpJrWxZxvAV/oEgM9/zQF/BHcvWCzrQJFqjeKzWLhjxLGRlDATkSv4upniV5m5rEUzbZMGnkzdcqCPVJudUWGsSlNOhLSvo97n5K/eGlyjaVTiD6md46/7eSLnAtO9xF7tU0ZnrLv8vbvRC37D/uVvSh0MOykthX6IEcyytv/l1imxfu/Nw/QoczO31n0L9QPNSmow316dgFmd5euakIb8AWjnV9lxUPiZ76dFQLOcc/MnJV5jhXI4agr32DOGHoSxabnk9ZIQk0dS9sZNUtu4ulqfnvPRrwLMFnJ+GP9OcmeMHX9YwMGVM9+s5W0PCf3xlFBYFOKx5G0V0OMPKzA2mhiN8qpH6y9eqoSW2Bh3ZBRVty+/doFMMoGZNX+Tp9Lac4olqjPymGqIXP7NBiLqmGAyeldEBAFCE7Jgru8d17SXv1jhtXHYILmMeZtWdwtJ8Gnp62cWudGGIZjx2O1RdMDvTBvprqI0Ed2S/IA5ECYGFg8GaV24xic veMj/LTi yt87Znd8lmf+90DS6xwo7GYmkX+JO2IJul2WWH7b3voFi34HvM1duyd7S6xvYcvJAs5dDXehhbF9USgKl/4PhpsPkz7S5DdNevmvgiadl+Q9nuzHx5l+ioJt3S6MSfZgGhIdeKa0dHfQN14UlPj6r2FigqvkGHdianoGMr4+SWN2pmGfe3LJy9m2fQgVBoTkhzOPCdic0FYAMDmV34OgJl+XpV1GlxvAs/rkqe3aEce3Rp6+kRKurTDhDqJw0FhEmfk9V+YRnNCxka53fZuBDNJgsCSHsIxLwLAhb 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: List-Subscribe: List-Unsubscribe: This function has no more callers; delete it. Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/pagemap.h | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h index c5c9b3770d75..af25fb640463 100644 --- a/include/linux/pagemap.h +++ b/include/linux/pagemap.h @@ -1447,20 +1447,6 @@ static inline unsigned int __readahead_batch(struct readahead_control *rac, return i; } -/** - * readahead_page_batch - Get a batch of pages to read. - * @rac: The current readahead request. - * @array: An array of pointers to struct page. - * - * Context: The pages are locked and have an elevated refcount. The caller - * should decreases the refcount once the page has been submitted for I/O - * and unlock the page once all I/O to that page has completed. - * Return: The number of pages placed in the array. 0 indicates the request - * is complete. - */ -#define readahead_page_batch(rac, array) \ - __readahead_batch(rac, array, ARRAY_SIZE(array)) - /** * readahead_pos - The byte offset into the file of this readahead request. * @rac: The readahead request.