]> git.baikalelectronics.ru Git - kernel.git/commit
dm writecache: correct uncommitted_block when discarding uncommitted entry
authorHuaisheng Ye <yehs1@lenovo.com>
Fri, 12 Jun 2020 15:59:11 +0000 (23:59 +0800)
committerMike Snitzer <snitzer@redhat.com>
Wed, 17 Jun 2020 16:25:41 +0000 (12:25 -0400)
commit7357671c7a961255229ff80a33ac248f1fc9a3ab
tree3d3ce61f0cd9628d08a41d361bf64a958ee15e17
parentb6fe98adc985d1f805f5cb740c8a2cfe8cb5162d
dm writecache: correct uncommitted_block when discarding uncommitted entry

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

Fixes: 27be8d9547306 ("dm: add writecache target")
Cc: stable@vger.kernel.org
Signed-off-by: Huaisheng Ye <yehs1@lenovo.com>
Acked-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-writecache.c