Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6
* master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6: [SPARC64]: Fix off-by-1 error in TSB grow check.
This commit is contained in:
commit
329b10bb0f
|
@ -413,12 +413,12 @@ good_area:
|
||||||
#ifdef CONFIG_HUGETLB_PAGE
|
#ifdef CONFIG_HUGETLB_PAGE
|
||||||
mm_rss -= (mm->context.huge_pte_count * (HPAGE_SIZE / PAGE_SIZE));
|
mm_rss -= (mm->context.huge_pte_count * (HPAGE_SIZE / PAGE_SIZE));
|
||||||
#endif
|
#endif
|
||||||
if (unlikely(mm_rss >=
|
if (unlikely(mm_rss >
|
||||||
mm->context.tsb_block[MM_TSB_BASE].tsb_rss_limit))
|
mm->context.tsb_block[MM_TSB_BASE].tsb_rss_limit))
|
||||||
tsb_grow(mm, MM_TSB_BASE, mm_rss);
|
tsb_grow(mm, MM_TSB_BASE, mm_rss);
|
||||||
#ifdef CONFIG_HUGETLB_PAGE
|
#ifdef CONFIG_HUGETLB_PAGE
|
||||||
mm_rss = mm->context.huge_pte_count;
|
mm_rss = mm->context.huge_pte_count;
|
||||||
if (unlikely(mm_rss >=
|
if (unlikely(mm_rss >
|
||||||
mm->context.tsb_block[MM_TSB_HUGE].tsb_rss_limit))
|
mm->context.tsb_block[MM_TSB_HUGE].tsb_rss_limit))
|
||||||
tsb_grow(mm, MM_TSB_HUGE, mm_rss);
|
tsb_grow(mm, MM_TSB_HUGE, mm_rss);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue