bcache: cached_dev_free needs to put the sb page
authorLiang Chen <liangchen.linux@gmail.com>
Thu, 23 Jan 2020 17:01:26 +0000 (01:01 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Feb 2020 07:34:51 +0000 (08:34 +0100)
commit4fdf57e5dd38194dbb98c9d9b7254a71742aca6a
tree76fab5c167515401dbc9763675a745664cbde996
parentdaa58bde67a2e8d6e03ed0fb27adf6fe00847063
bcache: cached_dev_free needs to put the sb page

[ Upstream commit e8547d42095e58bee658f00fef8e33d2a185c927 ]

Same as cache device, the buffer page needs to be put while
freeing cached_dev.  Otherwise a page would be leaked every
time a cached_dev is stopped.

Signed-off-by: Liang Chen <liangchen.linux@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Coly Li <colyli@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/md/bcache/super.c