File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -1629,11 +1629,6 @@ unsigned long shmem_allowable_huge_orders(struct inode *inode,
1629
1629
unsigned long mask = READ_ONCE (huge_shmem_orders_always );
1630
1630
unsigned long within_size_orders = READ_ONCE (huge_shmem_orders_within_size );
1631
1631
unsigned long vm_flags = vma -> vm_flags ;
1632
- /*
1633
- * Check all the (large) orders below HPAGE_PMD_ORDER + 1 that
1634
- * are enabled for this vma.
1635
- */
1636
- unsigned long orders = BIT (PMD_ORDER + 1 ) - 1 ;
1637
1632
loff_t i_size ;
1638
1633
int order ;
1639
1634
@@ -1678,7 +1673,7 @@ unsigned long shmem_allowable_huge_orders(struct inode *inode,
1678
1673
if (global_huge )
1679
1674
mask |= READ_ONCE (huge_shmem_orders_inherit );
1680
1675
1681
- return orders & mask ;
1676
+ return THP_ORDERS_ALL_FILE_DEFAULT & mask ;
1682
1677
}
1683
1678
1684
1679
static unsigned long shmem_suitable_orders (struct inode * inode , struct vm_fault * vmf ,
You can’t perform that action at this time.
0 commit comments