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 1f789a4 commit 3390916Copy full SHA for 3390916
mm/filemap.c
@@ -3124,7 +3124,7 @@ static struct file *do_sync_mmap_readahead(struct vm_fault *vmf)
3124
3125
#ifdef CONFIG_TRANSPARENT_HUGEPAGE
3126
/* Use the readahead code, even if readahead is disabled */
3127
- if (vm_flags & VM_HUGEPAGE) {
+ if ((vm_flags & VM_HUGEPAGE) && HPAGE_PMD_ORDER <= MAX_PAGECACHE_ORDER) {
3128
fpin = maybe_unlock_mmap_for_io(vmf, fpin);
3129
ractl._index &= ~((unsigned long)HPAGE_PMD_NR - 1);
3130
ra->size = HPAGE_PMD_NR;
0 commit comments