]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - mm/shmem.c
Merge tag 'ext4_for_linus_stable' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux.git] / mm / shmem.c
index f4dce9c8670dc2fff58c8ea6e41445c5b7a4269a..1bb3b8dc8bb2113a8232153d3ba9fc5e8c453471 100644 (file)
@@ -614,7 +614,7 @@ static int shmem_add_to_page_cache(struct page *page,
                if (xas_error(&xas))
                        goto unlock;
 next:
-               xas_store(&xas, page + i);
+               xas_store(&xas, page);
                if (++i < nr) {
                        xas_next(&xas);
                        goto next;