mirror of https://gitee.com/openkylin/linux.git
dm: make dm_table_alloc_md_mempools static
Make the function dm_table_alloc_md_mempools static because it is not called from another file. Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
This commit is contained in:
parent
5a32083d03
commit
473c36dfee
|
@ -945,7 +945,7 @@ bool dm_table_request_based(struct dm_table *t)
|
||||||
return dm_table_get_type(t) == DM_TYPE_REQUEST_BASED;
|
return dm_table_get_type(t) == DM_TYPE_REQUEST_BASED;
|
||||||
}
|
}
|
||||||
|
|
||||||
int dm_table_alloc_md_mempools(struct dm_table *t)
|
static int dm_table_alloc_md_mempools(struct dm_table *t)
|
||||||
{
|
{
|
||||||
unsigned type = dm_table_get_type(t);
|
unsigned type = dm_table_get_type(t);
|
||||||
unsigned per_bio_data_size = 0;
|
unsigned per_bio_data_size = 0;
|
||||||
|
|
|
@ -73,7 +73,6 @@ unsigned dm_table_get_type(struct dm_table *t);
|
||||||
struct target_type *dm_table_get_immutable_target_type(struct dm_table *t);
|
struct target_type *dm_table_get_immutable_target_type(struct dm_table *t);
|
||||||
bool dm_table_request_based(struct dm_table *t);
|
bool dm_table_request_based(struct dm_table *t);
|
||||||
bool dm_table_supports_discards(struct dm_table *t);
|
bool dm_table_supports_discards(struct dm_table *t);
|
||||||
int dm_table_alloc_md_mempools(struct dm_table *t);
|
|
||||||
void dm_table_free_md_mempools(struct dm_table *t);
|
void dm_table_free_md_mempools(struct dm_table *t);
|
||||||
struct dm_md_mempools *dm_table_get_md_mempools(struct dm_table *t);
|
struct dm_md_mempools *dm_table_get_md_mempools(struct dm_table *t);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue