Skip to content

Commit b30f160

Browse files
mauelshaMike Snitzer
authored andcommitted
dm: add missing blank line after declarations/fix those
Signed-off-by: Heinz Mauelshagen <[email protected]> Signed-off-by: Mike Snitzer <[email protected]>
1 parent 1c3fe2f commit b30f160

File tree

5 files changed

+11
-6
lines changed

5 files changed

+11
-6
lines changed

drivers/md/dm-raid.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
static bool devices_handle_discard_safely;
3434

3535
/*
36-
* The following flags are used by dm-raid.c to set up the array state.
36+
* The following flags are used by dm-raid to set up the array state.
3737
* They must be cleared before md_run is called.
3838
*/
3939
#define FirstUse 10 /* rdev flag */

drivers/md/dm.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ EXPORT_SYMBOL_GPL(dm_per_bio_data);
105105
struct bio *dm_bio_from_per_bio_data(void *data, size_t data_size)
106106
{
107107
struct dm_io *io = (struct dm_io *)((char *)data + data_size);
108+
108109
if (io->magic == DM_IO_MAGIC)
109110
return (struct bio *)((char *)io + DM_IO_BIO_OFFSET);
110111
BUG_ON(io->magic != DM_TIO_MAGIC);
@@ -128,6 +129,7 @@ static int swap_bios = DEFAULT_SWAP_BIOS;
128129
static int get_swap_bios(void)
129130
{
130131
int latch = READ_ONCE(swap_bios);
132+
131133
if (unlikely(latch <= 0))
132134
latch = DEFAULT_SWAP_BIOS;
133135
return latch;
@@ -1115,6 +1117,7 @@ static void clone_endio(struct bio *bio)
11151117

11161118
if (endio) {
11171119
int r = endio(ti, bio, &error);
1120+
11181121
switch (r) {
11191122
case DM_ENDIO_REQUEUE:
11201123
if (static_branch_unlikely(&zoned_enabled)) {
@@ -1403,6 +1406,7 @@ static void __map_bio(struct bio *clone)
14031406
if (static_branch_unlikely(&swap_bios_enabled) &&
14041407
unlikely(swap_bios_limit(ti, clone))) {
14051408
int latch = get_swap_bios();
1409+
14061410
if (unlikely(latch != md->swap_bios))
14071411
__set_swap_bios_limit(md, latch);
14081412
down(&md->swap_bios_semaphore);
@@ -2803,6 +2807,7 @@ static int __dm_resume(struct mapped_device *md, struct dm_table *map)
28032807
{
28042808
if (map) {
28052809
int r = dm_table_resume_targets(map);
2810+
28062811
if (r)
28072812
return r;
28082813
}

drivers/md/persistent-data/dm-array.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ static int array_resize(struct dm_array_info *info, dm_block_t root,
695695
int dm_array_resize(struct dm_array_info *info, dm_block_t root,
696696
uint32_t old_size, uint32_t new_size,
697697
const void *value, dm_block_t *new_root)
698-
__dm_written_to_disk(value)
698+
__dm_written_to_disk(value)
699699
{
700700
int r = array_resize(info, root, old_size, new_size, value, new_root);
701701

@@ -846,7 +846,7 @@ static int array_set_value(struct dm_array_info *info, dm_block_t root,
846846

847847
int dm_array_set_value(struct dm_array_info *info, dm_block_t root,
848848
uint32_t index, const void *value, dm_block_t *new_root)
849-
__dm_written_to_disk(value)
849+
__dm_written_to_disk(value)
850850
{
851851
int r;
852852

drivers/md/persistent-data/dm-btree.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1320,7 +1320,7 @@ static int insert(struct dm_btree_info *info, dm_block_t root,
13201320

13211321
int dm_btree_insert(struct dm_btree_info *info, dm_block_t root,
13221322
uint64_t *keys, void *value, dm_block_t *new_root)
1323-
__dm_written_to_disk(value)
1323+
__dm_written_to_disk(value)
13241324
{
13251325
return insert(info, root, keys, value, new_root, NULL);
13261326
}
@@ -1329,7 +1329,7 @@ EXPORT_SYMBOL_GPL(dm_btree_insert);
13291329
int dm_btree_insert_notify(struct dm_btree_info *info, dm_block_t root,
13301330
uint64_t *keys, void *value, dm_block_t *new_root,
13311331
int *inserted)
1332-
__dm_written_to_disk(value)
1332+
__dm_written_to_disk(value)
13331333
{
13341334
return insert(info, root, keys, value, new_root, inserted);
13351335
}

drivers/md/persistent-data/dm-btree.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ int dm_btree_lookup_next(struct dm_btree_info *info, dm_block_t root,
122122
*/
123123
int dm_btree_insert(struct dm_btree_info *info, dm_block_t root,
124124
uint64_t *keys, void *value, dm_block_t *new_root)
125-
__dm_written_to_disk(value);
125+
__dm_written_to_disk(value);
126126

127127
/*
128128
* A variant of insert that indicates whether it actually inserted or just

0 commit comments

Comments
 (0)