2.4.3-pre7 and p*_alloc

From: Russell King (rmk@arm.linux.org.uk)
Date: Sun Mar 25 2001 - 07:50:25 EST


Hi,

I'm looking at re-implementing the ARM page table allocation macros
required for 2.4.3-pre7, and have found the following:

pte_t *pte_alloc(struct mm_struct *mm, pmd_t *pmd, unsigned long address)
{
        if (!pmd_present(*pmd)) {

Why do we use pmd_present here instead of pmd_none? The same question
applies to __pmd_alloc.

--
Russell King (rmk@arm.linux.org.uk)                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Mar 31 2001 - 21:00:11 EST