1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-02-16 13:57:49 +03:00

bcache: add bcache_block_sectors() query fn

This commit is contained in:
Joe Thornber 2018-05-03 09:33:55 +01:00
parent 65912ce44d
commit b3c41bce3d
2 changed files with 6 additions and 0 deletions

View File

@ -863,6 +863,11 @@ void bcache_destroy(struct bcache *cache)
dm_free(cache);
}
sector_t bcache_block_sectors(struct bcache *cache)
{
return cache->block_sectors;
}
unsigned bcache_nr_cache_blocks(struct bcache *cache)
{
return cache->nr_cache_blocks;

View File

@ -97,6 +97,7 @@ enum bcache_get_flags {
GF_DIRTY = (1 << 1)
};
sector_t bcache_block_sectors(struct bcache *cache);
unsigned bcache_nr_cache_blocks(struct bcache *cache);
unsigned bcache_max_prefetches(struct bcache *cache);