Skip to contentSkip to conversation

Use max_t() instead of max() in mm/vmscan.c

PATCH New Bob Miller 1 participant 1 message Nov 21, 2002

Subsystems (3)
lore
Share & tools
lore

Bob Miller

author
#0 lore raw

PATCH 1/1 Use max_t() instead of max() in mm/vmscan.c

This change removes a "duplicate 'const'" compiler warning.

mm/vmscan.c +1 -1
diff -Nru a/mm/vmscan.c b/mm/vmscan.c
@@ -743,7 +743,7 @@
 			continue;	/* zone has enough memory */
 
 		to_reclaim = min(to_reclaim, SWAP_CLUSTER_MAX);
-		to_reclaim = max(to_reclaim, nr_pages);
+		to_reclaim = max_t(const int, to_reclaim, nr_pages);
 
 		/*
 		 * If we cannot reclaim `nr_pages' pages by scanning twice
Signature · 2 lines
Bob Miller					Email: [email protected]
Open Source Development Lab			Phone: 503.626.2455 Ext. 17