File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1681,6 +1681,7 @@ static unsigned long shmem_suitable_orders(struct inode *inode, struct vm_fault
1681
1681
unsigned long orders )
1682
1682
{
1683
1683
struct vm_area_struct * vma = vmf -> vma ;
1684
+ pgoff_t aligned_index ;
1684
1685
unsigned long pages ;
1685
1686
int order ;
1686
1687
@@ -1692,9 +1693,9 @@ static unsigned long shmem_suitable_orders(struct inode *inode, struct vm_fault
1692
1693
order = highest_order (orders );
1693
1694
while (orders ) {
1694
1695
pages = 1UL << order ;
1695
- index = round_down (index , pages );
1696
- if (!xa_find (& mapping -> i_pages , & index ,
1697
- index + pages - 1 , XA_PRESENT ))
1696
+ aligned_index = round_down (index , pages );
1697
+ if (!xa_find (& mapping -> i_pages , & aligned_index ,
1698
+ aligned_index + pages - 1 , XA_PRESENT ))
1698
1699
break ;
1699
1700
order = next_order (& orders , order );
1700
1701
}
You can’t perform that action at this time.
0 commit comments