]> git.hungrycats.org Git - linux/commitdiff
[PATCH] knfsd cleanups
authorAlexander Viro <viro@math.psu.edu>
Fri, 8 Feb 2002 07:47:31 +0000 (23:47 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Fri, 8 Feb 2002 07:47:31 +0000 (23:47 -0800)
exp_find() is gone (never used).

fs/nfsd/export.c

index a312016b0d5b137dacf97f2fb35f900ede97ed41..d1808b21554e1d3ef98fd2f116a852d18f9c095a 100644 (file)
@@ -32,7 +32,6 @@
 typedef struct svc_client      svc_client;
 typedef struct svc_export      svc_export;
 
-static svc_export *    exp_find(svc_client *clp, kdev_t dev);
 static svc_export *    exp_parent(svc_client *clp, kdev_t dev,
                                        struct dentry *dentry);
 static svc_export *    exp_child(svc_client *clp, kdev_t dev,
@@ -66,21 +65,6 @@ static int                   want_lock;
 static int                     hash_count;
 static DECLARE_WAIT_QUEUE_HEAD(        hash_wait );
 
-
-/*
- * Find a client's export for a device.
- */
-static inline svc_export *
-exp_find(svc_client *clp, kdev_t dev)
-{
-       svc_export *    exp;
-
-       exp = clp->cl_export[EXPORT_HASH(dev)];
-       while (exp && !kdev_same(exp->ex_dev, dev))
-               exp = exp->ex_next;
-       return exp;
-}
-
 /*
  * Find the client's export entry matching xdev/xino.
  */