summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-09-28 07:54:12 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-23 00:10:16 +0300
commit4fc1f402c6c259b1f44e45c096ac6666925a9b87 (patch)
tree7e16b5c5c37e866218f3217270dc3b7bad91fe2f /fs
parentdc08c661a291f5e479fdde8322a4c295c69a3aef (diff)
downloadlinux-4fc1f402c6c259b1f44e45c096ac6666925a9b87.tar.xz
bcachefs: Fix another smatch complaint
This should be harmless, but initialize last_seq anyways. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs')
-rw-r--r--fs/bcachefs/recovery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/recovery.c b/fs/bcachefs/recovery.c
index 9dbaf080dcdd..cd037f2e4235 100644
--- a/fs/bcachefs/recovery.c
+++ b/fs/bcachefs/recovery.c
@@ -644,7 +644,7 @@ int bch2_fs_recovery(struct bch_fs *c)
{
struct bch_sb_field_clean *clean = NULL;
struct jset *last_journal_entry = NULL;
- u64 last_seq, blacklist_seq, journal_seq;
+ u64 last_seq = 0, blacklist_seq, journal_seq;
bool write_sb = false;
int ret = 0;