patch-2.3.45 linux/include/asm-alpha/pgtable.h

Next file: linux/include/asm-arm/hardirq.h
Previous file: linux/fs/umsdos/namei.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.44/linux/include/asm-alpha/pgtable.h linux/include/asm-alpha/pgtable.h
@@ -249,8 +249,9 @@
 #define pgd_offset_k(address) pgd_offset(&init_mm, address)
 
 /* to find an entry in a page-table-directory. */
-#define __pgd_offset(address)	((address >> PGDIR_SHIFT) & PTRS_PER_PGD)
-#define pgd_offset(mm, address)	((mm)->pgd+__pgd_offset(address))
+#define pgd_index(address)	((address >> PGDIR_SHIFT) & PTRS_PER_PGD)
+#define __pgd_offset(address)	pgd_index(address)
+#define pgd_offset(mm, address)	((mm)->pgd+pgd_index(address))
 
 /* Find an entry in the second-level page table.. */
 extern inline pmd_t * pmd_offset(pgd_t * dir, unsigned long address)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)