mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-07 12:44:32 -04:00
zswap: make zswap_load() take a folio
Only convert a few easy parts of this function to use the folio passed in; convert back to struct page for the majority of it. Removes three hidden calls to compound_head(). Link: https://lkml.kernel.org/r/20230715042343.434588-6-willy@infradead.org Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Cc: Christoph Hellwig <hch@infradead.org> Cc: Domenico Cerasuolo <cerasuolodomenico@gmail.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Nhat Pham <nphamcs@gmail.com> Cc: Vitaly Wool <vitaly.wool@konsulko.com> Cc: Yosry Ahmed <yosryahmed@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
committed by
Andrew Morton
parent
fbcec6a3a0
commit
ca54f6d89d
@@ -11,7 +11,7 @@ extern atomic_t zswap_stored_pages;
|
||||
#ifdef CONFIG_ZSWAP
|
||||
|
||||
bool zswap_store(struct folio *folio);
|
||||
bool zswap_load(struct page *page);
|
||||
bool zswap_load(struct folio *folio);
|
||||
void zswap_invalidate(int type, pgoff_t offset);
|
||||
void zswap_swapon(int type);
|
||||
void zswap_swapoff(int type);
|
||||
@@ -23,7 +23,7 @@ static inline bool zswap_store(struct folio *folio)
|
||||
return false;
|
||||
}
|
||||
|
||||
static inline bool zswap_load(struct page *page)
|
||||
static inline bool zswap_load(struct folio *folio)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user