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:
02fdd86
)
fix minor kmap/kunmap mismatch.
author
braam
<braam>
Thu, 8 Nov 2001 18:56:34 +0000
(18:56 +0000)
committer
braam
<braam>
Thu, 8 Nov 2001 18:56:34 +0000
(18:56 +0000)
lustre/obdfs/rw.c
patch
|
blob
|
history
diff --git
a/lustre/obdfs/rw.c
b/lustre/obdfs/rw.c
index
71b27da
..
4daede5
100644
(file)
--- a/
lustre/obdfs/rw.c
+++ b/
lustre/obdfs/rw.c
@@
-199,6
+199,7
@@
int obdfs_readpage(struct file *file, struct page *page)
if ( ((inode->i_size + PAGE_CACHE_SIZE -1)>>PAGE_SHIFT)
<= page->index) {
memset(kmap(page), 0, PAGE_CACHE_SIZE);
+ kunmap(page);
goto readpage_out;
}
@@
-551,7
+552,6
@@
int obdfs_commit_write(struct file *file, struct page *page, unsigned from, unsi
if (cache_writes == 0) {
rc = obdfs_commit_page(page, 1, from, to);
- kunmap(page);
}
if (len > inode->i_size) {