summaryrefslogtreecommitdiff
path: root/libbcachefs/io.h
diff options
context:
space:
mode:
Diffstat (limited to 'libbcachefs/io.h')
-rw-r--r--libbcachefs/io.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbcachefs/io.h b/libbcachefs/io.h
index 90948bb0..87d80fb2 100644
--- a/libbcachefs/io.h
+++ b/libbcachefs/io.h
@@ -113,7 +113,7 @@ static inline struct bch_write_bio *wbio_init(struct bio *bio)
{
struct bch_write_bio *wbio = to_wbio(bio);
- memset(wbio, 0, offsetof(struct bch_write_bio, bio));
+ memset(&wbio->wbio, 0, sizeof(wbio->wbio));
return wbio;
}