We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b09d1f commit 77dc19fCopy full SHA for 77dc19f
mm/filemap.c
@@ -3154,7 +3154,7 @@ static struct file *do_sync_mmap_readahead(struct vm_fault *vmf)
3154
3155
#ifdef CONFIG_TRANSPARENT_HUGEPAGE
3156
/* Use the readahead code, even if readahead is disabled */
3157
- if (vm_flags & VM_HUGEPAGE) {
+ if ((vm_flags & VM_HUGEPAGE) && HPAGE_PMD_ORDER <= MAX_PAGECACHE_ORDER) {
3158
fpin = maybe_unlock_mmap_for_io(vmf, fpin);
3159
ractl._index &= ~((unsigned long)HPAGE_PMD_NR - 1);
3160
ra->size = HPAGE_PMD_NR;
0 commit comments