linux/drivers/md/bcache
Kent Overstreet e58ff15503 bcache: Fix bch_ptr_bad()
Previously, bch_ptr_bad() could return false when there was a pointer to
a nonexistant device... it only filtered out keys with PTR_CHECK_DEV
pointers.

This behaviour was intended for multiple cache device support; for that,
just because the device for one of the pointers has gone away doesn't
mean we want to filter out the rest of the pointers.

But we don't yet explicitly filter/check individual pointers, so without
that this behaviour was wrong - a corrupt bkey with a bad device pointer
could cause us to deref a bad pointer. Doh.

Signed-off-by: Kent Overstreet <kmo@daterainc.com>
2013-11-10 21:56:33 -08:00
..
alloc.c bcache: Move sector allocator to alloc.c 2013-11-10 21:56:32 -08:00
bcache.h bcache: Pull on disk data structures out into a separate header 2013-11-10 21:56:33 -08:00
bset.c bcache: Fix bch_ptr_bad() 2013-11-10 21:56:33 -08:00
bset.h bcache: Pull on disk data structures out into a separate header 2013-11-10 21:56:33 -08:00
btree.c bcache: Pull on disk data structures out into a separate header 2013-11-10 21:56:33 -08:00
btree.h bcache: Convert bch_btree_insert() to bch_btree_map_leaf_nodes() 2013-11-10 21:56:31 -08:00
closure.c bcache: Drop some closure stuff 2013-11-10 21:56:10 -08:00
closure.h bcache: Drop some closure stuff 2013-11-10 21:56:10 -08:00
debug.c bcache: Break up struct search 2013-11-10 21:56:32 -08:00
debug.h bcache: Break up struct search 2013-11-10 21:56:32 -08:00
io.c bcache: Use standard utility code 2013-07-01 14:43:53 -07:00
journal.c bcache: Pull on disk data structures out into a separate header 2013-11-10 21:56:33 -08:00
journal.h bcache: Pull on disk data structures out into a separate header 2013-11-10 21:56:33 -08:00
Kconfig bcache: drop "select CLOSURES" 2013-05-15 00:42:51 -07:00
Makefile bcache: A block layer cache 2013-03-23 16:11:31 -07:00
movinggc.c bcache: Break up struct search 2013-11-10 21:56:32 -08:00
request.c bcache: Pull on disk data structures out into a separate header 2013-11-10 21:56:33 -08:00
request.h bcache: Move sector allocator to alloc.c 2013-11-10 21:56:32 -08:00
stats.c bcache: Break up struct search 2013-11-10 21:56:32 -08:00
stats.h bcache: Break up struct search 2013-11-10 21:56:32 -08:00
super.c bcache: Pull on disk data structures out into a separate header 2013-11-10 21:56:33 -08:00
sysfs.c bcache: Convert gc to a kthread 2013-11-10 21:56:04 -08:00
sysfs.h bcache: Don't export utility code, prefix with bch_ 2013-03-28 12:50:55 -06:00
trace.c bcache: Break up struct search 2013-11-10 21:56:32 -08:00
util.c bcache: Fix a writeback performance regression 2013-09-24 14:41:43 -07:00
util.h bcache: Pull on disk data structures out into a separate header 2013-11-10 21:56:33 -08:00
writeback.c bcache: Convert bch_btree_insert() to bch_btree_map_leaf_nodes() 2013-11-10 21:56:31 -08:00
writeback.h bcache: Convert writeback to a kthread 2013-11-10 21:56:05 -08:00