Skip to contentSkip to conversation

mm-remove-redundant-check-non_swap_entry.patch removed from -mm tree

merged [email protected] 1 participant 1 message Aug 10, 2020

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: mm: remove redundant check non_swap_entry()
has been removed from the -mm tree. Its filename was
mm-remove-redundant-check-non_swap_entry.patch

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

------------------------------------------------------
From: Ralph Campbell <[email protected]>
Subject: mm: remove redundant check non_swap_entry()

In zap_pte_range(), the check for non_swap_entry() and is_device_private_entry() is unnecessary since the latter is sufficient to determine if the page is a device private page. Remove the test for non_swap_entry() to simplify the code and for clarity.

---

 mm/memory.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/memory.c renamed from mm/memory.c~mm-remove-redundant-check-non_swap_entry +1 -1
@@ -1098,7 +1098,7 @@ again:
 		}
 
 		entry = pte_to_swp_entry(ptent);
-		if (non_swap_entry(entry) && is_device_private_entry(entry)) {
+		if (is_device_private_entry(entry)) {
 			struct page *page = device_private_entry_to_page(entry);
 
 			if (unlikely(details && details->check_mapping)) {

_

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

mm-migrate-optimize-migrate_vma_setup-for-holes.patch mm-migrate-optimize-migrate_vma_setup-for-holes-v2.patch mm-migrate-add-migrate-shared-test-for-migrate_vma_.patch