diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2008-06-11 16:42:05 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2008-07-09 12:09:18 -0400 |
commit | 2e96d2867245668dbdb973729288cf69b9fafa66 (patch) | |
tree | 8f8b0642beaf0f7d53e31963328dfbc992c5ac88 /fs/nfs/nfs4proc.c | |
parent | 34e8f92831cb5c40b3137e47a3daf4c09016ef02 (diff) | |
download | linux-stable-2e96d2867245668dbdb973729288cf69b9fafa66.tar.gz linux-stable-2e96d2867245668dbdb973729288cf69b9fafa66.tar.bz2 linux-stable-2e96d2867245668dbdb973729288cf69b9fafa66.zip |
NFS: Fix a warning in nfs4_async_handle_error
We're not modifying the nfs_server when we call nfs_inc_server_stats and
friends, so allow the compiler to pass 'const' pointers too.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4proc.c')
-rw-r--r-- | fs/nfs/nfs4proc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index dfdd19a6d17e..058723d9122d 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -2756,8 +2756,7 @@ nfs4_async_handle_error(struct rpc_task *task, const struct nfs_server *server) task->tk_status = 0; return -EAGAIN; case -NFS4ERR_DELAY: - nfs_inc_server_stats((struct nfs_server *) server, - NFSIOS_DELAY); + nfs_inc_server_stats(server, NFSIOS_DELAY); case -NFS4ERR_GRACE: rpc_delay(task, NFS4_POLL_RETRY_MAX); task->tk_status = 0; |