fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git] / include / asm-alpha / pgalloc.h
index 2ef3066..471864e 100644 (file)
@@ -1,7 +1,6 @@
 #ifndef _ALPHA_PGALLOC_H
 #define _ALPHA_PGALLOC_H
 
-#include <linux/config.h>
 #include <linux/mm.h>
 #include <linux/mmzone.h>
 
@@ -40,9 +39,7 @@ pgd_free(pgd_t *pgd)
 static inline pmd_t *
 pmd_alloc_one(struct mm_struct *mm, unsigned long address)
 {
-       pmd_t *ret = (pmd_t *)__get_free_page(GFP_KERNEL|__GFP_REPEAT);
-       if (ret)
-               clear_page(ret);
+       pmd_t *ret = (pmd_t *)__get_free_page(GFP_KERNEL|__GFP_REPEAT|__GFP_ZERO);
        return ret;
 }
 
@@ -66,7 +63,7 @@ pte_alloc_one(struct mm_struct *mm, unsigned long addr)
        pte_t *pte = pte_alloc_one_kernel(mm, addr);
        if (pte)
                return virt_to_page(pte);
-       return 0;
+       return NULL;
 }
 
 static inline void