Commit 8528bde1 authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: Fix uninitialized var warning

Can't actually be used uninitialized, but gcc was being silly.
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 759bb4ea
...@@ -690,7 +690,7 @@ static int check_extent_to_backpointers(struct btree_trans *trans, ...@@ -690,7 +690,7 @@ static int check_extent_to_backpointers(struct btree_trans *trans,
ptrs = bch2_bkey_ptrs_c(k); ptrs = bch2_bkey_ptrs_c(k);
bkey_for_each_ptr_decode(k.k, ptrs, p, entry) { bkey_for_each_ptr_decode(k.k, ptrs, p, entry) {
struct bpos bucket_pos; struct bpos bucket_pos = POS_MIN;
struct bch_backpointer bp; struct bch_backpointer bp;
if (p.ptr.cached) if (p.ptr.cached)
......
...@@ -1134,7 +1134,7 @@ static int __trigger_extent(struct btree_trans *trans, ...@@ -1134,7 +1134,7 @@ static int __trigger_extent(struct btree_trans *trans,
r.e.nr_required = 1; r.e.nr_required = 1;
bkey_for_each_ptr_decode(k.k, ptrs, p, entry) { bkey_for_each_ptr_decode(k.k, ptrs, p, entry) {
s64 disk_sectors; s64 disk_sectors = 0;
ret = bch2_trigger_pointer(trans, btree_id, level, k, p, entry, &disk_sectors, flags); ret = bch2_trigger_pointer(trans, btree_id, level, k, p, entry, &disk_sectors, flags);
if (ret < 0) if (ret < 0)
return ret; return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment