<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/drivers/md/dm-vdo/memory-alloc.h, branch linux-7.1.y</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=linux-7.1.y</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=linux-7.1.y'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2026-03-02T16:03:28+00:00</updated>
<entry>
<title>dm vdo: remove redundant TYPE argument from vdo_allocate macro</title>
<updated>2026-03-02T16:03:28+00:00</updated>
<author>
<name>Ken Raeburn</name>
<email>raeburn@redhat.com</email>
</author>
<published>2026-02-27T01:12:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=9bb388b1a95751c4a4a99a4dab1b21136a4eeb96'/>
<id>urn:sha1:9bb388b1a95751c4a4a99a4dab1b21136a4eeb96</id>
<content type='text'>
We can infer the type needed from the supplied pointer argument. A
couple invocation sites needed fixing to supply the proper type of
pointer.

Use overflow.h's size_mul, and we can remove the __vdo_do_allocation
wrapper which did the same overflow check.

Signed-off-by: Ken Raeburn &lt;raeburn@redhat.com&gt;
Signed-off-by: Mikulas Patocka &lt;mpatocka@redhat.com&gt;
</content>
</entry>
<entry>
<title>dm vdo: update vdo_allocate_extended to take a field name, no types</title>
<updated>2026-03-02T16:03:18+00:00</updated>
<author>
<name>Ken Raeburn</name>
<email>raeburn@redhat.com</email>
</author>
<published>2026-02-27T01:12:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=6af58aa3b028e364c0a8f8b6be48fca17e571de3'/>
<id>urn:sha1:6af58aa3b028e364c0a8f8b6be48fca17e571de3</id>
<content type='text'>
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 &lt;raeburn@redhat.com&gt;
Signed-off-by: Mikulas Patocka &lt;mpatocka@redhat.com&gt;
</content>
</entry>
<entry>
<title>dm vdo memory-alloc: return VDO_SUCCESS on success</title>
<updated>2024-03-04T20:07:56+00:00</updated>
<author>
<name>Mike Snitzer</name>
<email>snitzer@kernel.org</email>
</author>
<published>2024-02-13T17:37:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=97d3380396b4cbf302912a0e818fa074afdc0db5'/>
<id>urn:sha1:97d3380396b4cbf302912a0e818fa074afdc0db5</id>
<content type='text'>
Signed-off-by: Mike Snitzer &lt;snitzer@kernel.org&gt;
Signed-off-by: Matthew Sakai &lt;msakai@redhat.com&gt;
</content>
</entry>
<entry>
<title>dm vdo memory-alloc: rename vdo_do_allocation to __vdo_do_allocation</title>
<updated>2024-03-04T20:07:56+00:00</updated>
<author>
<name>Mike Snitzer</name>
<email>snitzer@kernel.org</email>
</author>
<published>2024-02-13T17:17:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=8f89115efc1e8f34dd3182e2f3f7064225b52762'/>
<id>urn:sha1:8f89115efc1e8f34dd3182e2f3f7064225b52762</id>
<content type='text'>
__vdo_do_allocation shouldn't be used outside of memory-alloc.h, so
add hidden prefix.

Also, tabify the vdo_allocate_extended macro.

Signed-off-by: Mike Snitzer &lt;snitzer@kernel.org&gt;
Signed-off-by: Matthew Sakai &lt;msakai@redhat.com&gt;
</content>
</entry>
<entry>
<title>dm vdo memory-alloc: change from uds_ to vdo_ namespace</title>
<updated>2024-03-04T20:07:56+00:00</updated>
<author>
<name>Mike Snitzer</name>
<email>snitzer@kernel.org</email>
</author>
<published>2024-02-13T16:55:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=0eea6b6e78daa45ca13e9b186da042f9b6139b50'/>
<id>urn:sha1:0eea6b6e78daa45ca13e9b186da042f9b6139b50</id>
<content type='text'>
Signed-off-by: Mike Snitzer &lt;snitzer@kernel.org&gt;
Signed-off-by: Matthew Sakai &lt;msakai@redhat.com&gt;
</content>
</entry>
<entry>
<title>dm vdo: add memory allocation utilities</title>
<updated>2024-02-20T18:43:13+00:00</updated>
<author>
<name>Matthew Sakai</name>
<email>msakai@redhat.com</email>
</author>
<published>2023-11-17T00:41:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=46766d4888ffdfd2bce91a6879bd6285a92a4881'/>
<id>urn:sha1:46766d4888ffdfd2bce91a6879bd6285a92a4881</id>
<content type='text'>
This patch adds standardized allocation macros and memory tracking tools to
track and report any allocated memory that is not freed. This makes it
easier to ensure that the vdo target does not leak memory.

This patch also adds utilities for controlling whether certain threads are
allowed to allocate memory, since memory allocation during certain critical
code sections can cause the vdo target to deadlock.

Co-developed-by: J. corwin Coburn &lt;corwin@hurlbutnet.net&gt;
Signed-off-by: J. corwin Coburn &lt;corwin@hurlbutnet.net&gt;
Co-developed-by: Michael Sclafani &lt;dm-devel@lists.linux.dev&gt;
Signed-off-by: Michael Sclafani &lt;dm-devel@lists.linux.dev&gt;
Co-developed-by: Thomas Jaskiewicz &lt;tom@jaskiewicz.us&gt;
Signed-off-by: Thomas Jaskiewicz &lt;tom@jaskiewicz.us&gt;
Co-developed-by: Ken Raeburn &lt;raeburn@redhat.com&gt;
Signed-off-by: Ken Raeburn &lt;raeburn@redhat.com&gt;
Signed-off-by: Matthew Sakai &lt;msakai@redhat.com&gt;
Signed-off-by: Mike Snitzer &lt;snitzer@kernel.org&gt;
</content>
</entry>
</feed>
