]> git.baikalelectronics.ru Git - kernel.git/commit
bcache: recal cached_dev_sectors on detach
authorShenghui Wang <shhuiw@foxmail.com>
Mon, 8 Oct 2018 12:41:15 +0000 (20:41 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 8 Oct 2018 14:19:50 +0000 (08:19 -0600)
commit8924d9c2b15feb274fad9bcc3e5652d5e0387403
tree0af7066c93413a5504498ca0010b7705ef4a56b1
parentf0ae3709da907150fd018e8ef17e674087e35312
bcache: recal cached_dev_sectors on detach

Recal cached_dev_sectors on cached_dev detached, as recal done on
cached_dev attached.

Update the cached_dev_sectors before bcache_device_detach called
as bcache_device_detach will set bcache_device->c to NULL.

Signed-off-by: Shenghui Wang <shhuiw@foxmail.com>
Signed-off-by: Coly Li <colyli@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/super.c