ALSA: pcm: potential uninitialized return values
[pandora-kernel.git] / mm / page_cgroup.c
index 6f4ef53..c7a7e01 100644 (file)
@@ -399,6 +399,9 @@ static int swap_cgroup_prepare(int type)
                if (!page)
                        goto not_enough_page;
                ctrl->map[idx] = page;
+
+               if (!(idx % SWAP_CLUSTER_MAX))
+                       cond_resched();
        }
        return 0;
 not_enough_page: