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

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'for-7.1/dm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm

Pull device mapper fix from Mikulas Patocka:

- fix metadata corruption in dm-thin

* tag 'for-7.1/dm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm:
dm-thin: fix metadata refcount underflow

+8
+8
drivers/md/persistent-data/dm-btree-remove.c
··· 490 490 491 491 if (le32_to_cpu(n->header.nr_entries) == 1) { 492 492 struct dm_block *child; 493 + int is_shared; 493 494 dm_block_t b = value64(n, 0); 495 + 496 + r = dm_tm_block_is_shared(info->tm, b, &is_shared); 497 + if (r) 498 + return r; 494 499 495 500 r = dm_tm_read_lock(info->tm, b, &btree_node_validator, &child); 496 501 if (r) 497 502 return r; 503 + 504 + if (is_shared) 505 + inc_children(info->tm, dm_block_data(child), vt); 498 506 499 507 memcpy(n, dm_block_data(child), 500 508 dm_bm_block_size(dm_tm_get_bm(info->tm)));