diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-09-20 01:32:20 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:10:14 -0400 |
commit | 40a53b92150fe9576538f775138413c40cdb30cf (patch) | |
tree | e1cb18facfe52e36dfa93ffd5485a29a73967c0a /fs/bcachefs/super-io.c | |
parent | 51c801bc6414e88d686fb3229c54d7dda1508778 (diff) | |
download | linux-stable-40a53b92150fe9576538f775138413c40cdb30cf.tar.gz linux-stable-40a53b92150fe9576538f775138413c40cdb30cf.tar.bz2 linux-stable-40a53b92150fe9576538f775138413c40cdb30cf.zip |
bcachefs: More minor smatch fixes
- fix a few uninitialized return values
- return a proper error code in lookup_lostfound()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/super-io.c')
-rw-r--r-- | fs/bcachefs/super-io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/super-io.c b/fs/bcachefs/super-io.c index e0bd50983bb2..55bc03d2e8ed 100644 --- a/fs/bcachefs/super-io.c +++ b/fs/bcachefs/super-io.c @@ -185,7 +185,7 @@ int bch2_sb_realloc(struct bch_sb_handle *sb, unsigned u64s) if (sb->sb && sb->buffer_size >= new_buffer_size) return 0; - if (sb->have_layout) { + if (sb->sb && sb->have_layout) { u64 max_bytes = 512 << sb->sb->layout.sb_max_size_bits; if (new_bytes > max_bytes) { |