]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - include/linux/page-flags.h
Merge remote-tracking branches 'regulator/fix/axp20x', 'regulator/fix/cpcap' and...
[mirror_ubuntu-bionic-kernel.git] / include / linux / page-flags.h
index 6b5818d6de322f8b5898e082ab4b3936042beb5a..d33e3280c8adc3b73a5426ec3bfdb6d0729d62ff 100644 (file)
@@ -326,11 +326,14 @@ PAGEFLAG_FALSE(HighMem)
 #ifdef CONFIG_SWAP
 static __always_inline int PageSwapCache(struct page *page)
 {
+#ifdef CONFIG_THP_SWAP
+       page = compound_head(page);
+#endif
        return PageSwapBacked(page) && test_bit(PG_swapcache, &page->flags);
 
 }
-SETPAGEFLAG(SwapCache, swapcache, PF_NO_COMPOUND)
-CLEARPAGEFLAG(SwapCache, swapcache, PF_NO_COMPOUND)
+SETPAGEFLAG(SwapCache, swapcache, PF_NO_TAIL)
+CLEARPAGEFLAG(SwapCache, swapcache, PF_NO_TAIL)
 #else
 PAGEFLAG_FALSE(SwapCache)
 #endif