From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8DD6B38385 for ; Mon, 23 Dec 2024 22:01:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734991264; cv=none; b=sC/MWytcgNeKJO/a1hPbV/P8WEd37Y8iKK5wq7BVPEGWjc7VCixAX0MbjTeb7tZ1kUxSt/B0L1EyKWFJfiCgArirmjmtoca/1xUgxyQli0sph7IcBkiJfN+qrR3hoTm6Kdli0XzflUXT+b2nvqVxF2z51XvLyw+V4Mj6RRFb44Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734991264; c=relaxed/simple; bh=AqRliSpUbz7OdKh9ybwmbNYbW+RNbLf5GjMSIlQBTAs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=pqoYFoCX9cufwkzzOJQlSusrHJ8oZFOgTYyKGW2GxkawIVDokkxQn9BYBiNxvMKoR1RSPkUXffKZWunuocScIqbpPNNv4EoThfY+Ue2GKPBuXMAjpW3oD2q61XAZcGvSr8rpq7hSvLqUfMjoAqDW1ex4c2CZmmwMA3BGg8c1cLI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=a8Ek7I6q; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="a8Ek7I6q" 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: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 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(-) -- 2.47.1