kernel_samsung_a53x/drivers/md/bcache
Mingzhe Zou 15b83101cb bcache: fixup init dirty data errors
commit 7cc47e64d3d69786a2711a4767e26b26ba63d7ed upstream.

We found that after long run, the dirty_data of the bcache device
will have errors. This error cannot be eliminated unless re-register.

We also found that reattach after detach, this error can accumulate.

In bch_sectors_dirty_init(), all inode <= d->id keys will be recounted
again. This is wrong, we only need to count the keys of the current
device.

Fixes: b144e45fc576 ("bcache: make bch_sectors_dirty_init() to be multithreaded")
Signed-off-by: Mingzhe Zou <mingzhe.zou@easystack.cn>
Cc:  <stable@vger.kernel.org>
Signed-off-by: Coly Li <colyli@suse.de>
Link: https://lore.kernel.org/r/20231120052503.6122-6-colyli@suse.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-18 12:10:57 +01:00
..
alloc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bcache.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bset.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bset.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
btree.c bcache: check return value from btree_node_alloc_replacement() 2024-11-18 12:10:57 +01:00
btree.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
closure.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
closure.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
debug.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
debug.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
extents.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
extents.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
features.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
features.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
io.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
journal.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
journal.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
movinggc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
request.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
request.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stats.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stats.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
super.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sysfs.c bcache: prevent potential division by zero error 2024-11-18 12:10:57 +01:00
sysfs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
trace.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
util.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
util.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
writeback.c bcache: fixup init dirty data errors 2024-11-18 12:10:57 +01:00
writeback.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00