Whamcloud - gitweb
Don't kmap() a this page twice. We kunmap() in lustre_put_page() so we
authoradilger <adilger>
Mon, 10 Jun 2002 22:37:52 +0000 (22:37 +0000)
committeradilger <adilger>
Mon, 10 Jun 2002 22:37:52 +0000 (22:37 +0000)
do the kmap() in all cases.

lustre/lib/page.c

index a1e477c..af2191e 100644 (file)
@@ -156,7 +156,6 @@ struct page *lustre_get_page_read(struct inode *inode, unsigned long index)
                         CERROR("page index %lu has error\n", index);
                         GOTO(err_page, rc = -EIO);
                 }
-                kmap(page);
         }
         return page;