mirror of
https://github.com/torvalds/linux.git
synced 2026-09-12 20:53:03 +02:00
dm-pcache: remove unused 'cache' parameter from cache_key_gc()
The 'cache' parameter is never used in the function body, remove it. Signed-off-by: Jianyun Gao <jianyungao89@gmail.com> Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
This commit is contained in:
parent
40221c9d1d
commit
3a643cca41
|
|
@ -6,14 +6,13 @@
|
|||
|
||||
/**
|
||||
* cache_key_gc - Releases the reference of a cache key segment.
|
||||
* @cache: Pointer to the pcache_cache structure.
|
||||
* @key: Pointer to the cache key to be garbage collected.
|
||||
*
|
||||
* This function decrements the reference count of the cache segment
|
||||
* associated with the given key. If the reference count drops to zero,
|
||||
* the segment may be invalidated and reused.
|
||||
*/
|
||||
static void cache_key_gc(struct pcache_cache *cache, struct pcache_cache_key *key)
|
||||
static void cache_key_gc(struct pcache_cache_key *key)
|
||||
{
|
||||
cache_seg_put(key->cache_pos.cache_seg);
|
||||
}
|
||||
|
|
@ -169,7 +168,7 @@ void pcache_cache_gc_fn(struct work_struct *work)
|
|||
return;
|
||||
}
|
||||
|
||||
cache_key_gc(cache, key);
|
||||
cache_key_gc(key);
|
||||
}
|
||||
|
||||
pcache_dev_debug(pcache, "gc advance: %u:%u %u\n",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user