Skip to contentSkip to conversation

mm-constify-page_count-and-page_ref_count.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jul 6, 2021

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

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)" <[email protected]>
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.

---

 include/linux/page_ref.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/linux/page_ref.h renamed from include/linux/page_ref.h~mm-constify-page_count-and-page_ref_count +2 -2
@@ -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 [email protected] are

mm-mark-idle-page-tracking-as-broken.patch