Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 332360
b: refs/heads/master
c: 5d3a551
h: refs/heads/master
v: v3
  • Loading branch information
Will Deacon authored and Linus Torvalds committed Oct 9, 2012
1 parent 3fcec94 commit b0d1cde
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 01dc52ebdf472f77cca623ca693ca24cfc0f1bbe
refs/heads/master: 5d3a551c28c6669dc43be40d8fafafbc2ec8f42b
4 changes: 4 additions & 0 deletions trunk/arch/ia64/include/asm/hugetlb.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,8 @@ static inline void arch_release_hugepage(struct page *page)
{
}

static inline void arch_clear_hugepage_flags(struct page *page)
{
}

#endif /* _ASM_IA64_HUGETLB_H */
4 changes: 4 additions & 0 deletions trunk/arch/mips/include/asm/hugetlb.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,8 @@ static inline void arch_release_hugepage(struct page *page)
{
}

static inline void arch_clear_hugepage_flags(struct page *page)
{
}

#endif /* __ASM_HUGETLB_H */
4 changes: 4 additions & 0 deletions trunk/arch/powerpc/include/asm/hugetlb.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@ static inline void arch_release_hugepage(struct page *page)
{
}

static inline void arch_clear_hugepage_flags(struct page *page)
{
}

#else /* ! CONFIG_HUGETLB_PAGE */
static inline void flush_hugetlb_page(struct vm_area_struct *vma,
unsigned long vmaddr)
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/s390/include/asm/hugetlb.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ static inline int prepare_hugepage_range(struct file *file,
}

#define hugetlb_prefault_arch_hook(mm) do { } while (0)
#define arch_clear_hugepage_flags(page) do { } while (0)

int arch_prepare_hugepage(struct page *page);
void arch_release_hugepage(struct page *page);
Expand Down
6 changes: 6 additions & 0 deletions trunk/arch/sh/include/asm/hugetlb.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#ifndef _ASM_SH_HUGETLB_H
#define _ASM_SH_HUGETLB_H

#include <asm/cacheflush.h>
#include <asm/page.h>


Expand Down Expand Up @@ -89,4 +90,9 @@ static inline void arch_release_hugepage(struct page *page)
{
}

static inline void arch_clear_hugepage_flags(struct page *page)
{
clear_bit(PG_dcache_clean, &page->flags);
}

#endif /* _ASM_SH_HUGETLB_H */
4 changes: 4 additions & 0 deletions trunk/arch/sparc/include/asm/hugetlb.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,8 @@ static inline void arch_release_hugepage(struct page *page)
{
}

static inline void arch_clear_hugepage_flags(struct page *page)
{
}

#endif /* _ASM_SPARC64_HUGETLB_H */
4 changes: 4 additions & 0 deletions trunk/arch/tile/include/asm/hugetlb.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ static inline void arch_release_hugepage(struct page *page)
{
}

static inline void arch_clear_hugepage_flags(struct page *page)
{
}

#ifdef CONFIG_HUGETLB_SUPER_PAGES
static inline pte_t arch_make_huge_pte(pte_t entry, struct vm_area_struct *vma,
struct page *page, int writable)
Expand Down
4 changes: 4 additions & 0 deletions trunk/arch/x86/include/asm/hugetlb.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,8 @@ static inline void arch_release_hugepage(struct page *page)
{
}

static inline void arch_clear_hugepage_flags(struct page *page)
{
}

#endif /* _ASM_X86_HUGETLB_H */
1 change: 1 addition & 0 deletions trunk/mm/hugetlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,7 @@ static void free_huge_page(struct page *page)
h->surplus_huge_pages--;
h->surplus_huge_pages_node[nid]--;
} else {
arch_clear_hugepage_flags(page);
enqueue_huge_page(h, page);
}
spin_unlock(&hugetlb_lock);
Expand Down

0 comments on commit b0d1cde

Please sign in to comment.