<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/fs/btrfs/zlib.c, branch linux-3.17.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.17.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.17.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2014-07-03T14:04:13Z</updated>
<entry>
<title>btrfs: use E2BIG instead of EIO if compression does not help</title>
<updated>2014-07-03T14:04:13Z</updated>
<author>
<name>David Sterba</name>
</author>
<published>2014-06-20T09:43:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=130d5b415a091e493ac1508b9d27bbb85ba7b8c0'/>
<id>urn:sha1:130d5b415a091e493ac1508b9d27bbb85ba7b8c0</id>
<content type='text'>
Return codes got updated in 60e1975acb48fc3d74a3422b21dde74c977ac3d5
(btrfs: return errno instead of -1 from compression)
lzo wrapper returns E2BIG in this case, do the same for zlib.

Signed-off-by: David Sterba &lt;dsterba@suse.cz&gt;
</content>
</entry>
<entry>
<title>btrfs: return errno instead of -1 from compression</title>
<updated>2014-06-10T00:20:21Z</updated>
<author>
<name>Zach Brown</name>
</author>
<published>2014-05-09T21:15:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=60e1975acb48fc3d74a3422b21dde74c977ac3d5'/>
<id>urn:sha1:60e1975acb48fc3d74a3422b21dde74c977ac3d5</id>
<content type='text'>
The compression layer seems to have been built to return -1 and have
callers make up errors that make sense.  This isn't great because there
are different errors that originate down in the compression layer.

Let's return real negative errnos from the compression layer so that
callers can pass on the error without having to guess what happened.
ENOMEM for allocation failure, E2BIG when compression exceeds the
uncompressed input, and EIO for everything else.

This helps a future path return errors from btrfs_decompress().

Signed-off-by: Zach Brown &lt;zab@redhat.com&gt;
Signed-off-by: Chris Mason &lt;clm@fb.com&gt;
</content>
</entry>
<entry>
<title>Btrfs: convert printk to btrfs_ and fix BTRFS prefix</title>
<updated>2014-01-28T21:20:05Z</updated>
<author>
<name>Frank Holton</name>
</author>
<published>2013-12-20T16:37:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=efe120a067c8674a8ae21b194f0e68f098b61ee2'/>
<id>urn:sha1:efe120a067c8674a8ae21b194f0e68f098b61ee2</id>
<content type='text'>
Convert all applicable cases of printk and pr_* to the btrfs_* macros.

Fix all uses of the BTRFS prefix.

Signed-off-by: Frank Holton &lt;fholton@gmail.com&gt;
Signed-off-by: Josef Bacik &lt;jbacik@fb.com&gt;
Signed-off-by: Chris Mason &lt;clm@fb.com&gt;
</content>
</entry>
<entry>
<title>btrfs: fix message printing</title>
<updated>2012-10-09T13:19:57Z</updated>
<author>
<name>Daniel J Blueman</name>
</author>
<published>2012-05-07T12:35:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=489406626c42c0176fddae2182d33be2cfb9840c'/>
<id>urn:sha1:489406626c42c0176fddae2182d33be2cfb9840c</id>
<content type='text'>
Fix various messages to include newline and module prefix.

Signed-off-by: Daniel J Blueman &lt;daniel@quora.org&gt;
</content>
</entry>
<entry>
<title>btrfs: remove the second argument of k[un]map_atomic()</title>
<updated>2012-03-20T13:48:21Z</updated>
<author>
<name>Cong Wang</name>
</author>
<published>2011-11-25T15:14:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7ac687d9e047b3fa335f04e18c7188db6a170334'/>
<id>urn:sha1:7ac687d9e047b3fa335f04e18c7188db6a170334</id>
<content type='text'>
Signed-off-by: Cong Wang &lt;amwang@redhat.com&gt;
</content>
</entry>
<entry>
<title>zlib: slim down zlib_deflate() workspace when possible</title>
<updated>2011-03-23T00:44:17Z</updated>
<author>
<name>Jim Keniston</name>
</author>
<published>2011-03-22T23:35:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=565d76cb7d5fd7cb010fd690602280a69ab116ef'/>
<id>urn:sha1:565d76cb7d5fd7cb010fd690602280a69ab116ef</id>
<content type='text'>
Instead of always creating a huge (268K) deflate_workspace with the
maximum compression parameters (windowBits=15, memLevel=8), allow the
caller to obtain a smaller workspace by specifying smaller parameter
values.

For example, when capturing oops and panic reports to a medium with
limited capacity, such as NVRAM, compression may be the only way to
capture the whole report.  In this case, a small workspace (24K works
fine) is a win, whether you allocate the workspace when you need it (i.e.,
during an oops or panic) or at boot time.

I've verified that this patch works with all accepted values of windowBits
(positive and negative), memLevel, and compression level.

Signed-off-by: Jim Keniston &lt;jkenisto@us.ibm.com&gt;
Cc: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
Cc: David Miller &lt;davem@davemloft.net&gt;
Cc: Chris Mason &lt;chris.mason@oracle.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>btrfs: Extract duplicate decompress code</title>
<updated>2010-12-22T15:15:50Z</updated>
<author>
<name>Li Zefan</name>
</author>
<published>2010-11-08T07:22:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3a39c18d63fec35f49df577d4b2a4e29c2212f22'/>
<id>urn:sha1:3a39c18d63fec35f49df577d4b2a4e29c2212f22</id>
<content type='text'>
Add a common function to copy decompressed data from working buffer
to bio pages.

Signed-off-by: Li Zefan &lt;lizf@cn.fujitsu.com&gt;
</content>
</entry>
<entry>
<title>btrfs: Allow to add new compression algorithm</title>
<updated>2010-12-22T15:15:45Z</updated>
<author>
<name>Li Zefan</name>
</author>
<published>2010-12-17T06:21:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=261507a02ccba9afda919852263b6bc1581ce1ef'/>
<id>urn:sha1:261507a02ccba9afda919852263b6bc1581ce1ef</id>
<content type='text'>
Make the code aware of compression type, instead of always assuming
zlib compression.

Also make the zlib workspace function as common code for all
compression types.

Signed-off-by: Li Zefan &lt;lizf@cn.fujitsu.com&gt;
</content>
</entry>
<entry>
<title>btrfs: Fix error handling in zlib</title>
<updated>2010-12-22T15:15:43Z</updated>
<author>
<name>Li Zefan</name>
</author>
<published>2010-11-09T00:27:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4b72029dc3fd6ba7dc45ccd1cf0aa0ebfa209bd3'/>
<id>urn:sha1:4b72029dc3fd6ba7dc45ccd1cf0aa0ebfa209bd3</id>
<content type='text'>
Return failure if alloc_page() fails to allocate memory,
and the upper code will just give up compression.

Signed-off-by: Li Zefan &lt;lizf@cn.fujitsu.com&gt;
</content>
</entry>
<entry>
<title>btrfs: Fix bugs in zlib workspace</title>
<updated>2010-12-22T15:15:41Z</updated>
<author>
<name>Li Zefan</name>
</author>
<published>2010-10-25T07:11:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8844355df7f4e091b03cc131e1549631238b397b'/>
<id>urn:sha1:8844355df7f4e091b03cc131e1549631238b397b</id>
<content type='text'>
- Fix a race that can result in alloc_workspace &gt; cpus.
- Fix to check num_workspace after wakeup.

Signed-off-by: Li Zefan &lt;lizf@cn.fujitsu.com&gt;
</content>
</entry>
</feed>
