aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/callback.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2006-08-22 20:06:08 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2006-09-22 23:24:31 -0400
commit5ae1fbce142b67bf59e15fb1af96e88a96abde7b (patch)
tree88e09770f11535b688f9539b5999f836c8b322ab /fs/nfs/callback.c
parent0a8ea4372b2868842986118ca90912f3382e6c5a (diff)
NFS: Fix NFS4 callback up/down prototypes
Make the nfs_callback_up()/down() prototypes just do nothing if NFS4 is not enabled. Also make the down function void type since we can't really do anything if it fails. Signed-Off-By: David Howells <dhowells@redhat.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/callback.c')
-rw-r--r--fs/nfs/callback.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/nfs/callback.c b/fs/nfs/callback.c
index d6c4bae14bb9..b1f7dc415392 100644
--- a/fs/nfs/callback.c
+++ b/fs/nfs/callback.c
@@ -149,10 +149,8 @@ out_err:
149/* 149/*
150 * Kill the server process if it is not already up. 150 * Kill the server process if it is not already up.
151 */ 151 */
152int nfs_callback_down(void) 152void nfs_callback_down(void)
153{ 153{
154 int ret = 0;
155
156 lock_kernel(); 154 lock_kernel();
157 mutex_lock(&nfs_callback_mutex); 155 mutex_lock(&nfs_callback_mutex);
158 nfs_callback_info.users--; 156 nfs_callback_info.users--;
@@ -164,7 +162,6 @@ int nfs_callback_down(void)
164 } while (wait_for_completion_timeout(&nfs_callback_info.stopped, 5*HZ) == 0); 162 } while (wait_for_completion_timeout(&nfs_callback_info.stopped, 5*HZ) == 0);
165 mutex_unlock(&nfs_callback_mutex); 163 mutex_unlock(&nfs_callback_mutex);
166 unlock_kernel(); 164 unlock_kernel();
167 return ret;
168} 165}
169 166
170static int nfs_callback_authenticate(struct svc_rqst *rqstp) 167static int nfs_callback_authenticate(struct svc_rqst *rqstp)