OSDN Git Service

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)
committerJens Axboe <axboe@kernel.dk>
Thu, 23 Jan 2020 18:40:00 +0000 (11:40 -0700)
commite8547d42095e58bee658f00fef8e33d2a185c927
tree0d99f0fea277b4847ee8982a2909627a5af0a02d
parent7454049eb7e426a3bc9cc7b3fd5857c2d6ceeaee
bcache: cached_dev_free needs to put the sb page

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>
drivers/md/bcache/super.c