From c31a0aceb4ac81880bc626d560e29eae4e39de33 Mon Sep 17 00:00:00 2001 From: adilger Date: Thu, 29 Aug 2002 01:18:27 +0000 Subject: [PATCH] Only overwrite the magics, not the entire page to avoid excess CPU usage. --- lustre/obdclass/class_obd.c | 4 +++- lustre/obdecho/echo.c | 8 +++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/lustre/obdclass/class_obd.c b/lustre/obdclass/class_obd.c index 8ee619e..3e633f3 100644 --- a/lustre/obdclass/class_obd.c +++ b/lustre/obdclass/class_obd.c @@ -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); } } diff --git a/lustre/obdecho/echo.c b/lustre/obdecho/echo.c index 3cb4117..96f5ba1 100644 --- a/lustre/obdecho/echo.c +++ b/lustre/obdecho/echo.c @@ -11,8 +11,8 @@ * by Peter Braam */ -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); -- 1.8.3.1