]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
kclient: fix readpages zeroing bug
authorSage Weil <sage@newdream.net>
Thu, 5 Mar 2009 03:54:37 +0000 (19:54 -0800)
committerSage Weil <sage@newdream.net>
Thu, 5 Mar 2009 03:54:37 +0000 (19:54 -0800)
Move to the next page after zeroing the first partial page.

src/kernel/osd_client.c

index 1864fee93e68dc6b610a31ffec68fc92383bf20c..e9566a95e4d1bd12da7697bf3b4aed11cc6905db 100644 (file)
@@ -998,7 +998,7 @@ int ceph_osdc_readpages(struct ceph_osd_client *osdc,
                                       PAGE_CACHE_SIZE - (read & ~PAGE_CACHE_MASK),
                                       KM_USER0);
 #endif
-
+                       read += PAGE_CACHE_SIZE;
                }
                for (i = read >> PAGE_CACHE_SHIFT; i < contig_pages; i++) {
                        page = req->r_pages[i];