dm: fix undue/missing spaces
authorHeinz Mauelshagen <heinzm@redhat.com>
Mon, 30 Jan 2023 20:43:57 +0000 (21:43 +0100)
committerMike Snitzer <snitzer@kernel.org>
Tue, 14 Feb 2023 19:23:06 +0000 (14:23 -0500)
Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
drivers/md/dm-ioctl.c
drivers/md/dm-mpath.c
drivers/md/dm-ps-service-time.c
drivers/md/dm-snap.c
drivers/md/dm-table.c
drivers/md/dm-uevent.h
drivers/md/dm-writecache.c
drivers/md/dm-zoned-metadata.c

index f6e880a0e00cb6ea7a7a4084f0eade3223a456da..5cb85c35327513f6af662bf589030527ba4b4c82 100644 (file)
@@ -1579,7 +1579,7 @@ static void retrieve_deps(struct dm_table *table,
        /*
         * Count the devices.
         */
-       list_for_each (tmp, dm_table_get_devices(table))
+       list_for_each(tmp, dm_table_get_devices(table))
                count++;
 
        /*
@@ -1596,7 +1596,7 @@ static void retrieve_deps(struct dm_table *table,
         */
        deps->count = count;
        count = 0;
-       list_for_each_entry (dd, dm_table_get_devices(table), list)
+       list_for_each_entry(dd, dm_table_get_devices(table), list)
                deps->dev[count++] = huge_encode_dev(dd->dm_dev->bdev->bd_dev);
 
        param->data_size = param->data_start + needed;
index d6161a9e8c00851e5af213674ca0809d46dae379..3b6f6a7ea3062663ec1276b213517f4a3d053b59 100644 (file)
@@ -1092,7 +1092,7 @@ static int parse_hw_handler(struct dm_arg_set *as, struct multipath *m)
                        goto fail;
                }
                j = sprintf(p, "%d", hw_argc - 1);
-               for (i = 0, p+=j+1; i <= hw_argc - 2; i++, p+=j+1)
+               for (i = 0, p += j + 1; i <= hw_argc - 2; i++, p += j + 1)
                        j = sprintf(p, "%s", as->argv[i]);
        }
        dm_consume_args(as, hw_argc - 1);
index b460054415f16c73da55f8ec8af904d4bb1f77d1..b623336ae55977f77b37017ea4b698c0f4e8e4c4 100644 (file)
@@ -128,8 +128,7 @@ static int st_add_path(struct path_selector *ps, struct dm_path *path,
         *                      The valid range: 0-<ST_MAX_RELATIVE_THROUGHPUT>
         *                      If not given, minimum value '1' is used.
         *                      If '0' is given, the path isn't selected while
-        *                      other paths having a positive value are
-        *                      available.
+        *                      other paths having a positive value are available.
         */
        if (argc > 2) {
                *error = "service-time ps: incorrect number of arguments";
index 0887e0fe32683c72693639152872233170eff202..2896f733a0d00c28324ba2dc6e08988574330a2c 100644 (file)
@@ -389,7 +389,7 @@ static struct origin *__lookup_origin(struct block_device *origin)
        struct origin *o;
 
        ol = &_origins[origin_hash(origin)];
-       list_for_each_entry (o, ol, hash_list)
+       list_for_each_entry(o, ol, hash_list)
                if (bdev_equal(o->bdev, origin))
                        return o;
 
@@ -408,7 +408,7 @@ static struct dm_origin *__lookup_dm_origin(struct block_device *origin)
        struct dm_origin *o;
 
        ol = &_dm_origins[origin_hash(origin)];
-       list_for_each_entry (o, ol, hash_list)
+       list_for_each_entry(o, ol, hash_list)
                if (bdev_equal(o->dev->bdev, origin))
                        return o;
 
@@ -2448,7 +2448,7 @@ static int __origin_write(struct list_head *snapshots, sector_t sector,
        chunk_t chunk;
 
        /* Do all the snapshots on this origin */
-       list_for_each_entry (snap, snapshots, list) {
+       list_for_each_entry(snap, snapshots, list) {
                /*
                 * Don't make new exceptions in a merging snapshot
                 * because it has effectively been deleted
index 5914b55564d4cd701ce24c235a0989163c29cc58..1a70ad3644e79b3735b037c7311d925b8f4e6c53 100644 (file)
@@ -212,7 +212,7 @@ static struct dm_dev_internal *find_device(struct list_head *l, dev_t dev)
 {
        struct dm_dev_internal *dd;
 
-       list_for_each_entry (dd, l, list)
+       list_for_each_entry(dd, l, list)
                if (dd->dm_dev->bdev->bd_dev == dev)
                        return dd;
 
index 2c9ba561fd8e9e5559221cf8bba3472670c01c42..12a5d4fb7d4414c7d9b51853b8fea57fcb049bf7 100644 (file)
@@ -3,7 +3,7 @@
  * Device Mapper Uevent Support
  *
  * Copyright IBM Corporation, 2007
- *     Author: Mike Anderson <andmike@linux.vnet.ibm.com>
+ *     Author: Mike Anderson <andmike@linux.vnet.ibm.com>
  */
 #ifndef DM_UEVENT_H
 #define DM_UEVENT_H
index 4f9cbc70686c03f8f26a64d8d8437f5e06a5a0bc..738533b82b1e5c1f46b71d8244bf236ac7e98a99 100644 (file)
@@ -85,12 +85,12 @@ struct wc_entry {
        unsigned short wc_list_contiguous;
        bool write_in_progress
 #if BITS_PER_LONG == 64
-               :1
+               : 1
 #endif
        ;
        unsigned long index
 #if BITS_PER_LONG == 64
-               :47
+               : 47
 #endif
        ;
        unsigned long age;
index 35bdb83e3a6e76f02e39999ab76290039178e75e..b13c1aa5e53b0c6c274d2f738b3d238c1bc92cb7 100644 (file)
@@ -1013,7 +1013,7 @@ static int dmz_check_sb(struct dmz_metadata *zmd, struct dmz_sb *dsb,
        }
 
        sb_block = le64_to_cpu(sb->sb_block);
-       if (sb_block != (u64)dsb->zone->id << zmd->zone_nr_blocks_shift ) {
+       if (sb_block != (u64)dsb->zone->id << zmd->zone_nr_blocks_shift) {
                dmz_dev_err(dev, "Invalid superblock position "
                            "(is %llu expected %llu)",
                            sb_block,