Message ID | 20240729183844.388481-2-david@redhat.com (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 AE103C3DA4A for <linux-mm@archiver.kernel.org>; Mon, 29 Jul 2024 18:39:18 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 344B56B0095; Mon, 29 Jul 2024 14:39:18 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 2F5076B0096; Mon, 29 Jul 2024 14:39:18 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1966C6B0098; Mon, 29 Jul 2024 14:39:18 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id E5C766B0095 for <linux-mm@kvack.org>; Mon, 29 Jul 2024 14:39:17 -0400 (EDT) Received: from smtpin26.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 5BDA91A01E9 for <linux-mm@kvack.org>; Mon, 29 Jul 2024 18:39:17 +0000 (UTC) X-FDA: 82393652754.26.00E701B Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf24.hostedemail.com (Postfix) with ESMTP id A5A1A18000C for <linux-mm@kvack.org>; Mon, 29 Jul 2024 18:39:15 +0000 (UTC) Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=NaMN5A4l; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf24.hostedemail.com: domain of david@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=david@redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1722278315; a=rsa-sha256; cv=none; b=EqCCZ3XQ2G7vWQ3C+uS5KfU0lzREm6XDfzsc4aNrS2cCihWhSZ2q7BLtJTaCR/tP+QRZrX nFr6CjQau5u/vUYP7ZYlxYDAe8T2i3qnva350IGq4BVwE9VgyZdwvrh1LiQlJ4R8rGt1pb Rnr6pUU0nmz37AcwSfvvU2/mw/ZmcU4= ARC-Authentication-Results: i=1; imf24.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=NaMN5A4l; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf24.hostedemail.com: domain of david@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=david@redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1722278315; 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=1LweK4YyrJ+GH/WLrm8oiFvHfSVbn4+ENVtw/AVp5dM=; b=7jHTLkD0q7yEHrcX6BKAY/kKGVWfD00G5p/hqMnkYqbj+oHl8YBFgj6vYodOLX8sA0JOHr RPsB5Lylr5YYZLweWEaKpm2eNdu7014Qko++hdaiDYx5JLRzKN17n9qKT1l0dL9M47lUfR o1M/U1l6PGXgO+j9ouJBvOkTqV1IbDM= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1722278355; 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: in-reply-to:in-reply-to:references:references; bh=1LweK4YyrJ+GH/WLrm8oiFvHfSVbn4+ENVtw/AVp5dM=; b=NaMN5A4l7ehUyIHlE4TYPa+bDhK0Lfihd6KwnyN7Yk7rUEAT56zAedEI02VzO7P15F7uNo vSapc5CdL8yCwyDQu1A730m+PfTC1Ak03UieXXiJheBR/N0TeaKpLKQKmeFdiAE2+sLLzN 5eYa7HZqaAP5fLaDMrKcsLsUL/F+qrA= Received: from mx-prod-mc-05.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-673-8Qug9MJyOh6RXOQYIceWMA-1; Mon, 29 Jul 2024 14:39:09 -0400 X-MC-Unique: 8Qug9MJyOh6RXOQYIceWMA-1 Received: from mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.15]) (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-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id B279A1955F49; Mon, 29 Jul 2024 18:39:07 +0000 (UTC) Received: from t14s.fritz.box (unknown [10.39.192.25]) by mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 5CA481955D45; Mon, 29 Jul 2024 18:38:59 +0000 (UTC) From: David Hildenbrand <david@redhat.com> To: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, linux-s390@vger.kernel.org, kvm@vger.kernel.org, David Hildenbrand <david@redhat.com>, Andrew Morton <akpm@linux-foundation.org>, Matthew Wilcox <willy@infradead.org>, Heiko Carstens <hca@linux.ibm.com>, Vasily Gorbik <gor@linux.ibm.com>, Alexander Gordeev <agordeev@linux.ibm.com>, Christian Borntraeger <borntraeger@linux.ibm.com>, Sven Schnelle <svens@linux.ibm.com>, Janosch Frank <frankja@linux.ibm.com>, Claudio Imbrenda <imbrenda@linux.ibm.com> Subject: [PATCH v1 1/3] mm: simplify arch_make_folio_accessible() Date: Mon, 29 Jul 2024 20:38:42 +0200 Message-ID: <20240729183844.388481-2-david@redhat.com> In-Reply-To: <20240729183844.388481-1-david@redhat.com> References: <20240729183844.388481-1-david@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.0 on 10.30.177.15 X-Rspamd-Queue-Id: A5A1A18000C X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: 4tpcfwbdbdi4n4nwno8p1w4oaotpaxci X-HE-Tag: 1722278355-339072 X-HE-Meta: U2FsdGVkX1/24zPlfCrVMgsWWMgwbM/0GQYJ5vN4oO032EI8vcYW6TRJhfc+suI6qtyd3E/XF/QvmHL9awHFhPb0JYG6kEH0cvKkGLKGy0yxSiK9PcoZSbxFBNUro6xOltk7eK8QT1Gwael0JINw35tMmyDXUTGv+roJ8Yjn/TwdX9kd9OgzUSp1Hp2d7kSAtOgIH1U/FBMsrbMpqiSfG2j5eQFV2hL4CRZFUJloBQaJ4Q8Srp5SI/4ygDgVPusWwECyAbJnvIn3beGGfNUZwvU+q5t6TK/QjiX8eds7l2Z5SLzpPwuIX/1CNw0sSwu+ubj1zZ8TIQg4S8UwGhjRpw5tx87NPyLupxikuXQwqCGZpz79rOVDfnU5mKdTBbUBh6ny/s5xlo9SQ30gGAoTBlF+c5/R0Tnoe7acTjzcJgtphfYaNysJatglq4H1gXcxDgUfO7/2q52dcJjlqPaD4rrSzOZB1/o8QgAvCf7Zy0A2EpxmtVwWcUuD4rACR5nh7PsUBMAYaKzOEiXSCsINk9XDQTAsFGaUCFeWi8ExfJFKY7DGwMIyFDyIm1pGxhpJyzLx4qoKmD21b2kL9b6F2p8Ulxv66W6eFDpsSq+J8LKfH1YZ4BKELRno6OCPqYTydU1rIiM+r3rw41WtfKxIbk6xL1sz6vCv+9ap3OP4hq8ATMjRbV6dWzojWz2TYSlkulna0BVd3Y6HbBthFXbR0wwJkw9eQkAZn0XrAQWfD/v4qhs8MtNQY2vS0+7hXvLMyrqbZ8yJmi9DYdp1H+Qt+tzWTfetdn9ve/Z8h9olw8G92JpTEjsCYgyL/nBBK6eA6DIAvHRhwbsumXiDEnuzM0+AjNoJ44/a0xf21GJta6vO8lPJYUA1GPNZegsAUtJmGi96JS+tJidMXDjDIqz+Sp5EVcyi2jnqL3l+oKZq5xHv6CrShcgjCxsY3ZMeL0B+GrvxJd+BjMZMNTmfy5J 2kazv0tr KYGt0nqDTVTu1y42YvgHj+JfexuR9PKJb4tXr0lCQDf6CEx8xKMObZBj12kZgX1Hunhvl7Y1q4wjrCPGdf58aHfM7iOHa1+KFs4+vaixM6Z/Ru1WwgS1kcPihun5IPvKhNb7RfFvN+TYSDyBhKWbAq6W+adtRJmNR7KxiEJ3JBwh8A4YdQ5w0ZBqp76KvpRLjLVaaI5RISpLWCXDGo46JRVZepkisUMOJxieUlTKjXYhSz06UkcAHVNcj7sJ3EAAfzd6irr4DPiM2B07LJlYkyW+IgZzqXz2mtJoMww0w3eZGzrLO2bqYs/qQrIZBkjWSsTdadW66fVYH5cV2bD0mYZxh7w== 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> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
mm: remove arch_make_page_accessible()
|
expand
|
diff --git a/include/linux/mm.h b/include/linux/mm.h index 381750f41767a..bab689ec77f94 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -2215,16 +2215,7 @@ static inline int arch_make_page_accessible(struct page *page) #ifndef HAVE_ARCH_MAKE_FOLIO_ACCESSIBLE static inline int arch_make_folio_accessible(struct folio *folio) { - int ret; - long i, nr = folio_nr_pages(folio); - - for (i = 0; i < nr; i++) { - ret = arch_make_page_accessible(folio_page(folio, i)); - if (ret) - break; - } - - return ret; + return 0; } #endif
Now that s390x implements HAVE_ARCH_MAKE_FOLIO_ACCESSIBLE, let's turn generic arch_make_folio_accessible() into a NOP: there are no other targets that implement HAVE_ARCH_MAKE_PAGE_ACCESSIBLE but not HAVE_ARCH_MAKE_FOLIO_ACCESSIBLE. Signed-off-by: David Hildenbrand <david@redhat.com> --- include/linux/mm.h | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-)