···733733 }734734735735 if (crypto_skcipher_blocksize(any_tfm(cc)) != cc->iv_size) {736736- ti->error = "Block size of EBOIV cipher does "737737- "not match IV size of block cipher";736736+ ti->error = "Block size of EBOIV cipher does not match IV size of block cipher";738737 return -EINVAL;739738 }740739
+2-4
drivers/md/dm-ioctl.c
···449449 hc = __get_name_cell(new);450450451451 if (hc) {452452- DMERR("Unable to change %s on mapped device %s to one that "453453- "already exists: %s",452452+ DMERR("Unable to change %s on mapped device %s to one that already exists: %s",454453 change_uuid ? "uuid" : "name",455454 param->name, new);456455 dm_put(hc->md);···1837183818381839 if ((DM_VERSION_MAJOR != version[0]) ||18391840 (DM_VERSION_MINOR < version[1])) {18401840- DMERR("ioctl interface mismatch: "18411841- "kernel(%u.%u.%u), user(%u.%u.%u), cmd(%d)",18411841+ DMERR("ioctl interface mismatch: kernel(%u.%u.%u), user(%u.%u.%u), cmd(%d)",18421842 DM_VERSION_MAJOR, DM_VERSION_MINOR,18431843 DM_VERSION_PATCHLEVEL,18441844 version[0], version[1], version[2], cmd);
+2-3
drivers/md/dm-log-userspace-transfer.c
···109109 if (pkg->error != -EAGAIN)110110 *(pkg->data_size) = 0;111111 } else if (tfr->data_size > *(pkg->data_size)) {112112- DMERR("Insufficient space to receive package [%u] "113113- "(%u vs %zu)", tfr->request_type,114114- tfr->data_size, *(pkg->data_size));112112+ DMERR("Insufficient space to receive package [%u] (%u vs %zu)",113113+ tfr->request_type, tfr->data_size, *(pkg->data_size));115114116115 *(pkg->data_size) = 0;117116 pkg->error = -ENOSPC;
+1-2
drivers/md/dm-log.c
···389389 else if (!strcmp(argv[1], "nosync"))390390 sync = NOSYNC;391391 else {392392- DMWARN("unrecognised sync argument to "393393- "dirty region log: %s", argv[1]);392392+ DMWARN("unrecognised sync argument to dirty region log: %s", argv[1]);394393 return -EINVAL;395394 }396395 }
+3-4
drivers/md/dm-raid1.c
···239239 * Better to issue requests to same failing device240240 * than to risk returning corrupt data.241241 */242242- DMERR("Primary mirror (%s) failed while out-of-sync: "243243- "Reads may fail.", m->dev->name);242242+ DMERR("Primary mirror (%s) failed while out-of-sync: Reads may fail.",243243+ m->dev->name);244244 goto out;245245 }246246···526526 fail_mirror(m, DM_RAID1_READ_ERROR);527527528528 if (likely(default_ok(m)) || mirror_available(m->ms, bio)) {529529- DMWARN_LIMIT("Read failure on mirror device %s. "530530- "Trying alternative device.",529529+ DMWARN_LIMIT("Read failure on mirror device %s. Trying alternative device.",531530 m->dev->name);532531 queue_bio(m->ms, bio, bio_data_dir(bio));533532 return;
+2-4
drivers/md/dm-snap-persistent.c
···358358 return 0;359359360360 if (chunk_size_supplied)361361- DMWARN("chunk size %u in device metadata overrides "362362- "table chunk size of %u.",361361+ DMWARN("chunk size %u in device metadata overrides table chunk size of %u.",363362 chunk_size, ps->store->chunk_size);364363365364 /* We had a bogus chunk_size. Fix stuff up. */···965966966967 r = dm_exception_store_type_register(&_persistent_compat_type);967968 if (r) {968968- DMERR("Unable to register old-style persistent exception "969969- "store type");969969+ DMERR("Unable to register old-style persistent exception store type");970970 dm_exception_store_type_unregister(&_persistent_type);971971 return r;972972 }
+1-2
drivers/md/dm-snap-transient.c
···143143144144 r = dm_exception_store_type_register(&_transient_compat_type);145145 if (r) {146146- DMWARN("Unable to register old-style transient "147147- "exception store type");146146+ DMWARN("Unable to register old-style transient exception store type");148147 dm_exception_store_type_unregister(&_transient_type);149148 return r;150149 }
+7-14
drivers/md/dm-snap.c
···495495 if ((__find_snapshots_sharing_cow(snap, &snap_src, &snap_dest,496496 &snap_merge) == 2) ||497497 snap_dest) {498498- snap->ti->error = "Snapshot cow pairing for exception "499499- "table handover failed";498498+ snap->ti->error = "Snapshot cow pairing for exception table handover failed";500499 return -EINVAL;501500 }502501···522523523524 if (!snap_src->store->type->prepare_merge ||524525 !snap_src->store->type->commit_merge) {525525- snap->ti->error = "Snapshot exception store does not "526526- "support snapshot-merge.";526526+ snap->ti->error = "Snapshot exception store does not support snapshot-merge.";527527 return -EINVAL;528528 }529529···941943942944 e = dm_lookup_exception(&s->complete, old_chunk);943945 if (!e) {944944- DMERR("Corruption detected: exception for block %llu is "945945- "on disk but not in memory",946946+ DMERR("Corruption detected: exception for block %llu is on disk but not in memory",946947 (unsigned long long)old_chunk);947948 return -EINVAL;948949 }···968971 e->new_chunk++;969972 } else if (old_chunk != e->old_chunk +970973 dm_consecutive_chunk_count(e)) {971971- DMERR("Attempt to merge block %llu from the "972972- "middle of a chunk range [%llu - %llu]",974974+ DMERR("Attempt to merge block %llu from the middle of a chunk range [%llu - %llu]",973975 (unsigned long long)old_chunk,974976 (unsigned long long)e->old_chunk,975977 (unsigned long long)···10611065 &new_chunk);10621066 if (linear_chunks <= 0) {10631067 if (linear_chunks < 0) {10641064- DMERR("Read error in exception store: "10651065- "shutting down merge");10681068+ DMERR("Read error in exception store: shutting down merge");10661069 down_write(&s->lock);10671070 s->merge_failed = true;10681071 up_write(&s->lock);···22102215 if (snap_src && snap_dest) {22112216 down_read(&snap_src->lock);22122217 if (s == snap_src) {22132213- DMERR("Unable to resume snapshot source until "22142214- "handover completes.");22182218+ DMERR("Unable to resume snapshot source until handover completes.");22152219 r = -EINVAL;22162220 } else if (!dm_suspended(snap_src->ti)) {22172217- DMERR("Unable to perform snapshot handover until "22182218- "source is suspended.");22212221+ DMERR("Unable to perform snapshot handover until source is suspended.");22192222 r = -EINVAL;22202223 }22212224 up_read(&snap_src->lock);
+4-8
drivers/md/dm-stripe.c
···109109110110 width = ti->len;111111 if (sector_div(width, stripes)) {112112- ti->error = "Target length not divisible by "113113- "number of stripes";112112+ ti->error = "Target length not divisible by number of stripes";114113 return -EINVAL;115114 }116115117116 tmp_len = width;118117 if (sector_div(tmp_len, chunk_size)) {119119- ti->error = "Target length not divisible by "120120- "chunk size";118118+ ti->error = "Target length not divisible by chunk size";121119 return -EINVAL;122120 }123121···123125 * Do we have enough arguments for that many stripes ?124126 */125127 if (argc != (2 + 2 * stripes)) {126126- ti->error = "Not enough destinations "127127- "specified";128128+ ti->error = "Not enough destinations specified";128129 return -EINVAL;129130 }130131131132 sc = kmalloc(struct_size(sc, stripe, stripes), GFP_KERNEL);132133 if (!sc) {133133- ti->error = "Memory allocation for striped context "134134- "failed";134134+ ti->error = "Memory allocation for striped context failed";135135 return -ENOMEM;136136 }137137
+6-12
drivers/md/dm-table.c
···235235 return 0;236236237237 if ((start >= dev_size) || (start + len > dev_size)) {238238- DMERR("%s: %pg too small for target: "239239- "start=%llu, len=%llu, dev_size=%llu",238238+ DMERR("%s: %pg too small for target: start=%llu, len=%llu, dev_size=%llu",240239 dm_device_name(ti->table->md), bdev,241240 (unsigned long long)start,242241 (unsigned long long)len,···280281 return 0;281282282283 if (start & (logical_block_size_sectors - 1)) {283283- DMERR("%s: start=%llu not aligned to h/w "284284- "logical block size %u of %pg",284284+ DMERR("%s: start=%llu not aligned to h/w logical block size %u of %pg",285285 dm_device_name(ti->table->md),286286 (unsigned long long)start,287287 limits->logical_block_size, bdev);···288290 }289291290292 if (len & (logical_block_size_sectors - 1)) {291291- DMERR("%s: len=%llu not aligned to h/w "292292- "logical block size %u of %pg",293293+ DMERR("%s: len=%llu not aligned to h/w logical block size %u of %pg",293294 dm_device_name(ti->table->md),294295 (unsigned long long)len,295296 limits->logical_block_size, bdev);···881884 bio_based = 1;882885883886 if (bio_based && request_based) {884884- DMERR("Inconsistent table: different target types"885885- " can't be mixed up");887887+ DMERR("Inconsistent table: different target types can't be mixed up");886888 return -EINVAL;887889 }888890 }···11841188 * profile the new profile should not conflict.11851189 */11861190 if (blk_integrity_compare(dm_disk(md), template_disk) < 0) {11871187- DMERR("%s: conflict with existing integrity profile: "11881188- "%s profile mismatch",11911191+ DMERR("%s: conflict with existing integrity profile: %s profile mismatch",11891192 dm_device_name(t->md),11901193 template_disk->disk_name);11911194 return 1;···17061711 * for the table.17071712 */17081713 if (blk_stack_limits(limits, &ti_limits, 0) < 0)17091709- DMWARN("%s: adding target device "17101710- "(start sect %llu len %llu) "17141714+ DMWARN("%s: adding target device (start sect %llu len %llu) "17111715 "caused an alignment inconsistency",17121716 dm_device_name(t->md),17131717 (unsigned long long) ti->begin,