From: Con Kolivas <kernel@kolivas.org>
To: linux-kernel@vger.kernel.org
Cc: akpm@osdl.org
Subject: [PATCH] vm: kswapd use pgdat
Date: Fri, 9 Sep 2005 01:36:00 +1000 [thread overview]
Message-ID: <200509090136.01034.kernel@kolivas.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 48 bytes --]
We don't fully utilise this pointer.
Con
---
[-- Attachment #2: vm-kswapd_use_pgdat.patch --]
[-- Type: text/x-diff, Size: 758 bytes --]
Use the pgdat pointer we've already defined in wakeup_kswapd
Signed-off-by: Con Kolivas <kernel@kolivas.org>
Index: linux-2.6.13-mm2/mm/vmscan.c
===================================================================
--- linux-2.6.13-mm2.orig/mm/vmscan.c 2005-09-09 01:27:33.000000000 +1000
+++ linux-2.6.13-mm2/mm/vmscan.c 2005-09-09 01:28:56.000000000 +1000
@@ -1263,9 +1263,9 @@ void wakeup_kswapd(struct zone *zone, in
pgdat->kswapd_max_order = order;
if (!cpuset_zone_allowed(zone, __GFP_HARDWALL))
return;
- if (!waitqueue_active(&zone->zone_pgdat->kswapd_wait))
+ if (!waitqueue_active(&pgdat->kswapd_wait))
return;
- wake_up_interruptible(&zone->zone_pgdat->kswapd_wait);
+ wake_up_interruptible(&pgdat->kswapd_wait);
}
#ifdef CONFIG_PM
reply other threads:[~2005-09-08 15:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200509090136.01034.kernel@kolivas.org \
--to=kernel@kolivas.org \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox