BUDDY_REQS(): name argument now names the struct

parent 7acb1991
......@@ -547,7 +547,7 @@ BUDDYF(take_ptr_extent)(buddy_t *buddy, const struct buddy_ptr_extent *rs,
#endif
#define BUDDY_REQS(name, size) \
struct { \
struct name { \
struct i_reqalloc reqs_i[size]; \
struct buddy_reqs reqs; \
}
......
......@@ -263,6 +263,8 @@ enum stvfe_scope {
STVFE_VCL_EMPTY // fail unless storage is empty
};
BUDDY_REQS(ban_reqs_s, DLE_BAN_REG_NREGION);
struct stvfe {
unsigned magic;
#define STVFE_MAGIC 0x26172c91
......@@ -298,7 +300,7 @@ struct stvfe {
} banstat;
struct buddy_off_extent ban_space[DLE_BAN_REG_NREGION];
/* async reservation for ban export disk space */
BUDDY_REQS(reqs, DLE_BAN_REG_NREGION) ban_reqs[1];
struct ban_reqs_s ban_reqs[1];
VTAILQ_ENTRY(stvfe) list;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment