linux/drivers/md/bcache
Kent Overstreet 29ebf465b9 bcache: Fix GC_SECTORS_USED() calculation
Part of the job of garbage collection is to add up however many sectors
of live data it finds in each bucket, but that doesn't work very well if
it doesn't reset GC_SECTORS_USED() when it starts. Whoops.

This wouldn't have broken anything horribly, but allocation tries to
preferentially reclaim buckets that are mostly empty and that's not
gonna work with an incorrect GC_SECTORS_USED() value.

Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Cc: linux-stable <stable@vger.kernel.org> # >= v3.10
2013-07-12 00:22:48 -07:00
..
alloc.c bcache: Fix/revamp tracepoints 2013-06-26 17:09:15 -07:00
bcache.h bcache: Fix a sysfs splat on shutdown 2013-07-12 00:22:47 -07:00
bset.c bcache: Improve lazy sorting 2013-06-26 17:09:16 -07:00
bset.h bcache: Fix/revamp tracepoints 2013-06-26 17:09:15 -07:00
btree.c bcache: Fix GC_SECTORS_USED() calculation 2013-07-12 00:22:48 -07:00
btree.h bcache: Delete fuzz tester 2013-07-01 14:43:48 -07:00
closure.c bcache: Fix a dumb race 2013-07-12 00:22:33 -07:00
closure.h bcache: Build fixes from test robot 2013-03-25 13:06:13 -06:00
debug.c bcache: Use standard utility code 2013-07-01 14:43:53 -07:00
debug.h bcache: Rip out pkey()/pbtree() 2013-06-26 17:09:15 -07:00
io.c bcache: Use standard utility code 2013-07-01 14:43:53 -07:00
journal.c bcache: Journal replay fix 2013-07-12 00:22:48 -07:00
journal.h
Kconfig bcache: drop "select CLOSURES" 2013-05-15 00:42:51 -07:00
Makefile
movinggc.c bcache: Use standard utility code 2013-07-01 14:43:53 -07:00
request.c bcache: Advertise that flushes are supported 2013-07-12 00:22:46 -07:00
request.h bcache: Fix/revamp tracepoints 2013-06-26 17:09:15 -07:00
stats.c bcache: Fix error handling in init code 2013-05-15 00:48:14 -07:00
stats.h
super.c bcache: Shutdown fix 2013-07-12 00:22:47 -07:00
sysfs.c bcache: check for allocation failures 2013-07-12 00:22:46 -07:00
sysfs.h bcache: Don't export utility code, prefix with bch_ 2013-03-28 12:50:55 -06:00
trace.c bcache: Rip out pkey()/pbtree() 2013-06-26 17:09:15 -07:00
util.c bcache: Use standard utility code 2013-07-01 14:43:53 -07:00
util.h bcache: Use standard utility code 2013-07-01 14:43:53 -07:00
writeback.c bcache: Use standard utility code 2013-07-01 14:43:53 -07:00
writeback.h bcache: Write out full stripes 2013-06-26 21:58:04 -07:00