diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-05-28 18:20:52 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-05-28 18:21:51 -0400 |
commit | 8528bde1b66bab9a0abc2f521523abd00049c81b (patch) | |
tree | 27e1a2df94f6e003e1a0cf730c88153ccac2d5f4 /fs/bcachefs/buckets.c | |
parent | 759bb4eabc727077145f3173f8ef6c2ac745c3d6 (diff) |
bcachefs: Fix uninitialized var warning
Can't actually be used uninitialized, but gcc was being silly.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/buckets.c')
-rw-r--r-- | fs/bcachefs/buckets.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/buckets.c b/fs/bcachefs/buckets.c index b469586517a8..ed97712d0db1 100644 --- a/fs/bcachefs/buckets.c +++ b/fs/bcachefs/buckets.c @@ -1134,7 +1134,7 @@ static int __trigger_extent(struct btree_trans *trans, r.e.nr_required = 1; 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); if (ret < 0) return ret; |