git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vserver 1.9.5.x5
[linux-2.6.git]
/
include
/
asm-sh
/
pgalloc.h
diff --git
a/include/asm-sh/pgalloc.h
b/include/asm-sh/pgalloc.h
index
8a1b359
..
1a99808
100644
(file)
--- a/
include/asm-sh/pgalloc.h
+++ b/
include/asm-sh/pgalloc.h
@@
-44,9
+44,7
@@
static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm,
{
pte_t *pte;
{
pte_t *pte;
- pte = (pte_t *) __get_free_page(GFP_KERNEL | __GFP_REPEAT);
- if (pte)
- clear_page(pte);
+ pte = (pte_t *) __get_free_page(GFP_KERNEL | __GFP_REPEAT | __GFP_ZERO);
return pte;
}
return pte;
}
@@
-56,9
+54,7
@@
static inline struct page *pte_alloc_one(struct mm_struct *mm,
{
struct page *pte;
{
struct page *pte;
- pte = alloc_pages(GFP_KERNEL|__GFP_REPEAT, 0);
- if (pte)
- clear_page(page_address(pte));
+ pte = alloc_pages(GFP_KERNEL|__GFP_REPEAT|__GFP_ZERO, 0);
return pte;
}
return pte;
}