From: adilger Date: Wed, 4 Sep 2002 01:57:22 +0000 (+0000) Subject: "fix" the page->index value for direct_IO pages. X-Git-Tag: 0.5.6~7 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=b0f0814379036a6d04260bed87c2f7bb39252805;p=fs%2Flustre-release.git "fix" the page->index value for direct_IO pages. --- diff --git a/lustre/llite/rw.c b/lustre/llite/rw.c index 823d18a..3e1d53f 100644 --- a/lustre/llite/rw.c +++ b/lustre/llite/rw.c @@ -265,6 +265,8 @@ int ll_direct_IO(int rw, struct inode *inode, struct kiobuf *iobuf, * instead of "blocknr" because ->index contains garbage. */ for (i = 0; i < bufs_per_obdo; i++, blocknr++) { + iobuf->maplist[i]->index = blocknr; /* XXX blksz = PAGE_SIZE? */ + pga[i].pg = iobuf->maplist[i]; pga[i].count = PAGE_SIZE; pga[i].off = (obd_off)blocknr << PAGE_SHIFT;