Skip to contentSkip to conversation

mm-page_counter-remove-an-incorrect-call-to-propagate_protected_usage.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jan 20, 2022

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: mm/page_counter: remove an incorrect call to propagate_protected_usage()
has been removed from the -mm tree. Its filename was
mm-page_counter-remove-an-incorrect-call-to-propagate_protected_usage.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Donghai Qiao <[email protected]>
Subject: mm/page_counter: remove an incorrect call to propagate_protected_usage()

propagate_protected_usage() is called to propagate the usage change in the page_counter structure. But there is a call to this function from page_counter_try_charge() when there is actually no usage change. Hence this call should be removed.

---

 mm/page_counter.c |    1 -
 1 file changed, 1 deletion(-)
mm/page_counter.c renamed from mm/page_counter.c~mm-page_counter-remove-an-incorrect-call-to-propagate_protected_usage +0 -1
@@ -120,7 +120,6 @@ bool page_counter_try_charge(struct page
 		new = atomic_long_add_return(nr_pages, &c->usage);
 		if (new > c->max) {
 			atomic_long_sub(nr_pages, &c->usage);
-			propagate_protected_usage(c, new);
 			/*
 			 * This is racy, but we can live with some
 			 * inaccuracy in the failcnt which is only used

_

Patches currently in -mm which might be from [email protected] are