aboutsummaryrefslogtreecommitdiffstats
path: root/mm/shmem.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/shmem.c')
-rw-r--r--mm/shmem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/shmem.c b/mm/shmem.c
index 1bb3b8dc8bb2..f4dce9c8670d 100644
--- a/mm/shmem.c
+++ b/mm/shmem.c
@@ -614,7 +614,7 @@ static int shmem_add_to_page_cache(struct page *page,
614 if (xas_error(&xas)) 614 if (xas_error(&xas))
615 goto unlock; 615 goto unlock;
616next: 616next:
617 xas_store(&xas, page); 617 xas_store(&xas, page + i);
618 if (++i < nr) { 618 if (++i < nr) {
619 xas_next(&xas); 619 xas_next(&xas);
620 goto next; 620 goto next;