aboutsummaryrefslogtreecommitdiffstats
path: root/mm/swapfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/swapfile.c')
-rw-r--r--mm/swapfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/swapfile.c b/mm/swapfile.c
index d5eb2e85600b..e74112e8e5f4 100644
--- a/mm/swapfile.c
+++ b/mm/swapfile.c
@@ -938,7 +938,7 @@ static int unuse_vma(struct vm_area_struct *vma,
938 unsigned long addr, end, next; 938 unsigned long addr, end, next;
939 int ret; 939 int ret;
940 940
941 if (page->mapping) { 941 if (page_anon_vma(page)) {
942 addr = page_address_in_vma(page, vma); 942 addr = page_address_in_vma(page, vma);
943 if (addr == -EFAULT) 943 if (addr == -EFAULT)
944 return 0; 944 return 0;