Is it enough to check the mapping field (struct address_space) of struct page to figure out if the page is used as page cache?
Something like:
if (page->mapping) {
...
}
BR,
Mauricio Lin.
Yahoo! Search
Dê uma espiadinha e saiba tudo sobre o Big Brother Brasil.