Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BECC7C07E96 for ; Tue, 6 Jul 2021 19:14:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A16C86023F for ; Tue, 6 Jul 2021 19:14:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231684AbhGFTQ6 (ORCPT ); Tue, 6 Jul 2021 15:16:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:51024 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231367AbhGFTQ5 (ORCPT ); Tue, 6 Jul 2021 15:16:57 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8EBC660C3D; Tue, 6 Jul 2021 19:14:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1625598857; bh=saOoNMYQN+GIzd7s0q+bF57MFmI+RDBhdZkUKeAis6U=; h=Date:From:To:Subject:From; b=nznlOMsop9KgJfXWjWoM7APiGFYWljqdDiv88DV0o6q/R8Chta8Zyqzhqk5uWgCbS jyRei+ParOw33S2b8D5HcQNEBJdU+ybykZjkyoFAB2i2dzorRq1Tu2SgfDsXWoNAqZ Pdt5dcvlbO33Gxf0BMEeZZFFYEA1nw+8klRFS5DU= Date: Tue, 06 Jul 2021 12:14:17 -0700 From: akpm@linux-foundation.org To: anshuman.khandual@arm.com, mm-commits@vger.kernel.org, vbabka@suse.cz, william.kucharski@oracle.com, willy@infradead.org Subject: [merged] mm-constify-page_count-and-page_ref_count.patch removed from -mm tree Message-ID: <20210706191417.M7WCy6CpC%akpm@linux-foundation.org> User-Agent: s-nail v14.8.16 Precedence: bulk Reply-To: linux-kernel@vger.kernel.org List-ID: X-Mailing-List: mm-commits@vger.kernel.org The patch titled Subject: mm: constify page_count and page_ref_count has been removed from the -mm tree. Its filename was mm-constify-page_count-and-page_ref_count.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ From: "Matthew Wilcox (Oracle)" Subject: mm: constify page_count and page_ref_count Now that compound_head() accepts a const struct page pointer, these two functions can be marked as not modifying the page pointer they are passed. Link: https://lkml.kernel.org/r/20210416231531.2521383-7-willy@infradead.org Signed-off-by: Matthew Wilcox (Oracle) Reviewed-by: Vlastimil Babka Reviewed-by: Anshuman Khandual Reviewed-by: William Kucharski Signed-off-by: Andrew Morton --- include/linux/page_ref.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/include/linux/page_ref.h~mm-constify-page_count-and-page_ref_count +++ a/include/linux/page_ref.h @@ -62,12 +62,12 @@ static inline void __page_ref_unfreeze(s #endif -static inline int page_ref_count(struct page *page) +static inline int page_ref_count(const struct page *page) { return atomic_read(&page->_refcount); } -static inline int page_count(struct page *page) +static inline int page_count(const struct page *page) { return atomic_read(&compound_head(page)->_refcount); } _ Patches currently in -mm which might be from willy@infradead.org are mm-mark-idle-page-tracking-as-broken.patch