author | Matt Fleming
<matt@console-pimps.org> 2009-10-06 21:22:34 UTC |
committer | Paul Mundt
<lethal@linux-sh.org> 2009-10-09 02:26:35 UTC |
parent | 2bea7ea7d57fd0022f4cd08ed3d4eb2d39a2920d |
arch/sh/mm/pmb.c | +7 | -0 |
diff --git a/arch/sh/mm/pmb.c b/arch/sh/mm/pmb.c index 58f935896b4..aade3110211 100644 --- a/arch/sh/mm/pmb.c +++ b/arch/sh/mm/pmb.c @@ -269,6 +269,13 @@ again: pmbp->link = pmbe; pmbp = pmbe; + + /* + * Instead of trying smaller sizes on every iteration + * (even if we succeed in allocating space), try using + * pmb_sizes[i].size again. + */ + i--; } if (size >= 0x1000000)