[PATCH] vm: try_to_free_pages unused argument
try_to_free_pages accepts a third argument, order, but hasn't used it since before 2.6.0. The following patch removes the argument and updates all the calls to try_to_free_pages. Signed-off-by: Darren Hart <dvhltc@us.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
cbe37d0937
commit
1ad539b2bd
@ -859,7 +859,7 @@ rebalance:
|
||||
reclaim_state.reclaimed_slab = 0;
|
||||
p->reclaim_state = &reclaim_state;
|
||||
|
||||
did_some_progress = try_to_free_pages(zones, gfp_mask, order);
|
||||
did_some_progress = try_to_free_pages(zones, gfp_mask);
|
||||
|
||||
p->reclaim_state = NULL;
|
||||
p->flags &= ~PF_MEMALLOC;
|
||||
|
@ -919,8 +919,7 @@ shrink_caches(struct zone **zones, struct scan_control *sc)
|
||||
* holds filesystem locks which prevent writeout this might not work, and the
|
||||
* allocation attempt will fail.
|
||||
*/
|
||||
int try_to_free_pages(struct zone **zones,
|
||||
unsigned int gfp_mask, unsigned int order)
|
||||
int try_to_free_pages(struct zone **zones, unsigned int gfp_mask)
|
||||
{
|
||||
int priority;
|
||||
int ret = 0;
|
||||
|
Reference in New Issue
Block a user