* fix nfs_writeback_done() warning
@ 2003-01-17 9:15 William Lee Irwin III
0 siblings, 0 replies; only message in thread
From: William Lee Irwin III @ 2003-01-17 9:15 UTC (permalink / raw)
To: nfs; +Cc: linux-kernel
I get complaints about an unused variable "inode". This removes
the variable and open-codes the dereference to data->inode, hence
fixing the warning.
diff -urpN mm1-2.5.59/fs/nfs/write.c numaq-2.5.59/fs/nfs/write.c
--- mm1-2.5.59/fs/nfs/write.c 2003-01-16 18:22:26.000000000 -0800
+++ numaq-2.5.59/fs/nfs/write.c 2003-01-17 01:12:29.000000000 -0800
@@ -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;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-01-17 9:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-17 9:15 fix nfs_writeback_done() warning William Lee Irwin III
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.