Skip to contentSkip to conversation

mm, shmem: Add shmem resident memory accounting

PATCH Hillf Danton 1 participant 1 message Feb 27, 2015 Memory management

lore
Share & tools
lore
#0 lore raw

Review static void smaps_pte_entry(pte_t *pte, unsigned long addr, · line 508

Quoted 8 lines
(quoted diff) +1 -0
@@ -501,6 +502,7 @@ static void smaps_pte_entry(pte_t *pte, unsigned long addr,
 					pte_none(*pte) && vma->vm_file) {
 		struct address_space *mapping =
 			file_inode(vma->vm_file)->i_mapping;
+		pgoff_t pgoff = linear_page_index(vma, addr);
 
 		/*
 		 * shmem does not use swap pte's so we have to consult

This hunk should go to patch 2/4
Hillf