mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 05:09:17 -04:00
bcachefs: Make bch_option compatible with Rust ffi
Rust FFI lacks support for unnamed structs and unions. The space saved in bch_option is not enough to be significant. Signed-off-by: Brett Holman <bholman.devel@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
committed by
Kent Overstreet
parent
ee4d17d032
commit
372c11125a
@@ -455,17 +455,9 @@ struct bch_option {
|
||||
enum opt_flags flags;
|
||||
u64 min, max;
|
||||
|
||||
union {
|
||||
struct {
|
||||
};
|
||||
struct {
|
||||
const char * const *choices;
|
||||
};
|
||||
struct {
|
||||
int (*parse)(struct bch_fs *, const char *, u64 *);
|
||||
void (*to_text)(struct printbuf *, struct bch_fs *, struct bch_sb *, u64);
|
||||
};
|
||||
};
|
||||
const char * const *choices;
|
||||
int (*parse)(struct bch_fs *, const char *, u64 *);
|
||||
void (*to_text)(struct printbuf *, struct bch_fs *, struct bch_sb *, u64);
|
||||
|
||||
const char *hint;
|
||||
const char *help;
|
||||
|
||||
Reference in New Issue
Block a user