--- linux/fs/reiserfs/inode.c.orig      Wed Dec 19 16:26:05 2001
+++ linux/fs/reiserfs/inode.c   Wed Dec 19 16:32:02 2001
@@ -1772,6 +1772,7 @@
    int bytes_copied = 0 ;
    int copy_size ;

+    kmap(bh_result->b_page) ;
start_over:
    lock_kernel() ;
    journal_begin(&th, inode->i_sb, jbegin_count) ;
@@ -1844,10 +1845,8 @@

    /* this is where we fill in holes in the file. */
    if (use_get_block) {
-        kmap(bh_result->b_page) ;
       retval = reiserfs_get_block(inode, block, bh_result,
                                   GET_BLOCK_CREATE | GET_BLOCK_NO_ISEM) ;
-        kunmap(bh_result->b_page) ;
       if (!retval) {
           if (!buffer_mapped(bh_result) || bh_result->b_blocknr == 0) {
               /* get_block failed to find a mapped unformatted node. */
@@ -1856,6 +1855,7 @@
           }
       }
    }
+    kunmap(bh_result->b_page) ;
    return retval ;
}