From: adilger Date: Tue, 20 Aug 2002 17:09:54 +0000 (+0000) Subject: Fix missing increment for multi-page I/O cleanup/verification, found by Eric. X-Git-Tag: 0.5.5~115 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=b7773c6292da3996254e9be08e9f73a19aca673d;p=fs%2Flustre-release.git Fix missing increment for multi-page I/O cleanup/verification, found by Eric. --- diff --git a/lustre/obdclass/class_obd.c b/lustre/obdclass/class_obd.c index a299cd4..0bac970 100644 --- a/lustre/obdclass/class_obd.c +++ b/lustre/obdclass/class_obd.c @@ -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);