[TRIVIAL PATCH 2.5.48] Use max_t() instead of max() in mm/vmscan.c

Bob Miller (rem@osdl.org)
Thu, 21 Nov 2002 14:32:34 -0800


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

diff -Nru a/mm/vmscan.c b/mm/vmscan.c
--- a/mm/vmscan.c Thu Nov 21 13:51:25 2002
+++ b/mm/vmscan.c Thu Nov 21 13:51:25 2002
@@ -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

-- 
Bob Miller					Email: rem@osdl.org
Open Source Development Lab			Phone: 503.626.2455 Ext. 17
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/