diff options
author | Kent Overstreet <kmo@daterainc.com> | 2013-07-25 05:14:44 +0400 |
---|---|---|
committer | Kent Overstreet <kmo@daterainc.com> | 2013-11-11 09:56:33 +0400 |
commit | e58ff155034791ed3a5563d24a50fae0a8c1617c (patch) | |
tree | df8019038a66203db7af65fc045d41561a228255 /drivers/md/bcache/bset.h | |
parent | 81ab4190ac17df41686a37c97f701623276b652a (diff) | |
download | linux-e58ff155034791ed3a5563d24a50fae0a8c1617c.tar.xz |
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>
Diffstat (limited to 'drivers/md/bcache/bset.h')
0 files changed, 0 insertions, 0 deletions