Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge git://git.kernel.org/pub/scm/linux/kernel/git/agk/linux-2.6-dm

* git://git.kernel.org/pub/scm/linux/kernel/git/agk/linux-2.6-dm:
dm table: fix blk_stack_limits arg to use bytes not sectors
dm exception store: really fix type lookup

+7 -4
+6 -3
drivers/md/dm-exception-store.c
··· 195 195 struct dm_exception_store **store) 196 196 { 197 197 int r = 0; 198 - struct dm_exception_store_type *type; 198 + struct dm_exception_store_type *type = NULL; 199 199 struct dm_exception_store *tmp_store; 200 200 char persistent; 201 201 ··· 211 211 } 212 212 213 213 persistent = toupper(*argv[1]); 214 - if (persistent != 'P' && persistent != 'N') { 214 + if (persistent == 'P') 215 + type = get_type("P"); 216 + else if (persistent == 'N') 217 + type = get_type("N"); 218 + else { 215 219 ti->error = "Persistent flag is not P or N"; 216 220 return -EINVAL; 217 221 } 218 222 219 - type = get_type(&persistent); 220 223 if (!type) { 221 224 ti->error = "Exception store type not recognised"; 222 225 r = -EINVAL;
+1 -1
drivers/md/dm-table.c
··· 495 495 return 0; 496 496 } 497 497 498 - if (blk_stack_limits(limits, &q->limits, start) < 0) 498 + if (blk_stack_limits(limits, &q->limits, start << 9) < 0) 499 499 DMWARN("%s: target device %s is misaligned", 500 500 dm_device_name(ti->table->md), bdevname(bdev, b)); 501 501