Message ID | 20160916121034.GC72667@black.fi.intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/fs/ext4/readpage.c b/fs/ext4/readpage.c index 6d7cbddceeb2..75b2a7700c9a 100644 --- a/fs/ext4/readpage.c +++ b/fs/ext4/readpage.c @@ -140,7 +140,8 @@ int ext4_mpage_readpages(struct address_space *mapping, block_in_file = (sector_t)page->index << (PAGE_SHIFT - blkbits); - if (PageTransHuge(page)) { + if (PageTransHuge(page) && + IS_ENABLED(TRANSPARENT_HUGE_PAGECACHE)) { BUILD_BUG_ON(BIO_MAX_PAGES < HPAGE_PMD_NR); nr = HPAGE_PMD_NR * blocks_per_page; /* XXX: need a better solution ? */