From patchwork Tue Dec 17 16:31:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luiz Capitulino X-Patchwork-Id: 13912193 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 A619AE7717F for ; Tue, 17 Dec 2024 16:32:09 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2CC966B0089; Tue, 17 Dec 2024 11:32:09 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 27CD26B008A; Tue, 17 Dec 2024 11:32:09 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 144E66B008C; Tue, 17 Dec 2024 11:32:09 -0500 (EST) 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 E9CBB6B0089 for ; Tue, 17 Dec 2024 11:32:08 -0500 (EST) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 9F12E1201C5 for ; Tue, 17 Dec 2024 16:32:08 +0000 (UTC) X-FDA: 82904991960.13.2746CF8 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf22.hostedemail.com (Postfix) with ESMTP id 93062C001A for ; Tue, 17 Dec 2024 16:31:34 +0000 (UTC) Authentication-Results: imf22.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=V+OwS2Ao; spf=pass (imf22.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=1734453112; 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=v4a78Nrl6r5YnvCCV5tI8Jed2xDlkXGLKzm9cenTmJA=; b=kDMUfmsJOo/IX/aGKcBHDmp0nNlnPw/Z6YgOYKVzfJPZOAzVVmLzl6IgkYS+Q6UbxFF96m 6KLPiNDWHCs6RiqkOIgPVNtLAuaxElSdJoOjh25coaz1Il/F4Bg0VpHvPMGRxQTYYhv+Iu SAZxWpxe7ksfOwYHnXbTE6Qrfyad4Cs= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1734453112; a=rsa-sha256; cv=none; b=2W2J/UKGxa/TVnEMY+xrFyxUp7q408Dt6x3PuZT0dED4EstJiz3PuJCI0zJPKXG3E2NrnK xdMSy4zTF/Z4fvguRZKvVQVTvXHF123kBN/6QpbK5Ab20zOgYxl9EfV23J3MAUW/nEm3ks w4WkQepzzTsSukoYIR+4pt1nntN1WDA= ARC-Authentication-Results: i=1; imf22.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=V+OwS2Ao; spf=pass (imf22.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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1734453126; 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=v4a78Nrl6r5YnvCCV5tI8Jed2xDlkXGLKzm9cenTmJA=; b=V+OwS2Ao0tbfZd3BCzOpGrhLXlwvJQ4WkHTHiNnFU5tGTxa2ozPzO57MjWaCH8iEJmjtuG a8N1ohDZ9207qdn8lk+UlLa4n0gyzUD9FBO6M1PK3CvbJe5xL7Q8UgeRV+pYLJxzEKtiOk QnrYxowfRc7cEbC640EXT45eS41T8iM= Received: from mx-prod-mc-01.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-169-irORv65YNUaa8NIP11YVcA-1; Tue, 17 Dec 2024 11:32:02 -0500 X-MC-Unique: irORv65YNUaa8NIP11YVcA-1 X-Mimecast-MFC-AGG-ID: irORv65YNUaa8NIP11YVcA Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (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-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 33F211955F44; Tue, 17 Dec 2024 16:32:00 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.22.65.20]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 6610A30044C1; Tue, 17 Dec 2024 16:31:58 +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 0/2] mm: alloc_pages_bulk: small API refactor Date: Tue, 17 Dec 2024 11:31:26 -0500 Message-ID: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: 93062C001A X-Stat-Signature: 7rsff7aoptfrb14cyjw8prtqijprr3f7 X-Rspam-User: X-HE-Tag: 1734453094-729021 X-HE-Meta: U2FsdGVkX1/wM4Ef78zEjWNuBE6qJEZcsQG/yXjveB92T06xQEla2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p8crZyJRYJK0EYFeRDi2x3CI6P0KswIBPQz7wU0drcOco47w+lnujyaAqN/tI0YX3iWBNAL1bo0hxDukTYMdMCmMmjhVcpQc4ker8+RKHCEIuh1aN9Ah5wg18fVgPtU6N21Ar/g+9dkV5obRvAlTjulxStT6Jnr6X9Gfpg3rZo263z8vCiXSZwjCDkbbwxrh1vaXi0YfpuIogDqLHAzbrTVqdjBNrRWEKdDQ== 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: 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 | 12 +++--- 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, 70 insertions(+), 91 deletions(-)