Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba1e8ec
)
"fix" the page->index value for direct_IO pages.
author
adilger
<adilger>
Wed, 4 Sep 2002 01:57:22 +0000
(
01:57
+0000)
committer
adilger
<adilger>
Wed, 4 Sep 2002 01:57:22 +0000
(
01:57
+0000)
lustre/llite/rw.c
patch
|
blob
|
history
diff --git
a/lustre/llite/rw.c
b/lustre/llite/rw.c
index
823d18a
..
3e1d53f
100644
(file)
--- 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;