aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@redhat.com>2013-12-13 09:58:46 -0500
committerMike Snitzer <snitzer@redhat.com>2014-01-07 10:11:46 -0500
commitc46985e211fa6d6895104cc4858e85e53e8c7731 (patch)
tree34da7a05b5e15134a48aba4f85868226bc498539 /drivers/md
parent42065460aed7201ec8adf0179a258a23bd1ebd78 (diff)
dm space map metadata: limit errors in sm_metadata_new_block
The "unable to allocate new metadata block" error can be a particularly verbose error if there is a systemic issue with the metadata device. Signed-off-by: Mike Snitzer <snitzer@redhat.com> Acked-by: Joe Thornber <ejt@redhat.com>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/persistent-data/dm-space-map-metadata.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/persistent-data/dm-space-map-metadata.c b/drivers/md/persistent-data/dm-space-map-metadata.c
index 58fc1eef7499..e93084419068 100644
--- a/drivers/md/persistent-data/dm-space-map-metadata.c
+++ b/drivers/md/persistent-data/dm-space-map-metadata.c
@@ -385,13 +385,13 @@ static int sm_metadata_new_block(struct dm_space_map *sm, dm_block_t *b)
385 385
386 int r = sm_metadata_new_block_(sm, b); 386 int r = sm_metadata_new_block_(sm, b);
387 if (r) { 387 if (r) {
388 DMERR("unable to allocate new metadata block"); 388 DMERR_LIMIT("unable to allocate new metadata block");
389 return r; 389 return r;
390 } 390 }
391 391
392 r = sm_metadata_get_nr_free(sm, &count); 392 r = sm_metadata_get_nr_free(sm, &count);
393 if (r) { 393 if (r) {
394 DMERR("couldn't get free block count"); 394 DMERR_LIMIT("couldn't get free block count");
395 return r; 395 return r;
396 } 396 }
397 397