Commit 3c7cb3ec authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] knfsd cleanups

exp_find() is gone (never used).
parent dd2907bf
...@@ -32,7 +32,6 @@ ...@@ -32,7 +32,6 @@
typedef struct svc_client svc_client; typedef struct svc_client svc_client;
typedef struct svc_export svc_export; 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, static svc_export * exp_parent(svc_client *clp, kdev_t dev,
struct dentry *dentry); struct dentry *dentry);
static svc_export * exp_child(svc_client *clp, kdev_t dev, static svc_export * exp_child(svc_client *clp, kdev_t dev,
...@@ -66,21 +65,6 @@ static int want_lock; ...@@ -66,21 +65,6 @@ static int want_lock;
static int hash_count; static int hash_count;
static DECLARE_WAIT_QUEUE_HEAD( hash_wait ); 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. * Find the client's export entry matching xdev/xino.
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment