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:
c1f63dd
)
Same fix for lustre_get_page_write().
author
adilger
<adilger>
Mon, 10 Jun 2002 22:39:21 +0000
(22:39 +0000)
committer
adilger
<adilger>
Mon, 10 Jun 2002 22:39:21 +0000
(22:39 +0000)
lustre/lib/page.c
patch
|
blob
|
history
diff --git
a/lustre/lib/page.c
b/lustre/lib/page.c
index
af2191e
..
334b326
100644
(file)
--- a/
lustre/lib/page.c
+++ b/
lustre/lib/page.c
@@
-173,6
+173,7
@@
struct page *lustre_get_page_write(struct inode *inode, unsigned long index)
page = grab_cache_page(mapping, index); /* locked page */
if (!IS_ERR(page)) {
+ kmap(page);
/* Note: Called with "O" and "PAGE_SIZE" this is essentially
* a no-op for most filesystems, because we write the whole
* page. For partial-page I/O this will read in the page.
@@
-190,8
+191,6
@@
struct page *lustre_get_page_write(struct inode *inode, unsigned long index)
LBUG();
GOTO(err_unlock, rc = -EIO);
}
-
- kmap(page);
}
return page;