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 af324e7 commit 33a751eCopy full SHA for 33a751e
mm/filemap.c
@@ -3104,7 +3104,7 @@ static struct file *do_sync_mmap_readahead(struct vm_fault *vmf)
3104
3105
#ifdef CONFIG_TRANSPARENT_HUGEPAGE
3106
/* Use the readahead code, even if readahead is disabled */
3107
- if (vm_flags & VM_HUGEPAGE) {
+ if ((vm_flags & VM_HUGEPAGE) && HPAGE_PMD_ORDER <= MAX_PAGECACHE_ORDER) {
3108
fpin = maybe_unlock_mmap_for_io(vmf, fpin);
3109
ractl._index &= ~((unsigned long)HPAGE_PMD_NR - 1);
3110
ra->size = HPAGE_PMD_NR;
0 commit comments