To kunmap_atomic or not to kunmap_atomic ?

From: Zoltan Menyhart
Date: Thu Apr 01 2004 - 11:31:10 EST


I can see a couple of functions, like

static inline struct mm_struct * ptep_to_mm(pte_t * ptep)
{
struct page * page = kmap_atomic_to_page(ptep);
return (struct mm_struct *) page->mapping;
}

in "rmap.?" without invoking "kunmap_atomic()".
Is it intentional?
What if for an architecture "kunmap_atomic()" is not a no-op ?
Thanks,

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