···242242 * <offset>: offset in 512 bytes sectors into <dev_path>243243 * <ebs>: emulated block size in units of 512 bytes exposed to the upper layer244244 * [<ubs>]: underlying block size in units of 512 bytes imposed on the lower layer;245245- * optional, if not supplied, retrieve logical block size from underlying device245245+ * optional, if not supplied, retrieve logical block size from underlying device246246 */247247static int ebs_ctr(struct dm_target *ti, unsigned int argc, char **argv)248248{
+22-22
drivers/md/dm-exception-store.h
···4444 const char *name;4545 struct module *module;46464747- int (*ctr) (struct dm_exception_store *store, char *options);4747+ int (*ctr)(struct dm_exception_store *store, char *options);48484949 /*5050 * Destroys this object when you've finished with it.5151 */5252- void (*dtr) (struct dm_exception_store *store);5252+ void (*dtr)(struct dm_exception_store *store);53535454 /*5555 * The target shouldn't read the COW device until this is5656 * called. As exceptions are read from the COW, they are5757 * reported back via the callback.5858 */5959- int (*read_metadata) (struct dm_exception_store *store,6060- int (*callback)(void *callback_context,6161- chunk_t old, chunk_t new),6262- void *callback_context);5959+ int (*read_metadata)(struct dm_exception_store *store,6060+ int (*callback)(void *callback_context,6161+ chunk_t old, chunk_t new),6262+ void *callback_context);63636464 /*6565 * Find somewhere to store the next exception.6666 */6767- int (*prepare_exception) (struct dm_exception_store *store,6868- struct dm_exception *e);6767+ int (*prepare_exception)(struct dm_exception_store *store,6868+ struct dm_exception *e);69697070 /*7171 * Update the metadata with this exception.7272 */7373- void (*commit_exception) (struct dm_exception_store *store,7474- struct dm_exception *e, int valid,7575- void (*callback) (void *, int success),7676- void *callback_context);7373+ void (*commit_exception)(struct dm_exception_store *store,7474+ struct dm_exception *e, int valid,7575+ void (*callback)(void *, int success),7676+ void *callback_context);77777878 /*7979 * Returns 0 if the exception store is empty.···8383 * still-to-be-merged chunk and returns the number of8484 * consecutive previous ones.8585 */8686- int (*prepare_merge) (struct dm_exception_store *store,8787- chunk_t *last_old_chunk, chunk_t *last_new_chunk);8686+ int (*prepare_merge)(struct dm_exception_store *store,8787+ chunk_t *last_old_chunk, chunk_t *last_new_chunk);88888989 /*9090 * Clear the last n exceptions.9191 * nr_merged must be <= the value returned by prepare_merge.9292 */9393- int (*commit_merge) (struct dm_exception_store *store, int nr_merged);9393+ int (*commit_merge)(struct dm_exception_store *store, int nr_merged);94949595 /*9696 * The snapshot is invalid, note this in the metadata.9797 */9898- void (*drop_snapshot) (struct dm_exception_store *store);9898+ void (*drop_snapshot)(struct dm_exception_store *store);9999100100- unsigned int (*status) (struct dm_exception_store *store,101101- status_type_t status, char *result,102102- unsigned int maxlen);100100+ unsigned int (*status)(struct dm_exception_store *store,101101+ status_type_t status, char *result,102102+ unsigned int maxlen);103103104104 /*105105 * Return how full the snapshot is.106106 */107107- void (*usage) (struct dm_exception_store *store,108108- sector_t *total_sectors, sector_t *sectors_allocated,109109- sector_t *metadata_sectors);107107+ void (*usage)(struct dm_exception_store *store,108108+ sector_t *total_sectors, sector_t *sectors_allocated,109109+ sector_t *metadata_sectors);110110111111 /* For internal device-mapper use only. */112112 struct list_head list;
···608608 * of successful jobs.609609 */610610static int process_jobs(struct list_head *jobs, struct dm_kcopyd_client *kc,611611- int (*fn) (struct kcopyd_job *))611611+ int (*fn)(struct kcopyd_job *))612612{613613 struct kcopyd_job *job;614614 int r, count = 0;
+13-14
drivers/md/dm-path-selector.h
···5353 /*5454 * Constructs a path selector object, takes custom arguments5555 */5656- int (*create) (struct path_selector *ps, unsigned int argc, char **argv);5757- void (*destroy) (struct path_selector *ps);5656+ int (*create)(struct path_selector *ps, unsigned int argc, char **argv);5757+ void (*destroy)(struct path_selector *ps);58585959 /*6060 * Add an opaque path object, along with some selector specific6161 * path args (eg, path priority).6262 */6363- int (*add_path) (struct path_selector *ps, struct dm_path *path,6464- int argc, char **argv, char **error);6363+ int (*add_path)(struct path_selector *ps, struct dm_path *path,6464+ int argc, char **argv, char **error);65656666 /*6767 * Chooses a path for this io, if no paths are available then6868 * NULL will be returned.6969 */7070- struct dm_path *(*select_path) (struct path_selector *ps,7171- size_t nr_bytes);7070+ struct dm_path *(*select_path)(struct path_selector *ps, size_t nr_bytes);72717372 /*7473 * Notify the selector that a path has failed.7574 */7676- void (*fail_path) (struct path_selector *ps, struct dm_path *p);7575+ void (*fail_path)(struct path_selector *ps, struct dm_path *p);77767877 /*7978 * Ask selector to reinstate a path.8079 */8181- int (*reinstate_path) (struct path_selector *ps, struct dm_path *p);8080+ int (*reinstate_path)(struct path_selector *ps, struct dm_path *p);82818382 /*8483 * Table content based on parameters added in ps_add_path_fn8584 * or path selector status8685 */8787- int (*status) (struct path_selector *ps, struct dm_path *path,8888- status_type_t type, char *result, unsigned int maxlen);8686+ int (*status)(struct path_selector *ps, struct dm_path *path,8787+ status_type_t type, char *result, unsigned int maxlen);89889090- int (*start_io) (struct path_selector *ps, struct dm_path *path,9191- size_t nr_bytes);9292- int (*end_io) (struct path_selector *ps, struct dm_path *path,9393- size_t nr_bytes, u64 start_time);8989+ int (*start_io)(struct path_selector *ps, struct dm_path *path,9090+ size_t nr_bytes);9191+ int (*end_io)(struct path_selector *ps, struct dm_path *path,9292+ size_t nr_bytes, u64 start_time);9493};95949695/* Register a path selector */
+2-2
drivers/md/dm-ps-queue-length.c
···123123124124 /*125125 * Arguments: [<repeat_count>]126126- * <repeat_count>: The number of I/Os before switching path.127127- * If not given, default (QL_MIN_IO) is used.126126+ * <repeat_count>: The number of I/Os before switching path.127127+ * If not given, default (QL_MIN_IO) is used.128128 */129129 if (argc > 1) {130130 *error = "queue-length ps: incorrect number of arguments";
+4-4
drivers/md/dm-ps-service-time.c
···121121122122 /*123123 * Arguments: [<repeat_count> [<relative_throughput>]]124124- * <repeat_count>: The number of I/Os before switching path.125125- * If not given, default (ST_MIN_IO) is used.126126- * <relative_throughput>: The relative throughput value of124124+ * <repeat_count>: The number of I/Os before switching path.125125+ * If not given, default (ST_MIN_IO) is used.126126+ * <relative_throughput>: The relative throughput value of127127 * the path among all paths in the path-group.128128- * The valid range: 0-<ST_MAX_RELATIVE_THROUGHPUT>128128+ * The valid range: 0-<ST_MAX_RELATIVE_THROUGHPUT>129129 * If not given, minimum value '1' is used.130130 * If '0' is given, the path isn't selected while131131 * other paths having a positive value are available.
+1-1
drivers/md/dm-raid1.c
···595595 * We do different things with the write io depending on the596596 * state of the region that it's in:597597 *598598- * SYNC: increment pending, use kcopyd to write to *all* mirrors598598+ * SYNC: increment pending, use kcopyd to write to *all* mirrors599599 * RECOVERING: delay the io until recovery completes600600 * NOSYNC: increment pending, just write to the default mirror601601 *---------------------------------------------------------------------
+1-1
drivers/md/dm-snap-persistent.c
···695695696696static void persistent_commit_exception(struct dm_exception_store *store,697697 struct dm_exception *e, int valid,698698- void (*callback) (void *, int success),698698+ void (*callback)(void *, int success),699699 void *callback_context)700700{701701 unsigned int i;
+1-1
drivers/md/dm-snap-transient.c
···56565757static void transient_commit_exception(struct dm_exception_store *store,5858 struct dm_exception *e, int valid,5959- void (*callback) (void *, int success),5959+ void (*callback)(void *, int success),6060 void *callback_context)6161{6262 /* Just succeed */
+3-3
drivers/md/dm-snap.c
···123123 * The merge operation failed if this flag is set.124124 * Failure modes are handled as follows:125125 * - I/O error reading the header126126- * => don't load the target; abort.126126+ * => don't load the target; abort.127127 * - Header does not have "valid" flag set128128- * => use the origin; forget about the snapshot.128128+ * => use the origin; forget about the snapshot.129129 * - I/O error when reading exceptions130130- * => don't load the target; abort.130130+ * => don't load the target; abort.131131 * (We can't use the intermediate origin state.)132132 * - I/O error while merging133133 * => stop merging; set merge_failed; process I/O normally.
+1-1
drivers/md/dm-uevent.c
···33 * Device Mapper Uevent Support (dm-uevent)44 *55 * Copyright IBM Corporation, 200766- * Author: Mike Anderson <andmike@linux.vnet.ibm.com>66+ * Author: Mike Anderson <andmike@linux.vnet.ibm.com>77 */88#include <linux/list.h>99#include <linux/slab.h>