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:
parent
65912ce44d
commit
b3c41bce3d
@ -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;
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user