Commit 8704c669 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Linus Torvalds

[PATCH] remove dead code from fs/mbcache.c

mb_cache_entry_takeout and mb_cache_entry_dup are totally unused.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 1cd05ead
...@@ -65,9 +65,7 @@ EXPORT_SYMBOL(mb_cache_destroy); ...@@ -65,9 +65,7 @@ EXPORT_SYMBOL(mb_cache_destroy);
EXPORT_SYMBOL(mb_cache_entry_alloc); EXPORT_SYMBOL(mb_cache_entry_alloc);
EXPORT_SYMBOL(mb_cache_entry_insert); EXPORT_SYMBOL(mb_cache_entry_insert);
EXPORT_SYMBOL(mb_cache_entry_release); EXPORT_SYMBOL(mb_cache_entry_release);
EXPORT_SYMBOL(mb_cache_entry_takeout);
EXPORT_SYMBOL(mb_cache_entry_free); EXPORT_SYMBOL(mb_cache_entry_free);
EXPORT_SYMBOL(mb_cache_entry_dup);
EXPORT_SYMBOL(mb_cache_entry_get); EXPORT_SYMBOL(mb_cache_entry_get);
#if !defined(MB_CACHE_INDEXES_COUNT) || (MB_CACHE_INDEXES_COUNT > 0) #if !defined(MB_CACHE_INDEXES_COUNT) || (MB_CACHE_INDEXES_COUNT > 0)
EXPORT_SYMBOL(mb_cache_entry_find_first); EXPORT_SYMBOL(mb_cache_entry_find_first);
...@@ -455,23 +453,6 @@ mb_cache_entry_release(struct mb_cache_entry *ce) ...@@ -455,23 +453,6 @@ mb_cache_entry_release(struct mb_cache_entry *ce)
} }
/*
* mb_cache_entry_takeout()
*
* Take a cache entry out of the cache, making it invalid. The entry can later
* be re-inserted using mb_cache_entry_insert(), or released using
* mb_cache_entry_release().
*/
void
mb_cache_entry_takeout(struct mb_cache_entry *ce)
{
spin_lock(&mb_cache_spinlock);
mb_assert(list_empty(&ce->e_lru_list));
__mb_cache_entry_unhash(ce);
spin_unlock(&mb_cache_spinlock);
}
/* /*
* mb_cache_entry_free() * mb_cache_entry_free()
* *
...@@ -488,20 +469,6 @@ mb_cache_entry_free(struct mb_cache_entry *ce) ...@@ -488,20 +469,6 @@ mb_cache_entry_free(struct mb_cache_entry *ce)
} }
/*
* mb_cache_entry_dup()
*
* Duplicate a handle to a cache entry (does not duplicate the cache entry
* itself). After the call, both the old and the new handle must be released.
*/
struct mb_cache_entry *
mb_cache_entry_dup(struct mb_cache_entry *ce)
{
atomic_inc(&ce->e_used);
return ce;
}
/* /*
* mb_cache_entry_get() * mb_cache_entry_get()
* *
......
...@@ -56,9 +56,7 @@ int mb_cache_entry_insert(struct mb_cache_entry *, struct block_device *, ...@@ -56,9 +56,7 @@ int mb_cache_entry_insert(struct mb_cache_entry *, struct block_device *,
sector_t, unsigned int[]); sector_t, unsigned int[]);
void mb_cache_entry_rehash(struct mb_cache_entry *, unsigned int[]); void mb_cache_entry_rehash(struct mb_cache_entry *, unsigned int[]);
void mb_cache_entry_release(struct mb_cache_entry *); void mb_cache_entry_release(struct mb_cache_entry *);
void mb_cache_entry_takeout(struct mb_cache_entry *);
void mb_cache_entry_free(struct mb_cache_entry *); void mb_cache_entry_free(struct mb_cache_entry *);
struct mb_cache_entry *mb_cache_entry_dup(struct mb_cache_entry *);
struct mb_cache_entry *mb_cache_entry_get(struct mb_cache *, struct mb_cache_entry *mb_cache_entry_get(struct mb_cache *,
struct block_device *, struct block_device *,
sector_t); sector_t);
......
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