]> git.hungrycats.org Git - linux/commitdiff
[PATCH] nfs_write.c warning
authorRusty Russell <rusty@rustcorp.com.au>
Sun, 9 Feb 2003 11:00:08 +0000 (03:00 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Sun, 9 Feb 2003 11:00:08 +0000 (03:00 -0800)
From:  William Lee Irwin III <wli@holomorphy.com>

  This trivially corrects an unused variable warning in nfs/write.c:

fs/nfs/write.c

index f3b92cd3f96bf2cccaa55fa5fbe9d168a8bf76d6..af674c98221ddbdb310a42886003fccfd2305d74 100644 (file)
@@ -829,7 +829,6 @@ nfs_writeback_done(struct rpc_task *task)
        struct nfs_write_data   *data = (struct nfs_write_data *) task->tk_calldata;
        struct nfs_writeargs    *argp = &data->args;
        struct nfs_writeres     *resp = &data->res;
-       struct inode            *inode = data->inode;
        struct nfs_page         *req;
        struct page             *page;
 
@@ -863,7 +862,7 @@ nfs_writeback_done(struct rpc_task *task)
                if (time_before(complain, jiffies)) {
                        dprintk("NFS: faulty NFS server %s:"
                                " (committed = %d) != (stable = %d)\n",
-                               NFS_SERVER(inode)->hostname,
+                               NFS_SERVER(data->inode)->hostname,
                                data->verf.committed, argp->stable);
                        complain = jiffies + 300 * HZ;
                }