* [TRIVIAL PATCH 2.5.48] Use max_t() instead of max() in mm/vmscan.c
@ 2002-11-21 22:32 Bob Miller
0 siblings, 0 replies; only message in thread
From: Bob Miller @ 2002-11-21 22:32 UTC (permalink / raw)
To: trivial; +Cc: linux-kernel
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-11-21 22:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-21 22:32 [TRIVIAL PATCH 2.5.48] Use max_t() instead of max() in mm/vmscan.c Bob Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®