Unverified Commit f472cf96 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!1979 [sync] PR-1446: Fix the default return value of dm_pool_dec_data_range()

parents 333b99fc f994414e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1806,7 +1806,7 @@ int dm_pool_inc_data_range(struct dm_pool_metadata *pmd, dm_block_t b, dm_block_

int dm_pool_dec_data_range(struct dm_pool_metadata *pmd, dm_block_t b, dm_block_t e)
{
	int r = -EINVAL;
	int r = 0;

	pmd_write_lock(pmd);
	if (!pmd->fail_io) {