diff options
| author | Ken Raeburn <raeburn@redhat.com> | 2026-02-26 20:12:06 -0500 |
|---|---|---|
| committer | Mikulas Patocka <mpatocka@redhat.com> | 2026-03-02 17:03:18 +0100 |
| commit | 6af58aa3b028e364c0a8f8b6be48fca17e571de3 (patch) | |
| tree | fc42a34c760213832c89f9cafc691e8c073c44f4 /tools/perf/scripts/python | |
| parent | 5282ac80183bd25e44c4f5f52a7f46e9a54289eb (diff) | |
dm vdo: update vdo_allocate_extended to take a field name, no types
All of VDO's "extended" allocations use a flexible array field at the
end of the allocated structure. We can infer the struct type from the
supplied pointer. Replacing the array field type with the field name
lets us use struct_size from overflow.h to compute the size instead of
the local __vdo_do_allocation version.
One allocation of bio structures doesn't conform to this pattern,
since the removal of bi_inline_vecs; directly compute the total size
for that case.
Signed-off-by: Ken Raeburn <raeburn@redhat.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
