]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
brd: decrease the number of allocated pages which discarded
authorZhang Xianwei <zhang.xianwei8@zte.com.cn>
Thu, 28 Nov 2024 09:00:56 +0000 (17:00 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2024 13:03:10 +0000 (14:03 +0100)
commitfbc342372adb265c5df83bfab18c927c7584f218
tree9c1e659391f9ce8cd7b3465d13e482d77a104161
parent01a853faaeaf3379ccf358ade582b1d28752126e
brd: decrease the number of allocated pages which discarded

[ Upstream commit 82734209bedd65a8b508844bab652b464379bfdd ]

The number of allocated pages which discarded will not decrease.
Fix it.

Fixes: 9ead7efc6f3f ("brd: implement discard support")
Signed-off-by: Zhang Xianwei <zhang.xianwei8@zte.com.cn>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20241128170056565nPKSz2vsP8K8X2uk2iaDG@zte.com.cn
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/block/brd.c