[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130807155416.GB25515@redhat.com>
Date: Wed, 7 Aug 2013 11:54:16 -0400
From: Dave Jones <davej@...hat.com>
To: Hillf Danton <dhillf@...il.com>
Cc: linux-mm@...ck.org, Linux Kernel <linux-kernel@...r.kernel.org>
Subject: Re: unused swap offset / bad page map.
void __lru_cache_add(struct page *page)
{
struct pagevec *pvec = &get_cpu_var(lru_add_pvec);
page_cache_get(page);
if (!pagevec_space(pvec))
__pagevec_lru_add(pvec);
pagevec_add(pvec, page);
put_cpu_var(lru_add_pvec);
}
I added a printk, and found that pagevec_add frequently returns 0. Is that ok ?
What happens to 'page' in this case ?
Dave
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists