dm: avoid spaces before function arguments or in favour of tabs
Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com> Signed-off-by: Mike Snitzer <snitzer@kernel.org>
This commit is contained in:
committed by
Mike Snitzer
parent
beecc8438c
commit
8ca817c43e
@@ -673,16 +673,14 @@ static void list_version_get_info(struct target_type *tt, void *param)
|
|||||||
struct vers_iter *info = param;
|
struct vers_iter *info = param;
|
||||||
|
|
||||||
/* Check space - it might have changed since the first iteration */
|
/* Check space - it might have changed since the first iteration */
|
||||||
if ((char *)info->vers + sizeof(tt->version) + strlen(tt->name) + 1 >
|
if ((char *)info->vers + sizeof(tt->version) + strlen(tt->name) + 1 > info->end) {
|
||||||
info->end) {
|
|
||||||
|
|
||||||
info->flags = DM_BUFFER_FULL_FLAG;
|
info->flags = DM_BUFFER_FULL_FLAG;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (info->old_vers)
|
if (info->old_vers)
|
||||||
info->old_vers->next = (uint32_t) ((void *)info->vers -
|
info->old_vers->next = (uint32_t) ((void *)info->vers - (void *)info->old_vers);
|
||||||
(void *)info->old_vers);
|
|
||||||
info->vers->version[0] = tt->version[0];
|
info->vers->version[0] = tt->version[0];
|
||||||
info->vers->version[1] = tt->version[1];
|
info->vers->version[1] = tt->version[1];
|
||||||
info->vers->version[2] = tt->version[2];
|
info->vers->version[2] = tt->version[2];
|
||||||
|
@@ -67,8 +67,7 @@ struct path_selector_type {
|
|||||||
* Chooses a path for this io, if no paths are available then
|
* Chooses a path for this io, if no paths are available then
|
||||||
* NULL will be returned.
|
* NULL will be returned.
|
||||||
*/
|
*/
|
||||||
struct dm_path *(*select_path) (struct path_selector *ps,
|
struct dm_path *(*select_path)(struct path_selector *ps, size_t nr_bytes);
|
||||||
size_t nr_bytes);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Notify the selector that a path has failed.
|
* Notify the selector that a path has failed.
|
||||||
|
Reference in New Issue
Block a user