diff options
| author | Shenghui Wang <shhuiw@foxmail.com> | 2018-10-08 20:41:15 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-11-25 15:54:47 +0100 |
| commit | d6767e1f8eedaf6c635ead453e91629885ce4f5c (patch) | |
| tree | 63ae782ea1c42016c90ac74fbbf4792e7353c6cf /fs/proc/vmcore.c | |
| parent | c0dea2024671239aa31b4921e61fab67295d1517 (diff) | |
bcache: recal cached_dev_sectors on detach
[ Upstream commit 46010141da6677b81cc77f9b47f8ac62bd1cbfd3 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs/proc/vmcore.c')
0 files changed, 0 insertions, 0 deletions
