android_kernel_oneplus_msm8998/drivers/md/bcache
Shenghui Wang d6767e1f8e 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>
2019-11-25 15:54:47 +01:00
..
alloc.c bcache: avoid clang -Wunintialized warning 2019-06-11 12:23:56 +02:00
bcache.h bcache: fix for data collapse after re-attaching an attached device 2018-05-30 07:48:57 +02:00
bset.c bcache: fix stack corruption by PRECEDING_KEY() 2019-06-22 08:18:23 +02:00
bset.h bcache: fix stack corruption by PRECEDING_KEY() 2019-06-22 08:18:23 +02:00
btree.c bcache: fix miss key refill->end in writeback 2018-11-21 09:27:30 +01:00
btree.h bcache: Make gc wakeup sane, remove set_task_state() 2017-02-23 17:43:10 +01:00
closure.c bcache: Really show state of work pending bit 2015-11-06 15:06:05 +01:00
closure.h block: add a bi_error field to struct bio 2015-07-29 08:55:15 -06:00
debug.c
debug.h
extents.c bcache: Fix building error on MIPS 2017-12-05 11:22:51 +01:00
extents.h bcache: Fix a journal replay bug 2014-08-04 15:23:02 -07:00
io.c bcache: remove driver private bio splitting code 2015-08-13 12:31:40 -06:00
journal.c bcache: fix failure in journal relplay 2019-06-11 12:23:56 +02:00
journal.h
Kconfig bcache: Kill dead cgroup code 2014-03-18 12:22:35 -07:00
Makefile
movinggc.c block: add a bi_error field to struct bio 2015-07-29 08:55:15 -06:00
request.c bcache: fix kcrashes with fio in RAID5 backend dev 2018-05-30 07:49:02 +02:00
request.h bcache: Kill dead cgroup code 2014-03-18 12:22:35 -07:00
stats.c bcache: Kill dead cgroup code 2014-03-18 12:22:35 -07:00
stats.h
super.c bcache: recal cached_dev_sectors on detach 2019-11-25 15:54:47 +01:00
sysfs.c bcache: fix input overflow to sequential_cutoff 2019-04-27 09:33:51 +02:00
sysfs.h bcache: improve sysfs_strtoul_clamp() 2019-04-27 09:33:51 +02:00
trace.c bcache: Better alloc tracepoints 2014-03-18 12:22:35 -07:00
util.c bcache: fix bch_hprint crash and improve output 2017-09-27 11:00:17 +02:00
util.h bcache: remove driver private bio splitting code 2015-08-13 12:31:40 -06:00
writeback.c bcache: release dc->writeback_lock properly in bch_writeback_thread() 2018-09-09 20:04:36 +02:00
writeback.h bcache: correct cache_dirty_target in __update_writeback_rate() 2017-09-27 11:00:17 +02:00