<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/fs/bcachefs/darray.c, branch v6.12.80</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=v6.12.80</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=v6.12.80'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2024-10-20T20:50:14+00:00</updated>
<entry>
<title>bcachefs: Workaround for kvmalloc() not supporting &gt; INT_MAX allocations</title>
<updated>2024-10-20T20:50:14+00:00</updated>
<author>
<name>Kent Overstreet</name>
<email>kent.overstreet@linux.dev</email>
</author>
<published>2024-10-19T22:27:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=f0d3302073e60b55318c941cd10b225a3cde9d32'/>
<id>urn:sha1:f0d3302073e60b55318c941cd10b225a3cde9d32</id>
<content type='text'>
kvmalloc() doesn't support allocations &gt; INT_MAX, but vmalloc() does -
the limit should be lifted, but we can work around this for now.

A user with a 75 TB filesystem reported the following journal replay
error:
https://github.com/koverstreet/bcachefs/issues/769

In journal replay we have to sort and dedup all the keys from the
journal, which means we need a large contiguous allocation. Given that
the user has 128GB of ram, the 2GB limit on allocation size has become
far too small.

Signed-off-by: Kent Overstreet &lt;kent.overstreet@linux.dev&gt;
</content>
</entry>
<entry>
<title>bcachefs: darray: convert to alloc_hooks()</title>
<updated>2024-09-09T13:41:49+00:00</updated>
<author>
<name>Kent Overstreet</name>
<email>kent.overstreet@linux.dev</email>
</author>
<published>2024-08-22T07:50:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=a803fa551d53e4504a8dfca57817319f71030e2c'/>
<id>urn:sha1:a803fa551d53e4504a8dfca57817319f71030e2c</id>
<content type='text'>
better memory allocation profiling support

Signed-off-by: Kent Overstreet &lt;kent.overstreet@linux.dev&gt;
</content>
</entry>
<entry>
<title>bcachefs: darray: Don't pass NULL to memcpy()</title>
<updated>2024-07-15T01:52:37+00:00</updated>
<author>
<name>Tavian Barnes</name>
<email>tavianator@tavianator.com</email>
</author>
<published>2024-06-21T20:29:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=2e118ba36d56acf78084518dfb7cb53b1d417da0'/>
<id>urn:sha1:2e118ba36d56acf78084518dfb7cb53b1d417da0</id>
<content type='text'>
memcpy's second parameter must not be NULL, even if size is zero.

Signed-off-by: Tavian Barnes &lt;tavianator@tavianator.com&gt;
Signed-off-by: Kent Overstreet &lt;kent.overstreet@linux.dev&gt;
</content>
</entry>
<entry>
<title>bcachefs: DARRAY_PREALLOCATED()</title>
<updated>2024-01-01T16:46:52+00:00</updated>
<author>
<name>Kent Overstreet</name>
<email>kent.overstreet@linux.dev</email>
</author>
<published>2023-12-30T19:38:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=099dc5c29dff52c0c37abcaa6cc747a1ac8df5fe'/>
<id>urn:sha1:099dc5c29dff52c0c37abcaa6cc747a1ac8df5fe</id>
<content type='text'>
Add support to darray for preallocating some number of elements.

Signed-off-by: Kent Overstreet &lt;kent.overstreet@linux.dev&gt;
</content>
</entry>
<entry>
<title>bcachefs: Switch darray to kvmalloc()</title>
<updated>2024-01-01T16:46:52+00:00</updated>
<author>
<name>Kent Overstreet</name>
<email>kent.overstreet@linux.dev</email>
</author>
<published>2023-11-17T00:44:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=a58a6a58f5ad55aa1f5c54598c44f1d9938c1793'/>
<id>urn:sha1:a58a6a58f5ad55aa1f5c54598c44f1d9938c1793</id>
<content type='text'>
We sometimes use darrays for quite large buffers - the btree write
buffer in particular needs large buffers, since it must be sized to hold
all the write buffer keys outstanding in the journal.

Signed-off-by: Kent Overstreet &lt;kent.overstreet@linux.dev&gt;
</content>
</entry>
<entry>
<title>bcachefs: Factor out darray resize slowpath</title>
<updated>2024-01-01T16:46:52+00:00</updated>
<author>
<name>Kent Overstreet</name>
<email>kent.overstreet@linux.dev</email>
</author>
<published>2023-11-08T22:11:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=73ab9e03861c22ec6723b7b110d62ba60f37c164'/>
<id>urn:sha1:73ab9e03861c22ec6723b7b110d62ba60f37c164</id>
<content type='text'>
Move the slowpath (actually growing the darray) to an out-of-line
function; also, add some helpers for the upcoming btree write buffer
rewrite.

Signed-off-by: Kent Overstreet &lt;kent.overstreet@linux.dev&gt;
</content>
</entry>
</feed>
