diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2025-08-26 16:48:18 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-08-27 18:47:54 -0400 |
commit | 90cbe3f3b4289abb39804bb0f7e78ad286e556fd (patch) | |
tree | fa8d131708938a2cb50f45295a0f5d3aa0ba0bc8 /libbcachefs/vstructs.h | |
parent | 4b97a99fa263096297816f64e45cac85d4fa8011 (diff) |
Update bcachefs sources to 753b29cc7989 bcachefs: opts.data_allowed should be OPT_FORMAT
Diffstat (limited to 'libbcachefs/vstructs.h')
-rw-r--r-- | libbcachefs/vstructs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libbcachefs/vstructs.h b/libbcachefs/vstructs.h index 2ad338e2..446770ec 100644 --- a/libbcachefs/vstructs.h +++ b/libbcachefs/vstructs.h @@ -23,6 +23,9 @@ (size_t) (offsetof(_type, _data) + (_u64s) * sizeof(u64)); \ }) +#define vstruct_u64s(_s) \ + (offsetof(typeof(*(_s)), _data) / sizeof(u64) + __vstruct_u64s(_s)) + #define vstruct_bytes(_s) \ __vstruct_bytes(typeof(*(_s)), __vstruct_u64s(_s)) |