Is this routine tested to be working? At least passing a page
index as a full virtual address to flush_cache_page() looks suspicious.
In addition, I am not sure if the vma struct will show up in the
"shared" list _if_ the page is only mapped in one user process and
in kernel (for example, those pages you obtain through get_user_pages()
call).
I am not familiar with 2.5 kernel. I was under impression that reverse
page mapping might provide an easy solution to this problem.
Jun
-
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/