summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2018-06-12 11:20:21 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2018-06-12 11:24:53 -0400
commit0eb4ad1d972af77b94073f328c85f958b53e3fdb (patch)
treee51f23a568dbc904b5150ea7ce57a7f789ee3e6e
parent12daee0f9d39799816fd15e1f393bf169b0d8dcc (diff)
bcachefs: Fix a bug in the str_hash code
fixes b0f3e786995cb3b12975503f963e469db5a4f09b
-rw-r--r--fs/bcachefs/str_hash.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/str_hash.h b/fs/bcachefs/str_hash.h
index f7dd0144f608..c80510952b71 100644
--- a/fs/bcachefs/str_hash.h
+++ b/fs/bcachefs/str_hash.h
@@ -237,6 +237,7 @@ static inline int bch2_hash_needs_whiteout(const struct bch_hash_desc desc,
{
struct bkey_s_c k;
+ bch2_btree_iter_copy(iter, start);
bch2_btree_iter_next_slot(iter);
for_each_btree_key_continue(iter, BTREE_ITER_SLOTS, k) {