summaryrefslogtreecommitdiff
path: root/mm/filemap.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/filemap.c')
-rw-r--r--mm/filemap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/filemap.c b/mm/filemap.c
index 88a2ed008474..7eb4637ea199 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -2567,7 +2567,7 @@ retry:
goto err;
}
- trace_mm_filemap_get_pages(mapping, index, last_index);
+ trace_mm_filemap_get_pages(mapping, index, last_index - 1);
return 0;
err:
if (err < 0)