aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-04-18 22:05:17 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-04-18 22:05:17 -0700
commitef29bf03ef66e8c00f2917668ffb0c15e75bce8b (patch)
treeb62f856b152fb987505b8da901989629927e7509 /mm
parent8488dd95ee9f05ba43f7f41e99ed34da00c313a6 (diff)
downloadhistory-ef29bf03ef66e8c00f2917668ffb0c15e75bce8b.tar.gz
[PATCH] Rename PF_IOTHREAD to PF_NOFREEZE
From: Nigel Cunningham <ncunningham@users.sourceforge.net> A few weeks ago, Pavel and I agreed that PF_IOTHREAD should be renamed to PF_NOFREEZE. This reflects the fact that some threads so marked aren't actually used for IO while suspending, but simply shouldn't be frozen. This patch, against 2.6.5 vanilla, applies that change. In the refrigerator calls, the actual value doesn't matter (so long as it's non-zero) and it makes more sense to use PF_FREEZE so I've used that.
Diffstat (limited to 'mm')
-rw-r--r--mm/pdflush.c2
-rw-r--r--mm/vmscan.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/mm/pdflush.c b/mm/pdflush.c
index c2f49a1b38b8f5..1e682bed9a5eee 100644
--- a/mm/pdflush.c
+++ b/mm/pdflush.c
@@ -107,7 +107,7 @@ static int __pdflush(struct pdflush_work *my_work)
schedule();
if (current->flags & PF_FREEZE) {
- refrigerator(PF_IOTHREAD);
+ refrigerator(PF_FREEZE);
spin_lock_irq(&pdflush_lock);
continue;
}
diff --git a/mm/vmscan.c b/mm/vmscan.c
index 55d8feae21a285..f78921216cfb38 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -1067,7 +1067,7 @@ int kswapd(void *p)
struct page_state ps;
if (current->flags & PF_FREEZE)
- refrigerator(PF_IOTHREAD);
+ refrigerator(PF_FREEZE);
prepare_to_wait(&pgdat->kswapd_wait, &wait, TASK_INTERRUPTIBLE);
schedule();
finish_wait(&pgdat->kswapd_wait, &wait);