<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/fs/btrfs/compression.h, branch linux-5.12.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.12.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.12.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2020-10-07T10:06:55Z</updated>
<entry>
<title>btrfs: compression: move declarations to header</title>
<updated>2020-10-07T10:06:55Z</updated>
<author>
<name>David Sterba</name>
</author>
<published>2020-08-17T08:58:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cb4c9198302b02c3f0eaf4267636e5ce1f4a4765'/>
<id>urn:sha1:cb4c9198302b02c3f0eaf4267636e5ce1f4a4765</id>
<content type='text'>
The declarations of compression algorithm callbacks are defined in the
.c file as they're used from there. Compiler warns that there are no
declarations for public functions when compiling lzo.c/zlib.c/zstd.c.
Fix that by moving the declarations to the header as it's the common
place for all of them.

Reviewed-by: Josef Bacik &lt;josef@toxicpanda.com&gt;
Signed-off-by: David Sterba &lt;dsterba@suse.com&gt;
</content>
</entry>
<entry>
<title>btrfs: make btrfs_submit_compressed_write take btrfs_inode</title>
<updated>2020-07-27T10:55:31Z</updated>
<author>
<name>Nikolay Borisov</name>
</author>
<published>2020-06-03T05:55:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c7ee1819dc7169348eb93a088970ae143aa27435'/>
<id>urn:sha1:c7ee1819dc7169348eb93a088970ae143aa27435</id>
<content type='text'>
Majority of its uses are for btrfs_inode so take it as an argument
directly.

Signed-off-by: Nikolay Borisov &lt;nborisov@suse.com&gt;
Reviewed-by: David Sterba &lt;dsterba@suse.com&gt;
Signed-off-by: David Sterba &lt;dsterba@suse.com&gt;
</content>
</entry>
<entry>
<title>btrfs: unexport btrfs_compress_set_level()</title>
<updated>2020-05-25T09:25:37Z</updated>
<author>
<name>Anand Jain</name>
</author>
<published>2020-05-12T05:37:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=adbab6420c973f37079b1ce9b7e8a12f54810250'/>
<id>urn:sha1:adbab6420c973f37079b1ce9b7e8a12f54810250</id>
<content type='text'>
btrfs_compress_set_level() can be static function in the file
compression.c.

Reviewed-by: Johannes Thumshirn &lt;johannes.thumshirn@wdc.com&gt;
Signed-off-by: Anand Jain &lt;anand.jain@oracle.com&gt;
Reviewed-by: David Sterba &lt;dsterba@suse.com&gt;
Signed-off-by: David Sterba &lt;dsterba@suse.com&gt;
</content>
</entry>
<entry>
<title>btrfs: compression: remove ops pointer from workspace_manager</title>
<updated>2019-11-18T11:46:59Z</updated>
<author>
<name>David Sterba</name>
</author>
<published>2019-10-04T01:09:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0cf252131361cdeebb7dfc88dd8ec825fff0956a'/>
<id>urn:sha1:0cf252131361cdeebb7dfc88dd8ec825fff0956a</id>
<content type='text'>
We can infer the ops from the type that is now passed to all functions
that would need it, this makes workspace_manager::ops redundant and can
be removed.

Reviewed-by: Johannes Thumshirn &lt;jthumshirn@suse.de&gt;
Reviewed-by: Nikolay Borisov &lt;nborisov@suse.com&gt;
Signed-off-by: David Sterba &lt;dsterba@suse.com&gt;
</content>
</entry>
<entry>
<title>btrfs: compression: inline free_workspace</title>
<updated>2019-11-18T11:46:59Z</updated>
<author>
<name>David Sterba</name>
</author>
<published>2019-10-04T00:57:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1e002351605db4f2fc4114cbb973d5aead72d006'/>
<id>urn:sha1:1e002351605db4f2fc4114cbb973d5aead72d006</id>
<content type='text'>
Replace indirect calls to free_workspace by switch and calls to the
specific callbacks. This is mainly to get rid of the indirection due to
spectre vulnerability mitigations.

Reviewed-by: Johannes Thumshirn &lt;jthumshirn@suse.de&gt;
Reviewed-by: Nikolay Borisov &lt;nborisov@suse.com&gt;
Signed-off-by: David Sterba &lt;dsterba@suse.com&gt;
</content>
</entry>
<entry>
<title>btrfs: compression: pass type to btrfs_put_workspace</title>
<updated>2019-11-18T11:46:59Z</updated>
<author>
<name>David Sterba</name>
</author>
<published>2019-10-04T00:50:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a3bbd2a9ee3c08b60b3127843866bdc76757c24f'/>
<id>urn:sha1:a3bbd2a9ee3c08b60b3127843866bdc76757c24f</id>
<content type='text'>
We can infer the workspace_manager from type and the type will be used
in the following patch to call a common helper for free_workspace.

Reviewed-by: Johannes Thumshirn &lt;jthumshirn@suse.de&gt;
Reviewed-by: Nikolay Borisov &lt;nborisov@suse.com&gt;
Signed-off-by: David Sterba &lt;dsterba@suse.com&gt;
</content>
</entry>
<entry>
<title>btrfs: compression: inline alloc_workspace</title>
<updated>2019-11-18T11:46:58Z</updated>
<author>
<name>David Sterba</name>
</author>
<published>2019-10-04T00:47:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c778df140644142fb7e12b7e468b137721d85890'/>
<id>urn:sha1:c778df140644142fb7e12b7e468b137721d85890</id>
<content type='text'>
Replace indirect calls to alloc_workspace by switch and calls to the
specific callbacks. This is mainly to get rid of the indirection due to
spectre vulnerability mitigations.

Reviewed-by: Johannes Thumshirn &lt;jthumshirn@suse.de&gt;
Reviewed-by: Nikolay Borisov &lt;nborisov@suse.com&gt;
Signed-off-by: David Sterba &lt;dsterba@suse.com&gt;
</content>
</entry>
<entry>
<title>btrfs: compression: pass type to btrfs_get_workspace</title>
<updated>2019-11-18T11:46:58Z</updated>
<author>
<name>David Sterba</name>
</author>
<published>2019-10-04T00:50:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5907a9bb13cea3bbf0c54d6a9a1ccf5edebedeed'/>
<id>urn:sha1:5907a9bb13cea3bbf0c54d6a9a1ccf5edebedeed</id>
<content type='text'>
We can infer the workspace_manager from type and the type will be used
in the following patch to call a common helper for alloc_workspace.

Reviewed-by: Johannes Thumshirn &lt;jthumshirn@suse.de&gt;
Reviewed-by: Nikolay Borisov &lt;nborisov@suse.com&gt;
Signed-off-by: David Sterba &lt;dsterba@suse.com&gt;
</content>
</entry>
<entry>
<title>btrfs: compression: inline put_workspace</title>
<updated>2019-11-18T11:46:58Z</updated>
<author>
<name>David Sterba</name>
</author>
<published>2019-10-04T00:42:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bd3a5287cc20e37f1e365be1f742b6c574e3f83c'/>
<id>urn:sha1:bd3a5287cc20e37f1e365be1f742b6c574e3f83c</id>
<content type='text'>
Similar to get_workspace, majority of the callbacks is trivial, we don't
gain anything by the indirection, so replace them by a switch function.
Trivial callback implementations use the helper.

Reviewed-by: Johannes Thumshirn &lt;jthumshirn@suse.de&gt;
Reviewed-by: Nikolay Borisov &lt;nborisov@suse.com&gt;
Signed-off-by: David Sterba &lt;dsterba@suse.com&gt;
</content>
</entry>
<entry>
<title>btrfs: compression: inline get_workspace</title>
<updated>2019-11-18T11:46:58Z</updated>
<author>
<name>David Sterba</name>
</author>
<published>2019-10-04T00:36:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6a0d12724bd2dd1c766769578e221ce1d10a4656'/>
<id>urn:sha1:6a0d12724bd2dd1c766769578e221ce1d10a4656</id>
<content type='text'>
Majority of the callbacks is trivial, we don't gain anything by the
indirection, so replace them by a switch function.

ZLIB needs to adjust level in the callback and ZSTD workspace management
is complex, the rest is call to the helper.

Reviewed-by: Johannes Thumshirn &lt;jthumshirn@suse.de&gt;
Reviewed-by: Nikolay Borisov &lt;nborisov@suse.com&gt;
Signed-off-by: David Sterba &lt;dsterba@suse.com&gt;
</content>
</entry>
</feed>
