summaryrefslogtreecommitdiff
path: root/drivers/md/bcache/extents.h
diff options
context:
space:
mode:
authorKent Overstreet <kmo@daterainc.com>2014-04-10 17:58:49 -0700
committerKent Overstreet <kmo@daterainc.com>2014-08-04 15:23:02 -0700
commit9aa61a992acceeec0d1de2cd99938421498659d5 (patch)
treed414fdba809e0193f0d19d5ea80180ef96f3a23e /drivers/md/bcache/extents.h
parent5b1016e62f74c53e0330403025954c8d95384c03 (diff)
bcache: Fix a journal replay bug
journal replay wansn't validating pointers with bch_extent_invalid() before derefing, fixed Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Diffstat (limited to 'drivers/md/bcache/extents.h')
-rw-r--r--drivers/md/bcache/extents.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/bcache/extents.h b/drivers/md/bcache/extents.h
index e4e23409782d..e2ed54054e7a 100644
--- a/drivers/md/bcache/extents.h
+++ b/drivers/md/bcache/extents.h
@@ -9,5 +9,6 @@ struct cache_set;
void bch_extent_to_text(char *, size_t, const struct bkey *);
bool __bch_btree_ptr_invalid(struct cache_set *, const struct bkey *);
+bool __bch_extent_invalid(struct cache_set *, const struct bkey *);
#endif /* _BCACHE_EXTENTS_H */