linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* find_get_swapcache_page() question
@ 2001-08-28  0:27 Marcelo Tosatti
  2001-08-28 11:27 ` Hugh Dickins
  0 siblings, 1 reply; 4+ messages in thread
From: Marcelo Tosatti @ 2001-08-28  0:27 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: Hugh Dickins, lkml


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);


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-08-28 16:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-28  0:27 find_get_swapcache_page() question Marcelo Tosatti
2001-08-28 11:27 ` Hugh Dickins
2001-08-28 15:45   ` Rik van Riel
2001-08-28 16:27     ` Hugh Dickins

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).