Commit 66ab7de6 authored by Andries E. Brouwer's avatar Andries E. Brouwer Committed by Linus Torvalds

[PATCH] add static in afs

The routine afs_rxvl_probe() is unused and could be removed.  (I only put
#if 0 around it.)
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent da030ebe
......@@ -93,9 +93,10 @@ static int afs_inode_map_status(struct afs_vnode *vnode)
/*****************************************************************************/
/*
* attempt to fetch the status of an inode, coelescing multiple simultaneous fetches
* attempt to fetch the status of an inode, coelescing multiple simultaneous
* fetches
*/
int afs_inode_fetch_status(struct inode *inode)
static int afs_inode_fetch_status(struct inode *inode)
{
struct afs_vnode *vnode;
int ret;
......
......@@ -89,11 +89,12 @@ static void afs_rxvl_aemap(struct rxrpc_call *call)
}
} /* end afs_rxvl_aemap() */
#if 0
/*****************************************************************************/
/*
* probe a volume location server to see if it is still alive
* probe a volume location server to see if it is still alive -- unused
*/
int afs_rxvl_probe(struct afs_server *server, int alloc_flags)
static int afs_rxvl_probe(struct afs_server *server, int alloc_flags)
{
struct rxrpc_connection *conn;
struct rxrpc_call *call;
......@@ -173,6 +174,7 @@ int afs_rxvl_probe(struct afs_server *server, int alloc_flags)
return ret;
} /* end afs_rxvl_probe() */
#endif
/*****************************************************************************/
/*
......
......@@ -71,9 +71,6 @@ struct afs_vldbentry {
};
/* probe a volume location server to see if it is still alive */
extern int afs_rxvl_probe(struct afs_server *server, int alloc_flags);
/* look up a volume location database entry by name */
extern int afs_rxvl_get_entry_by_name(struct afs_server *server,
const char *volname,
......
......@@ -29,6 +29,7 @@
static void afs_vlocation_update_timer(struct afs_timer *timer);
static void afs_vlocation_update_attend(struct afs_async_op *op);
static void afs_vlocation_update_discard(struct afs_async_op *op);
static void __afs_put_vlocation(struct afs_vlocation *vlocation);
static void __afs_vlocation_timeout(struct afs_timer *timer)
{
......@@ -455,7 +456,7 @@ int afs_vlocation_lookup(struct afs_cell *cell,
* finish using a volume location record
* - caller must have cell->vol_sem write-locked
*/
void __afs_put_vlocation(struct afs_vlocation *vlocation)
static void __afs_put_vlocation(struct afs_vlocation *vlocation)
{
struct afs_cell *cell;
......
......@@ -86,9 +86,9 @@ static void afs_vnode_cb_timed_out(struct afs_timer *timer)
* - starts callback expiry timer
* - adds to server's callback list
*/
void afs_vnode_finalise_status_update(struct afs_vnode *vnode,
struct afs_server *server,
int ret)
static void afs_vnode_finalise_status_update(struct afs_vnode *vnode,
struct afs_server *server,
int ret)
{
struct afs_server *oldserver = NULL;
......
......@@ -99,7 +99,6 @@ extern int afs_vlocation_lookup(struct afs_cell *cell,
#define afs_get_vlocation(V) do { atomic_inc(&(V)->usage); } while(0)
extern void __afs_put_vlocation(struct afs_vlocation *vlocation);
extern void afs_put_vlocation(struct afs_vlocation *vlocation);
extern void afs_vlocation_do_timeout(struct afs_vlocation *vlocation);
......
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