projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e63309
)
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
Mike Snitzer
<snitzer@redhat.com>
Mon, 15 May 2017 19:09:49 +0000
(15:09 -0400)
These calls were the wrong way round in __write_initial_superblock.
Cc: stable@vger.kernel.org
Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-thin-metadata.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/md/dm-thin-metadata.c
b/drivers/md/dm-thin-metadata.c
index 0f0251d0d337fff94b1e41d11940d658874eda17..d31d18d9727c69d555d7971e53ddde6b6c401bf3 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;