summaryrefslogtreecommitdiffstats
path: root/mm/swapfile.c
diff options
context:
space:
mode:
authorNishanth Aravamudan2005-09-10 09:27:25 +0200
committerLinus Torvalds2005-09-10 19:06:37 +0200
commit13e4b57f6a4e23ceb99794a650d777e74831f4a6 (patch)
treea585fdc3a2374dbedcf0114fa3c38d2fb7920774 /mm/swapfile.c
parent[PATCH] kernel: fix-up schedule_timeout() usage (diff)
downloadkernel-qcow2-linux-13e4b57f6a4e23ceb99794a650d777e74831f4a6.tar.gz
kernel-qcow2-linux-13e4b57f6a4e23ceb99794a650d777e74831f4a6.tar.xz
kernel-qcow2-linux-13e4b57f6a4e23ceb99794a650d777e74831f4a6.zip
[PATCH] mm: fix-up schedule_timeout() usage
Use schedule_timeout_{,un}interruptible() instead of set_current_state()/schedule_timeout() to reduce kernel size. Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm/swapfile.c')
-rw-r--r--mm/swapfile.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mm/swapfile.c b/mm/swapfile.c
index 4b6e8bf986bc..0184f510aace 100644
--- a/mm/swapfile.c
+++ b/mm/swapfile.c
@@ -1153,8 +1153,7 @@ asmlinkage long sys_swapoff(const char __user * specialfile)
p->highest_bit = 0; /* cuts scans short */
while (p->flags >= SWP_SCANNING) {
spin_unlock(&swap_lock);
- set_current_state(TASK_UNINTERRUPTIBLE);
- schedule_timeout(1);
+ schedule_timeout_uninterruptible(1);
spin_lock(&swap_lock);
}