projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84420b1
)
dm space map common: zero entire ll_disk
author
Mike Snitzer
<snitzer@redhat.com>
Fri, 22 Mar 2019 20:12:22 +0000
(16:12 -0400)
committer
Mike Snitzer
<snitzer@redhat.com>
Thu, 18 Apr 2019 20:18:32 +0000
(16:18 -0400)
Otherwise, memory that is allocated (and potentially not previously
zeroed) will get written to disk as part of the space maps.
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/persistent-data/dm-space-map-common.c
patch
|
blob
|
history
diff --git
a/drivers/md/persistent-data/dm-space-map-common.c
b/drivers/md/persistent-data/dm-space-map-common.c
index 0a3b8ae4a29c6789b400e91a912f90b8ced1a806..b8a62188f6be5906630983ef8fe183c9ba68ef2f 100644
(file)
--- a/
drivers/md/persistent-data/dm-space-map-common.c
+++ b/
drivers/md/persistent-data/dm-space-map-common.c
@@
-190,6
+190,8
@@
static int sm_find_free(void *addr, unsigned begin, unsigned end,
static int sm_ll_init(struct ll_disk *ll, struct dm_transaction_manager *tm)
{
+ memset(ll, 0, sizeof(struct ll_disk));
+
ll->tm = tm;
ll->bitmap_info.tm = tm;