mm-smaps-use-vma-vm_pgoff-directly-when-counting-partial-swap.patch removed from -mm tree
The patch titled
Subject: mm/smaps: use vma->vm_pgoff directly when counting partial swap
has been removed from the -mm tree. Its filename was
mm-smaps-use-vma-vm_pgoff-directly-when-counting-partial-swap.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Peter Xu <[email protected]>
Subject: mm/smaps: use vma->vm_pgoff directly when counting partial swap
As it's trying to cover the whole vma anyways, use direct vm_pgoff value and vma_pages() rather than linear_page_index.
Signed-off-by Peter Xu <[email protected]>
Reviewed-by Vlastimil Babka <[email protected]>
Cc Hugh Dickins <[email protected]>
Cc Andrea Arcangeli <[email protected]>
Cc Matthew Wilcox <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
mm/shmem.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
mm/shmem.c renamed from mm/shmem.c~mm-smaps-use-vma-vm_pgoff-directly-when-counting-partial-swap +2 -3
@@ -856,9 +856,8 @@ unsigned long shmem_swap_usage(struct vmreturn swapped <<PAGE_SHIFT ;/* Here comes the more involved part */ -return shmem_partial_swap_usage (mapping, -linear_page_index (vma, vma->vm_start), -linear_page_index (vma, vma->vm_end)); +return shmem_partial_swap_usage (mapping, vma->vm_pgoff, + vma->vm_pgoff +vma_pages (vma)); }/*
_
Patches currently in -mm which might be from [email protected] are