Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 91bcdb92 authored by Joe Thornber's avatar Joe Thornber Committed by Mike Snitzer
Browse files

dm thin metadata: call precommit before saving the roots



These calls were the wrong way round in __write_initial_superblock.

Cc: stable@vger.kernel.org
Signed-off-by: default avatarJoe Thornber <ejt@redhat.com>
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
parent 2e633095
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;