Skip to contentSkip to conversation

mm-swapfilec-remove-the-extra-check-in-scan_swap_map_slots.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jun 2, 2020

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: mm/swapfile.c: remove the extra check in scan_swap_map_slots()
has been removed from the -mm tree. Its filename was
mm-swapfilec-remove-the-extra-check-in-scan_swap_map_slots.patch

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

------------------------------------------------------
From: Wei Yang <[email protected]>
Subject: mm/swapfile.c: remove the extra check in scan_swap_map_slots()

scan_swap_map_slots() is only called by scan_swap_map() and get_swap_pages(). Both ensure nr would not exceed SWAP_BATCH.

Just remove it.

---

 mm/swapfile.c |    3 ---
 1 file changed, 3 deletions(-)
mm/swapfile.c renamed from mm/swapfile.c~mm-swapfilec-remove-the-extra-check-in-scan_swap_map_slots +0 -2
@@ -740,9 +740,6 @@ static int scan_swap_map_slots(struct sw
 	int latency_ration = LATENCY_LIMIT;
 	int n_ret = 0;
 
-	if (nr > SWAP_BATCH)
-		nr = SWAP_BATCH;