From cad525f90b19b91af75fa9e08010327d3d5b0322 Mon Sep 17 00:00:00 2001 From: braam Date: Sun, 14 Oct 2001 23:49:06 +0000 Subject: [PATCH] high memory fixes --- lustre/obdfs/rw.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lustre/obdfs/rw.c b/lustre/obdfs/rw.c index 316be95..347ba2a 100644 --- a/lustre/obdfs/rw.c +++ b/lustre/obdfs/rw.c @@ -43,7 +43,6 @@ static int obdfs_brw(int rw, struct inode *inode, struct page *page, int create) obd_count num_obdo = 1; obd_count bufs_per_obdo = 1; struct obdo *oa; - char *buf = (char *)page_address(page); obd_size count = PAGE_SIZE; obd_off offset = ((obd_off)page->index) << PAGE_SHIFT; obd_flag flags = create ? OBD_BRW_CREATE : 0; @@ -64,7 +63,7 @@ static int obdfs_brw(int rw, struct inode *inode, struct page *page, int create) obdfs_from_inode(oa, inode); err = IOPS(inode, brw)(rw, IID(inode), num_obdo, &oa, &bufs_per_obdo, - &buf, &count, &offset, &flags); + &page, &count, &offset, &flags); if ( !err ) obdfs_to_inode(inode, oa); /* copy o_blocks to i_blocks */ @@ -246,7 +245,7 @@ int obdfs_do_vec_wr(struct inode **inodes, obd_count num_io, } err = IOPS(inodes[0], brw)(WRITE, IID(inodes[0]), num_obdos, obdos, - oa_bufs, bufs, counts, offsets, flags); + oa_bufs, pages, counts, offsets, flags); CDEBUG(D_INFO, "BRW done\n"); /* release the pages from the page cache */ -- 1.8.3.1