diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-03-05 04:36:02 +0100 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 23:09:55 +0200 |
commit | 45dd05b3ecc371560f9e36e4b57295ee338ee879 (patch) | |
tree | b4b456bfb9d1928a673d8e888cfb375c7d8a5002 /fs/bcachefs/btree_io.c | |
parent | bcachefs: moving_context->stats is allowed to be NULL (diff) | |
download | linux-45dd05b3ecc371560f9e36e4b57295ee338ee879.tar.xz linux-45dd05b3ecc371560f9e36e4b57295ee338ee879.zip |
bcachefs: BKEY_PADDED_ONSTACK()
Rust bindgen doesn't do anonymous structs very nicely: BKEY_PADDED()
only needs the anonymous struct when it's used on the stack, to
guarantee layout, not when it's embedded in another struct.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/btree_io.c')
-rw-r--r-- | fs/bcachefs/btree_io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/btree_io.c b/fs/bcachefs/btree_io.c index 358a285c3bcf..159a97596052 100644 --- a/fs/bcachefs/btree_io.c +++ b/fs/bcachefs/btree_io.c @@ -1847,7 +1847,7 @@ static void btree_write_submit(struct work_struct *work) { struct btree_write_bio *wbio = container_of(work, struct btree_write_bio, work); struct bch_extent_ptr *ptr; - __BKEY_PADDED(k, BKEY_BTREE_PTR_VAL_U64s_MAX) tmp; + BKEY_PADDED_ONSTACK(k, BKEY_BTREE_PTR_VAL_U64s_MAX) tmp; bkey_copy(&tmp.k, &wbio->key); |