]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - fs/logfs/readwrite.c
logfs: fix "Kernel BUG at readwrite.c:1193"
[~shefty/rdma-dev.git] / fs / logfs / readwrite.c
index 6127baf0e1884760e757d656a772cf13d3953be2..ee99a9f5dfd3ac251b6b824a1032ce45b68b6ed7 100644 (file)
@@ -1994,6 +1994,9 @@ static int do_write_inode(struct inode *inode)
 
        /* FIXME: transaction is part of logfs_block now.  Is that enough? */
        err = logfs_write_buf(master_inode, page, 0);
+       if (err)
+               move_page_to_inode(inode, page);
+
        logfs_put_write_page(page);
        return err;
 }