projects
/
wrapfs-4.14.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
feaf084
)
dm thin metadata: call precommit before saving the roots
author
Joe Thornber
<ejt@redhat.com>
Mon, 15 May 2017 13:43:05 +0000
(09:43 -0400)
committer
Ben Hutchings
<ben@decadent.org.uk>
Fri, 15 Sep 2017 17:29:38 +0000
(18:29 +0100)
commit
91bcdb92d39711d1adb40c26b653b7978d93eb98
upstream.
These calls were the wrong way round in __write_initial_superblock.
Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/md/dm-thin-metadata.c
patch
|
blob
|
history
diff --git
a/drivers/md/dm-thin-metadata.c
b/drivers/md/dm-thin-metadata.c
index 7768de60f6997ac21b96dc2760ac86c65739c46c..0f9d9bcc91ed494fea1447ece153b012f13bf53d 100644
(file)
--- a/
drivers/md/dm-thin-metadata.c
+++ b/
drivers/md/dm-thin-metadata.c
@@
-484,11
+484,11
@@
static int __write_initial_superblock(struct dm_pool_metadata *pmd)
if (r < 0)
return r;
- r =
save_sm_roots(pmd
);
+ r =
dm_tm_pre_commit(pmd->tm
);
if (r < 0)
return r;
- r =
dm_tm_pre_commit(pmd->tm
);
+ r =
save_sm_roots(pmd
);
if (r < 0)
return r;