Commit 741fddbf authored by Shraddha Barke's avatar Shraddha Barke Committed by Greg Kroah-Hartman

Staging: lustre: fld: Declare local functions as static

Declare fld_cache_entry_delete and fld_cache_insert_nolock as static
since they are used only in this particular file. Also remove
corresponding declarations from header file.
Signed-off-by: default avatarShraddha Barke <shraddha.6596@gmail.com>
Reviewed-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent bbbc18eb
...@@ -121,8 +121,8 @@ void fld_cache_fini(struct fld_cache *cache) ...@@ -121,8 +121,8 @@ void fld_cache_fini(struct fld_cache *cache)
/** /**
* delete given node from list. * delete given node from list.
*/ */
void fld_cache_entry_delete(struct fld_cache *cache, static void fld_cache_entry_delete(struct fld_cache *cache,
struct fld_cache_entry *node) struct fld_cache_entry *node)
{ {
list_del(&node->fce_list); list_del(&node->fce_list);
list_del(&node->fce_lru); list_del(&node->fce_lru);
...@@ -377,8 +377,8 @@ struct fld_cache_entry ...@@ -377,8 +377,8 @@ struct fld_cache_entry
* This function handles all cases of merging and breaking up of * This function handles all cases of merging and breaking up of
* ranges. * ranges.
*/ */
int fld_cache_insert_nolock(struct fld_cache *cache, static int fld_cache_insert_nolock(struct fld_cache *cache,
struct fld_cache_entry *f_new) struct fld_cache_entry *f_new)
{ {
struct fld_cache_entry *f_curr; struct fld_cache_entry *f_curr;
struct fld_cache_entry *n; struct fld_cache_entry *n;
......
...@@ -156,8 +156,6 @@ int fld_cache_insert(struct fld_cache *cache, ...@@ -156,8 +156,6 @@ int fld_cache_insert(struct fld_cache *cache,
struct fld_cache_entry struct fld_cache_entry
*fld_cache_entry_create(const struct lu_seq_range *range); *fld_cache_entry_create(const struct lu_seq_range *range);
int fld_cache_insert_nolock(struct fld_cache *cache,
struct fld_cache_entry *f_new);
void fld_cache_delete(struct fld_cache *cache, void fld_cache_delete(struct fld_cache *cache,
const struct lu_seq_range *range); const struct lu_seq_range *range);
void fld_cache_delete_nolock(struct fld_cache *cache, void fld_cache_delete_nolock(struct fld_cache *cache,
...@@ -167,8 +165,6 @@ int fld_cache_lookup(struct fld_cache *cache, ...@@ -167,8 +165,6 @@ int fld_cache_lookup(struct fld_cache *cache,
struct fld_cache_entry* struct fld_cache_entry*
fld_cache_entry_lookup(struct fld_cache *cache, struct lu_seq_range *range); fld_cache_entry_lookup(struct fld_cache *cache, struct lu_seq_range *range);
void fld_cache_entry_delete(struct fld_cache *cache,
struct fld_cache_entry *node);
void fld_dump_cache_entries(struct fld_cache *cache); void fld_dump_cache_entries(struct fld_cache *cache);
struct fld_cache_entry struct fld_cache_entry
......
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