projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
NET: sb1250-mac: Add missing MODULE_LICENSE()
[linux-2.6-block.git]
/
mm
/
swap_cgroup.c
diff --git
a/mm/swap_cgroup.c
b/mm/swap_cgroup.c
index 310ac0b8f9746c53eff9306be52585fb9094fc00..ac6318a064d35e6dcc5385d1dc8062ff6e46554c 100644
(file)
--- a/
mm/swap_cgroup.c
+++ b/
mm/swap_cgroup.c
@@
-201,6
+201,8
@@
void swap_cgroup_swapoff(int type)
struct page *page = map[i];
if (page)
__free_page(page);
+ if (!(i % SWAP_CLUSTER_MAX))
+ cond_resched();
}
vfree(map);
}