X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=mm%2Fvmscan.c;h=440a733fe2e9ea3d1374d4fd72e7bba60e268e05;hb=fadd8fbd153c12963f8fe3c9ef7f8967f286f98b;hp=acdf001d6941fae7bf35f4bbbce9b0bcc15aa1ee;hpb=ca9ba4471c1203bb6e759b76e83167fec54fe590;p=linux-2.6 diff --git a/mm/vmscan.c b/mm/vmscan.c index acdf001d69..440a733fe2 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -1061,7 +1061,7 @@ static unsigned long balance_pgdat(pg_data_t *pgdat, unsigned long nr_pages, loop_again: total_scanned = 0; nr_reclaimed = 0; - sc.may_writepage = !laptop_mode, + sc.may_writepage = !laptop_mode; sc.nr_mapped = read_page_state(nr_mapped); inc_page_state(pageoutrun); @@ -1328,7 +1328,7 @@ repeat: not required for correctness. So if the last cpu in a node goes away, we get changed to run anywhere: as the first one comes back, restore their cpu bindings. */ -static int __devinit cpu_callback(struct notifier_block *nfb, +static int cpu_callback(struct notifier_block *nfb, unsigned long action, void *hcpu) { pg_data_t *pgdat;