Whamcloud - gitweb
Fix missing increment for multi-page I/O cleanup/verification, found by Eric.
authoradilger <adilger>
Tue, 20 Aug 2002 17:09:54 +0000 (17:09 +0000)
committeradilger <adilger>
Tue, 20 Aug 2002 17:09:54 +0000 (17:09 +0000)
lustre/obdclass/class_obd.c

index a299cd4..0bac970 100644 (file)
@@ -527,7 +527,7 @@ static int obd_class_ioctl (struct inode * inode, struct file * filp,
                 err = obd_brw(rw, &conn, &smd, j, pga, ll_sync_io_cb, cbd);
                 EXIT;
         brw_cleanup:
-                for (j = 0, pgp = pga; j < pages; j++) {
+                for (j = 0, pgp = pga; j < pages; j++, pgp++) {
                         if (pgp->pg != NULL) {
                                 int err2;
                                 void *addr = kmap(pgp->pg);