Whamcloud - gitweb
Only overwrite the magics, not the entire page to avoid excess CPU usage.
authoradilger <adilger>
Thu, 29 Aug 2002 01:18:27 +0000 (01:18 +0000)
committeradilger <adilger>
Thu, 29 Aug 2002 01:18:27 +0000 (01:18 +0000)
lustre/obdclass/class_obd.c
lustre/obdecho/echo.c

index 8ee619e..3e633f3 100644 (file)
@@ -537,7 +537,9 @@ static int obd_class_ioctl (struct inode * inode, struct file * filp,
                                         page_debug_setup(addr, pgp->count,
                                                          pgp->off, id);
                                 else
-                                        memset(addr, 0xba, PAGE_SIZE);
+                                        page_debug_setup(addr, pgp->count,
+                                                         0xdeadbeef00c0ffee,
+                                                         0xdeadbeef00c0ffee);
                                 kunmap(pgp->pg);
                         }
                 }
index 3cb4117..96f5ba1 100644 (file)
@@ -11,8 +11,8 @@
  * by Peter Braam <braam@clusterfs.com>
  */
 
-static char rcsid[] __attribute ((unused)) = "$Id: echo.c,v 1.27 2002/08/29 00:51:53 adilger Exp $";
-#define OBDECHO_VERSION "$Revision: 1.27 $"
+static char rcsid[] __attribute ((unused)) = "$Id: echo.c,v 1.28 2002/08/29 01:18:26 adilger Exp $";
+#define OBDECHO_VERSION "$Revision: 1.28 $"
 
 #define EXPORT_SYMTAB
 
@@ -174,7 +174,9 @@ int echo_preprw(int cmd, struct lustre_handle *conn, int objcount,
                                 page_debug_setup(r->addr, r->len, r->offset,
                                                  obj->ioo_id);
                         else if (verify)
-                                memset(r->addr, 0xec, r->len);
+                                page_debug_setup(r->addr, r->len,
+                                                 0xecc0ecc0ecc0ecc0,
+                                                 0xecc0ecc0ecc0ecc0);
                 }
         }
         CDEBUG(D_PAGE, "%ld pages allocated after prep\n", echo_pages);