diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-09-20 07:32:20 +0200 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 23:10:14 +0200 |
commit | 40a53b92150fe9576538f775138413c40cdb30cf (patch) | |
tree | e1cb18facfe52e36dfa93ffd5485a29a73967c0a /fs/bcachefs/io_write.c | |
parent | bcachefs: Minor bch2_btree_node_get() smatch fixes (diff) | |
download | linux-40a53b92150fe9576538f775138413c40cdb30cf.tar.xz linux-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/io_write.c')
-rw-r--r-- | fs/bcachefs/io_write.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/io_write.c b/fs/bcachefs/io_write.c index 659330cbe357..d2a0de886c7a 100644 --- a/fs/bcachefs/io_write.c +++ b/fs/bcachefs/io_write.c @@ -930,7 +930,7 @@ static int bch2_write_extent(struct bch_write_op *op, struct write_point *wp, do { struct bch_extent_crc_unpacked crc = { 0 }; struct bversion version = op->version; - size_t dst_len, src_len; + size_t dst_len = 0, src_len = 0; if (page_alloc_failed && dst->bi_iter.bi_size < (wp->sectors_free << 9) && |