{
if (unlikely(PageTail(page))) {
/* __split_huge_page_refcount can run under us */
- struct page *page_head = compound_trans_head(page);
+ struct page *page_head = compound_head(page);
if (likely(page != page_head &&
get_page_unless_zero(page_head))) {
*/
unsigned long flags;
bool got = false;
- struct page *page_head = compound_trans_head(page);
+ struct page *page_head = compound_head(page);
if (likely(page != page_head && get_page_unless_zero(page_head))) {
/* Ref to put_compound_page() comment. */
#endif
/* Use a smaller cluster for small-memory machines */
+#ifdef CONFIG_ZRAM
+ page_cluster = 0; // disable swap read-ahead
+#else
if (megs < 16)
page_cluster = 2;
else
page_cluster = 3;
+#endif
/*
* Right now other parts of the system means that we
* _really_ don't want to cluster much more