mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	sched/fair: use folio_xchg_access_time() in numa_hint_fault_latency()
Convert to use folio_xchg_access_time() in numa_hint_fault_latency(). Link: https://lkml.kernel.org/r/20231018140806.2783514-9-wangkefeng.wang@huawei.com Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com> Cc: David Hildenbrand <david@redhat.com> Cc: Huang Ying <ying.huang@intel.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Juri Lelli <juri.lelli@redhat.com> Cc: Matthew Wilcox (Oracle) <willy@infradead.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Vincent Guittot <vincent.guittot@linaro.org> Cc: Zi Yan <ziy@nvidia.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
		
							parent
							
								
									55c199385c
								
							
						
					
					
						commit
						0b201c3624
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -1727,7 +1727,7 @@ static int numa_hint_fault_latency(struct folio *folio)
 | 
				
			||||||
	int last_time, time;
 | 
						int last_time, time;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	time = jiffies_to_msecs(jiffies);
 | 
						time = jiffies_to_msecs(jiffies);
 | 
				
			||||||
	last_time = xchg_page_access_time(&folio->page, time);
 | 
						last_time = folio_xchg_access_time(folio, time);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return (time - last_time) & PAGE_ACCESS_TIME_MASK;
 | 
						return (time - last_time) & PAGE_ACCESS_TIME_MASK;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue