bcachefs: Initialize bch_write_op->failed in inline data path
authorKent Overstreet <kent.overstreet@linux.dev>
Sat, 4 May 2024 16:29:46 +0000 (12:29 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 6 May 2024 14:58:17 +0000 (10:58 -0400)
commit1267df40acb2da62b1641abae26132411d093fb3
treefe7da4e7da6142e83b4e5188ea61f2159eb123cf
parentfeb077c1774e559cddfc41ef26c864780d158fe2
bcachefs: Initialize bch_write_op->failed in inline data path

Normally this is initialized in __bch2_write(), which is executed in a
loop, but the inline data path skips this.

Reported-by: syzbot+fd3ccb331eb21f05d13b@syzkaller.appspotmail.com
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/io_write.c