unsigned long obd_timeout = 100;
char obd_recovery_upcall[128] = "/usr/lib/lustre/ha_assist";
+int obdclass_highmem = 0;
+
extern struct obd_type *class_nm_to_type(char *nm);
/* opening /dev/obd */
off = data->ioc_offset;
for (j = 0, pgp = pga; j < pages; j++, off += PAGE_SIZE, pgp++){
- pgp->pg = alloc_pages(GFP_KERNEL, 0);
+ pgp->pg = alloc_pages(obdclass_highmem ? GFP_HIGHUSER : GFP_KERNEL, 0);
if (!pgp->pg) {
CERROR("no memory for brw pages\n");
GOTO(brw_cleanup, err = -ENOMEM);
* by Peter Braam <braam@clusterfs.com>
*/
-static char rcsid[] __attribute ((unused)) = "$Id: echo.c,v 1.24 2002/08/19 23:45:00 adilger Exp $";
-#define OBDECHO_VERSION "$Revision: 1.24 $"
+static char rcsid[] __attribute ((unused)) = "$Id: echo.c,v 1.25 2002/08/21 22:17:39 eeb Exp $";
+#define OBDECHO_VERSION "$Revision: 1.25 $"
#define EXPORT_SYMTAB
static atomic_t echo_page_rws;
static atomic_t echo_getattrs;
+int obdecho_highmem = 0;
+
#define ECHO_PROC_STAT "sys/obdecho"
int
int j;
for (j = 0 ; j < obj->ioo_bufcnt ; j++, nb++, r++) {
- r->page = alloc_pages(GFP_KERNEL, 0);
+ r->page = alloc_pages(obdecho_highmem ? GFP_HIGHUSER : GFP_KERNEL, 0);
if (!r->page) {
CERROR("can't get page %d/%d for id "LPU64"\n",
j, obj->ioo_bufcnt, obj->ioo_id);