mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-01 02:36:02 +00:00
dm cache: Remove unused dm_cache_size
dm_cache_size() has been unused since the original commit
c6b4fcbad0
("dm: add cache target")
Remove it.
Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
This commit is contained in:
parent
253bacc057
commit
0153b7965d
@ -1218,15 +1218,6 @@ int dm_cache_load_discards(struct dm_cache_metadata *cmd,
|
||||
return r;
|
||||
}
|
||||
|
||||
int dm_cache_size(struct dm_cache_metadata *cmd, dm_cblock_t *result)
|
||||
{
|
||||
READ_LOCK(cmd);
|
||||
*result = cmd->cache_blocks;
|
||||
READ_UNLOCK(cmd);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int __remove(struct dm_cache_metadata *cmd, dm_cblock_t cblock)
|
||||
{
|
||||
int r;
|
||||
|
@ -71,7 +71,6 @@ void dm_cache_metadata_close(struct dm_cache_metadata *cmd);
|
||||
* origin blocks to map to.
|
||||
*/
|
||||
int dm_cache_resize(struct dm_cache_metadata *cmd, dm_cblock_t new_cache_size);
|
||||
int dm_cache_size(struct dm_cache_metadata *cmd, dm_cblock_t *result);
|
||||
|
||||
int dm_cache_discard_bitset_resize(struct dm_cache_metadata *cmd,
|
||||
sector_t discard_block_size,
|
||||
|
Loading…
Reference in New Issue
Block a user