Skip to content
Commit 0cc39fd9 authored by Huaisheng Ye's avatar Huaisheng Ye Committed by Paul Gortmaker
Browse files

dm writecache: correct uncommitted_block when discarding uncommitted entry



commit 39495b12 upstream.

When uncommitted entry has been discarded, correct wc->uncommitted_block
for getting the exact number.

Fixes: 48debafe ("dm: add writecache target")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarHuaisheng Ye <yehs1@lenovo.com>
Acked-by: default avatarMikulas Patocka <mpatocka@redhat.com>
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
parent fddeca59
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment