Re: [RFC][PATCH 2/7] make 'struct page' and swp_entry_t variants of swapcache_free().

2013-05-14 Thread Mel Gorman
On Tue, May 07, 2013 at 02:19:57PM -0700, Dave Hansen wrote: > > From: Dave Hansen > > swapcache_free() takes two arguments: > > void swapcache_free(swp_entry_t entry, struct page *page) > > Most of its callers (5/7) are from error handling paths haven't even > instantiated a page, so th

[RFC][PATCH 2/7] make 'struct page' and swp_entry_t variants of swapcache_free().

2013-05-07 Thread Dave Hansen
From: Dave Hansen swapcache_free() takes two arguments: void swapcache_free(swp_entry_t entry, struct page *page) Most of its callers (5/7) are from error handling paths haven't even instantiated a page, so they pass page=NULL. Both of the callers that call in with a 'struct page' cre