The interface of flush_cache_page

NIIBE Yutaka (gniibe@m17n.org)
Sat, 4 Aug 2001 15:10:47 +0900 (JST)


Currently, the interface is like this:

void flush_cache_page(struct vm_area_struct *vma, unsigned long address)

This doesn't work well for (virtuall indexed) physically tagged
architecture.

When it is called from vmscan.c:try_to_swap_out, as the PTE is cleared
to be zero, we have no way to know what phisical address to match.

How about adding argument: struct page *page? With that, we have
information of physical memory.

-- 
-
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/