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

Commit 80f659f3 authored by Heinz Mauelshagen's avatar Heinz Mauelshagen Committed by Mike Snitzer
Browse files

dm cache: use cell_defer() boolean argument consistently



Fix a few cell_defer() calls that weren't passing a bool.

Signed-off-by: default avatarHeinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: default avatarJoe Thornber <ejt@redhat.com>
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
parent 4cb3e1db
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -770,13 +770,13 @@ static void migration_failure(struct dm_cache_migration *mg)
		DMWARN_LIMIT("demotion failed; couldn't copy block");
		policy_force_mapping(cache->policy, mg->new_oblock, mg->old_oblock);

		cell_defer(cache, mg->old_ocell, mg->promote ? 0 : 1);
		cell_defer(cache, mg->old_ocell, mg->promote ? false : true);
		if (mg->promote)
			cell_defer(cache, mg->new_ocell, 1);
			cell_defer(cache, mg->new_ocell, true);
	} else {
		DMWARN_LIMIT("promotion failed; couldn't copy block");
		policy_remove_mapping(cache->policy, mg->new_oblock);
		cell_defer(cache, mg->new_ocell, 1);
		cell_defer(cache, mg->new_ocell, true);
	}

	cleanup_migration(mg);
@@ -828,7 +828,7 @@ static void migration_success_post_commit(struct dm_cache_migration *mg)
		return;

	} else if (mg->demote) {
		cell_defer(cache, mg->old_ocell, mg->promote ? 0 : 1);
		cell_defer(cache, mg->old_ocell, mg->promote ? false : true);

		if (mg->promote) {
			mg->demote = false;