bcachefs: Drop some anonymous structs, unions
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 5 Mar 2023 04:05:55 +0000 (23:05 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:55 +0000 (17:09 -0400)
commitac2ccddc2689d5889fd1520383738b60dbafc1d0
treec090c0f7749633a7d03ba3790fc2f9ec1b396318
parent45dd05b3ecc371560f9e36e4b57295ee338ee879
bcachefs: Drop some anonymous structs, unions

Rust bindgen doesn't cope well with anonymous structs and unions. This
patch drops the fancy anonymous structs & unions in bkey_i that let us
use the same helpers for bkey_i and bkey_packed; since bkey_packed is an
internal type that's never exposed to outside code, it's only a minor
inconvenienc.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
15 files changed:
fs/bcachefs/bcachefs_format.h
fs/bcachefs/bkey.h
fs/bcachefs/bkey_sort.c
fs/bcachefs/bset.c
fs/bcachefs/bset.h
fs/bcachefs/btree_io.c
fs/bcachefs/btree_key_cache.c
fs/bcachefs/btree_update_interior.c
fs/bcachefs/debug.c
fs/bcachefs/extents.h
fs/bcachefs/io.c
fs/bcachefs/journal_io.c
fs/bcachefs/journal_io.h
fs/bcachefs/recovery.c
fs/bcachefs/reflink.c