From patchwork Mon Dec 23 22:00:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luiz Capitulino X-Patchwork-Id: 13919316 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 534D3E7718B for ; Mon, 23 Dec 2024 22:01:06 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B3A8D6B007B; Mon, 23 Dec 2024 17:01:04 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id AEA456B0082; Mon, 23 Dec 2024 17:01:04 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9B1CA6B0083; Mon, 23 Dec 2024 17:01:04 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 7CB096B007B for ; Mon, 23 Dec 2024 17:01:04 -0500 (EST) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id F358FB12ED for ; Mon, 23 Dec 2024 22:01:03 +0000 (UTC) X-FDA: 82927593042.08.A89B2D3 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf11.hostedemail.com (Postfix) with ESMTP id 0351740005 for ; Mon, 23 Dec 2024 22:00:26 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=a8Ek7I6q; spf=pass (imf11.hostedemail.com: domain of luizcap@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=luizcap@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1734991233; 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:references:dkim-signature; bh=00IE/ifGLHhoVWwMwvBdzLnhyrtUVeXLPgQs5UiMg2Y=; b=McHA/qMhX3N8mdzg7pZogtAaC3ERbQCwKyBM7xGV3JHNiRUSLpldyOlVOC0UU3pJmd08Xz oD2ctqv7PgHqwFxOSlbg1v/AX3yll6I2SLtTVIQyf9AWRjM4b06u0gc6lpHuYbmcikSCqz HESPfWMp/eNVAAda4+vmzIvtJt4gAb0= ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=a8Ek7I6q; spf=pass (imf11.hostedemail.com: domain of luizcap@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=luizcap@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1734991233; a=rsa-sha256; cv=none; b=6XGk++nnIHecE29QNTD5sOg2pqEXpTuTvGpTL91m6XzdcQMwDqogdyy0reAGwz6ydz3YPC 2aM/xQESs3bhk9dfdkWfd6eHKVysPjRPgHpayKIY3BguM3gNdYn4r7t3S0qbmb2tHGuJqV L0ScXSfw2ndPmQ81riRq00ofxKOcslE= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1734991261; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=00IE/ifGLHhoVWwMwvBdzLnhyrtUVeXLPgQs5UiMg2Y=; b=a8Ek7I6qg3QFSh6xMRimRGru7RGrhO0Q3pSj/aRFBag8W/HYaF+ai5iYwN/iDqkIzyhT6W o2Zog4RAHePceDBOrGxEONQ4xL09/vMtkvw9Nmwa5XWCP4CSCetdWb020i5my3N7Cxv+Kf lz/Q12CQsFrOc62xQxPVqVliVq9I+3Q= Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-519-PEQN6ObpM6SBSZbkbI8tHw-1; Mon, 23 Dec 2024 17:00:58 -0500 X-MC-Unique: PEQN6ObpM6SBSZbkbI8tHw-1 X-Mimecast-MFC-AGG-ID: PEQN6ObpM6SBSZbkbI8tHw Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id DA4941955EA7; Mon, 23 Dec 2024 22:00:56 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.22.80.63]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 36DD11956052; Mon, 23 Dec 2024 22:00:54 +0000 (UTC) From: Luiz Capitulino To: linux-mm@kvack.org, mgorman@techsingularity.net, willy@infradead.org Cc: david@redhat.com, linux-kernel@vger.kernel.org, lcapitulino@gmail.com Subject: [PATCH v2 0/2] mm: alloc_pages_bulk: small API refactor Date: Mon, 23 Dec 2024 17:00:36 -0500 Message-ID: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 X-Rspamd-Queue-Id: 0351740005 X-Rspamd-Server: rspam12 X-Stat-Signature: gwxcdxxy43wad4p36cdcexsxu97qnkq9 X-Rspam-User: X-HE-Tag: 1734991226-189879 X-HE-Meta: U2FsdGVkX1+Emv5PlYhyLoqrcIK3vR03qz7Xj8M8K3qQtwgXXr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l4GIjyrL8xDm8Vv1Szuge4PtToZFQxmeGgrBz+/9x8IunoaZBKw1fMWmGsk+hWM94+fjQMr6oicp98qsrna2lwiy3K0NrRuECIf6Ub1R/rcbVipVZxcWM9raqR7RNa0bBQWspNgpTU0soJugswmGvyFeH5ZWgaBJJF43GQ2jw6xni+aYeFKiY6JcqPuYtsQ+FPtuPy3cJD3zEVWESE0NiVweylJvOrpoB0KFZhhe7MJ1HEmQ== 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: Changelog --------- v2 - Rebased on top of v6.13-rc4 - Improve commit logs [David] - Drop atomisp driver's free_pages_bulk_array() renaming [David] Original intro -------------- Hi, Today, alloc_pages_bulk_noprof() supports two arguments to return allocated pages: a linked list and an array. There are also higher level APIs for both. However, the linked list API has apparently never been used. So, this series removes it along with the list API and also refactors the remaining API naming for consistency. I've boot-tested this series on arm64 and built-tested it on x86. PS: Matthew, it was easier to keep my patch instead of fixing up Mel's but I included the API refactoring patch as well. PPS: It's probably good to have a free_pages_bulk() function, but I'll leave this for another day. Luiz Capitulino (2): mm: alloc_pages_bulk_noprof: drop page_list argument mm: alloc_pages_bulk: rename API .../staging/media/atomisp/pci/hmm/hmm_bo.c | 4 +- drivers/vfio/pci/mlx5/cmd.c | 14 +++---- drivers/vfio/pci/virtio/migrate.c | 6 +-- fs/btrfs/extent_io.c | 2 +- fs/erofs/zutil.c | 4 +- fs/splice.c | 2 +- fs/xfs/xfs_buf.c | 4 +- include/linux/gfp.h | 22 +++++------ kernel/bpf/arena.c | 2 +- lib/alloc_tag.c | 4 +- lib/kunit_iov_iter.c | 2 +- lib/test_vmalloc.c | 2 +- mm/mempolicy.c | 28 ++++++------- mm/page_alloc.c | 39 ++++++------------- mm/vmalloc.c | 4 +- net/core/page_pool.c | 7 ++-- net/sunrpc/svc.c | 4 +- net/sunrpc/svc_xprt.c | 3 +- 18 files changed, 66 insertions(+), 87 deletions(-)