]> git.hungrycats.org Git - linux/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 12:54:33 +0000 (13:54 +0100)
commit2d2d392af544cd5b0b46ef022517039e43079445
treebc0b5b483f46e6f90f6eb23793a8d85fdd6da40c
parentdcaa738afde55085ac6056252e319479cf23cde2
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