find_get_swapcache_page() question

From: Marcelo Tosatti (marcelo@conectiva.com.br)
Date: Mon Aug 27 2001 - 19:27:00 EST


Ingo,

Looking at find_get_swapcache_page(), I can't see _how_ we can find a
page on the swapper pagecache table that is not a swapcache page.

How that can happen ?

        spin_lock(&pagecache_lock);
        page = __find_page_nolock(mapping, offset, *hash);
        if (page) {
                spin_lock(&pagemap_lru_lock);
                if (PageSwapCache(page))
                        page_cache_get(page);
                else
                        page = NULL; <-----
                spin_unlock(&pagemap_lru_lock);
        }
        spin_unlock(&pagecache_lock);

-
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 : Fri Aug 31 2001 - 21:00:27 EST