linux/drivers/md/bcache
Tang Junhui c8da171ee3 bcache: fix miss key refill->end in writeback
commit 2d6cb6edd2 upstream.

refill->end record the last key of writeback, for example, at the first
time, keys (1,128K) to (1,1024K) are flush to the backend device, but
the end key (1,1024K) is not included, since the bellow code:
	if (bkey_cmp(k, refill->end) >= 0) {
		ret = MAP_DONE;
		goto out;
	}
And in the next time when we refill writeback keybuf again, we searched
key start from (1,1024K), and got a key bigger than it, so the key
(1,1024K) missed.
This patch modify the above code, and let the end key to be included to
the writeback key buffer.

Signed-off-by: Tang Junhui <tang.junhui.linux@gmail.com>
Signed-off-by: Coly Li <colyli@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
History 2019-02-11 17:53:29 +00:00
..
alloc.c bcache: check ca->alloc_thread initialized before wake up it 2018-02-13 18:42:07 +00:00
bcache.h bcache: add separate workqueue for journal_write to avoid deadlock 2018-12-16 22:09:27 +00:00
bset.c bcache: Fix another compiler warning on m68k 2014-02-18 08:55:05 -08:00
bset.h bcache: Add bch_keylist_init_single() 2014-03-18 12:22:36 -07:00
btree.c bcache: fix miss key refill->end in writeback 2019-02-11 17:53:29 +00:00
btree.h bcache: Kill unused freelist 2014-03-18 12:23:36 -07:00
closure.c bcache: kill closure locking code 2014-01-08 13:05:08 -08:00
closure.h bcache: don't embed 'return' statements in closure macros 2018-12-16 22:09:26 +00:00
debug.c bcache: Convert debug code to btree_keys 2014-01-08 13:05:13 -08:00
debug.h bcache: Convert debug code to btree_keys 2014-01-08 13:05:13 -08:00
extents.c bcache: remove nested function usage 2014-03-18 12:39:28 -07:00
extents.h bcache: Convert debug code to btree_keys 2014-01-08 13:05:13 -08:00
io.c bcache: don't embed 'return' statements in closure macros 2018-12-16 22:09:26 +00:00
journal.c bcache: add separate workqueue for journal_write to avoid deadlock 2018-12-16 22:09:27 +00:00
journal.h bcache: Fix a shutdown bug 2014-02-25 18:42:49 -08:00
Kconfig bcache: Kill dead cgroup code 2014-03-18 12:22:35 -07:00
Makefile bcache: Abstract out stuff needed for sorting 2014-01-08 13:05:12 -08:00
movinggc.c bcache: stop moving_gc marking buckets that can't be moved. 2014-03-18 12:22:34 -07:00
request.c bcache: fix wrong cache_misses statistics 2019-02-11 17:53:29 +00: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 bcache: Break up struct search 2013-11-10 21:56:32 -08:00
super.c bcache: add separate workqueue for journal_write to avoid deadlock 2018-12-16 22:09:27 +00:00
sysfs.c bcache: Correct return value for sysfs attach errors 2017-11-26 13:50:34 +00:00
sysfs.h bcache: Don't export utility code, prefix with bch_ 2013-03-28 12:50:55 -06: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-11-26 13:50:35 +00:00
util.h bcache: Convert debug code to btree_keys 2014-01-08 13:05:13 -08:00
writeback.c bcache: initialize dirty stripes in flash_dev_run() 2017-11-26 13:50:35 +00:00
writeback.h bcache: initialize dirty stripes in flash_dev_run() 2017-11-26 13:50:35 +00:00