From 393b5499cb057d4f7b6e1f8878fa26c74b6fe96d Mon Sep 17 00:00:00 2001 From: adilger Date: Mon, 10 Jun 2002 22:39:21 +0000 Subject: [PATCH] Same fix for lustre_get_page_write(). --- lustre/lib/page.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lustre/lib/page.c b/lustre/lib/page.c index af2191e..334b326 100644 --- 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; -- 1.8.3.1