<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-stable.git/fs/btrfs/tests, branch linux-4.5.y</title>
<subtitle>Linux kernel stable tree</subtitle>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/'/>
<entry>
<title>btrfs: fix memory leak of fs_info in block group cache</title>
<updated>2016-05-04T21:49:15+00:00</updated>
<author>
<name>Kinglong Mee</name>
<email>kinglongmee@gmail.com</email>
</author>
<published>2016-01-29T13:36:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=151d2afffebe6d5a5a34d50f8447e395bb8fd8a4'/>
<id>151d2afffebe6d5a5a34d50f8447e395bb8fd8a4</id>
<content type='text'>
commit aa66b0bb08869d93492bd817d2eae694ca743a3d upstream.

When starting up linux with btrfs filesystem, I got many memory leak
messages by kmemleak as,

unreferenced object 0xffff880066882000 (size 4096):
  comm "modprobe", pid 730, jiffies 4294690024 (age 196.599s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    [&lt;ffffffff8174d52e&gt;] kmemleak_alloc+0x4e/0xb0
    [&lt;ffffffff811d09aa&gt;] kmem_cache_alloc_trace+0xea/0x1e0
    [&lt;ffffffffa03620fb&gt;] btrfs_alloc_dummy_fs_info+0x6b/0x2a0 [btrfs]
    [&lt;ffffffffa03624fc&gt;] btrfs_alloc_dummy_block_group+0x5c/0x120 [btrfs]
    [&lt;ffffffffa0360aa9&gt;] btrfs_test_free_space_cache+0x39/0xed0 [btrfs]
    [&lt;ffffffffa03b5a74&gt;] trace_raw_output_xfs_attr_class+0x54/0xe0 [xfs]
    [&lt;ffffffff81002122&gt;] do_one_initcall+0xb2/0x1f0
    [&lt;ffffffff811765aa&gt;] do_init_module+0x5e/0x1e9
    [&lt;ffffffff810fec09&gt;] load_module+0x20a9/0x2690
    [&lt;ffffffff810ff439&gt;] SyS_finit_module+0xb9/0xf0
    [&lt;ffffffff81757daf&gt;] entry_SYSCALL_64_fastpath+0x12/0x76
    [&lt;ffffffffffffffff&gt;] 0xffffffffffffffff
unreferenced object 0xffff8800573f8000 (size 10256):
  comm "modprobe", pid 730, jiffies 4294690185 (age 196.460s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    [&lt;ffffffff8174d52e&gt;] kmemleak_alloc+0x4e/0xb0
    [&lt;ffffffff8119ca6e&gt;] kmalloc_order+0x5e/0x70
    [&lt;ffffffff8119caa4&gt;] kmalloc_order_trace+0x24/0x90
    [&lt;ffffffffa03620b3&gt;] btrfs_alloc_dummy_fs_info+0x23/0x2a0 [btrfs]
    [&lt;ffffffffa03624fc&gt;] btrfs_alloc_dummy_block_group+0x5c/0x120 [btrfs]
    [&lt;ffffffffa036603d&gt;] run_test+0xfd/0x320 [btrfs]
    [&lt;ffffffffa0366f34&gt;] btrfs_test_free_space_tree+0x94/0xee [btrfs]
    [&lt;ffffffffa03b5aab&gt;] trace_raw_output_xfs_attr_class+0x8b/0xe0 [xfs]
    [&lt;ffffffff81002122&gt;] do_one_initcall+0xb2/0x1f0
    [&lt;ffffffff811765aa&gt;] do_init_module+0x5e/0x1e9
    [&lt;ffffffff810fec09&gt;] load_module+0x20a9/0x2690
    [&lt;ffffffff810ff439&gt;] SyS_finit_module+0xb9/0xf0
    [&lt;ffffffff81757daf&gt;] entry_SYSCALL_64_fastpath+0x12/0x76
    [&lt;ffffffffffffffff&gt;] 0xffffffffffffffff

This patch lets btrfs using fs_info stored in btrfs_root for
block group cache directly without allocating a new one.

Fixes: d0bd456074 ("Btrfs: add fragment=* debug mount option")
Signed-off-by: Kinglong Mee &lt;kinglongmee@gmail.com&gt;
Signed-off-by: David Sterba &lt;dsterba@suse.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit aa66b0bb08869d93492bd817d2eae694ca743a3d upstream.

When starting up linux with btrfs filesystem, I got many memory leak
messages by kmemleak as,

unreferenced object 0xffff880066882000 (size 4096):
  comm "modprobe", pid 730, jiffies 4294690024 (age 196.599s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    [&lt;ffffffff8174d52e&gt;] kmemleak_alloc+0x4e/0xb0
    [&lt;ffffffff811d09aa&gt;] kmem_cache_alloc_trace+0xea/0x1e0
    [&lt;ffffffffa03620fb&gt;] btrfs_alloc_dummy_fs_info+0x6b/0x2a0 [btrfs]
    [&lt;ffffffffa03624fc&gt;] btrfs_alloc_dummy_block_group+0x5c/0x120 [btrfs]
    [&lt;ffffffffa0360aa9&gt;] btrfs_test_free_space_cache+0x39/0xed0 [btrfs]
    [&lt;ffffffffa03b5a74&gt;] trace_raw_output_xfs_attr_class+0x54/0xe0 [xfs]
    [&lt;ffffffff81002122&gt;] do_one_initcall+0xb2/0x1f0
    [&lt;ffffffff811765aa&gt;] do_init_module+0x5e/0x1e9
    [&lt;ffffffff810fec09&gt;] load_module+0x20a9/0x2690
    [&lt;ffffffff810ff439&gt;] SyS_finit_module+0xb9/0xf0
    [&lt;ffffffff81757daf&gt;] entry_SYSCALL_64_fastpath+0x12/0x76
    [&lt;ffffffffffffffff&gt;] 0xffffffffffffffff
unreferenced object 0xffff8800573f8000 (size 10256):
  comm "modprobe", pid 730, jiffies 4294690185 (age 196.460s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    [&lt;ffffffff8174d52e&gt;] kmemleak_alloc+0x4e/0xb0
    [&lt;ffffffff8119ca6e&gt;] kmalloc_order+0x5e/0x70
    [&lt;ffffffff8119caa4&gt;] kmalloc_order_trace+0x24/0x90
    [&lt;ffffffffa03620b3&gt;] btrfs_alloc_dummy_fs_info+0x23/0x2a0 [btrfs]
    [&lt;ffffffffa03624fc&gt;] btrfs_alloc_dummy_block_group+0x5c/0x120 [btrfs]
    [&lt;ffffffffa036603d&gt;] run_test+0xfd/0x320 [btrfs]
    [&lt;ffffffffa0366f34&gt;] btrfs_test_free_space_tree+0x94/0xee [btrfs]
    [&lt;ffffffffa03b5aab&gt;] trace_raw_output_xfs_attr_class+0x8b/0xe0 [xfs]
    [&lt;ffffffff81002122&gt;] do_one_initcall+0xb2/0x1f0
    [&lt;ffffffff811765aa&gt;] do_init_module+0x5e/0x1e9
    [&lt;ffffffff810fec09&gt;] load_module+0x20a9/0x2690
    [&lt;ffffffff810ff439&gt;] SyS_finit_module+0xb9/0xf0
    [&lt;ffffffff81757daf&gt;] entry_SYSCALL_64_fastpath+0x12/0x76
    [&lt;ffffffffffffffff&gt;] 0xffffffffffffffff

This patch lets btrfs using fs_info stored in btrfs_root for
block group cache directly without allocating a new one.

Fixes: d0bd456074 ("Btrfs: add fragment=* debug mount option")
Signed-off-by: Kinglong Mee &lt;kinglongmee@gmail.com&gt;
Signed-off-by: David Sterba &lt;dsterba@suse.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>btrfs: tests: switch to GFP_KERNEL</title>
<updated>2016-01-22T09:28:24+00:00</updated>
<author>
<name>David Sterba</name>
<email>dsterba@suse.com</email>
</author>
<published>2016-01-22T09:28:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=8cce83ba5062a301a09e0920df813bbbdd3e9dbf'/>
<id>8cce83ba5062a301a09e0920df813bbbdd3e9dbf</id>
<content type='text'>
There's no reason to do GFP_NOFS in tests, it's not data-heavy and
memory allocation failures would affect only developers or testers.

Signed-off-by: David Sterba &lt;dsterba@suse.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There's no reason to do GFP_NOFS in tests, it's not data-heavy and
memory allocation failures would affect only developers or testers.

Signed-off-by: David Sterba &lt;dsterba@suse.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'misc-cleanups-4.5' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux into for-linus-4.5</title>
<updated>2016-01-11T14:08:37+00:00</updated>
<author>
<name>Chris Mason</name>
<email>clm@fb.com</email>
</author>
<published>2016-01-11T14:08:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=b28cf57246d5b797ba725bb033110c247f2c301f'/>
<id>b28cf57246d5b797ba725bb033110c247f2c301f</id>
<content type='text'>
Signed-off-by: Chris Mason &lt;clm@fb.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Chris Mason &lt;clm@fb.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'misc-for-4.5' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux into for-linus-4.5</title>
<updated>2016-01-11T13:59:32+00:00</updated>
<author>
<name>Chris Mason</name>
<email>clm@fb.com</email>
</author>
<published>2016-01-11T13:59:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=a3058101c17d2825f34a0ab5c37d93ead0f4d9dc'/>
<id>a3058101c17d2825f34a0ab5c37d93ead0f4d9dc</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>btrfs: constify remaining structs with function pointers</title>
<updated>2016-01-07T14:01:14+00:00</updated>
<author>
<name>David Sterba</name>
<email>dsterba@suse.com</email>
</author>
<published>2015-11-19T10:42:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=20e5506baf3fd651e245bc970d8c11a734ee1b8a'/>
<id>20e5506baf3fd651e245bc970d8c11a734ee1b8a</id>
<content type='text'>
* struct extent_io_ops
* struct btrfs_free_space_op

Signed-off-by: David Sterba &lt;dsterba@suse.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* struct extent_io_ops
* struct btrfs_free_space_op

Signed-off-by: David Sterba &lt;dsterba@suse.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>btrfs tests: replace whole ops structure for free space tests</title>
<updated>2016-01-07T14:01:14+00:00</updated>
<author>
<name>David Sterba</name>
<email>dsterba@suse.com</email>
</author>
<published>2015-11-19T10:42:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=28f0779a3fd6ef015303780f0b9a92b24728bc4b'/>
<id>28f0779a3fd6ef015303780f0b9a92b24728bc4b</id>
<content type='text'>
Preparatory work for making btrfs_free_space_op constant. In
test_steal_space_from_bitmap_to_extent, we substitute use_bitmap with
own version thus preventing constification. We can rework it so we
replace the whole structure with the correct function pointers.

Signed-off-by: David Sterba &lt;dsterba@suse.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Preparatory work for making btrfs_free_space_op constant. In
test_steal_space_from_bitmap_to_extent, we substitute use_bitmap with
own version thus preventing constification. We can rework it so we
replace the whole structure with the correct function pointers.

Signed-off-by: David Sterba &lt;dsterba@suse.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Btrfs: use linux/sizes.h to represent constants</title>
<updated>2016-01-07T13:38:02+00:00</updated>
<author>
<name>Byongho Lee</name>
<email>bhlee.kernel@gmail.com</email>
</author>
<published>2015-12-14T16:42:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=ee22184b53c823f6956314c2815d4068e3820737'/>
<id>ee22184b53c823f6956314c2815d4068e3820737</id>
<content type='text'>
We use many constants to represent size and offset value.  And to make
code readable we use '256 * 1024 * 1024' instead of '268435456' to
represent '256MB'.  However we can make far more readable with 'SZ_256MB'
which is defined in the 'linux/sizes.h'.

So this patch replaces 'xxx * 1024 * 1024' kind of expression with
single 'SZ_xxxMB' if 'xxx' is a power of 2 then 'xxx * SZ_1M' if 'xxx' is
not a power of 2. And I haven't touched to '4096' &amp; '8192' because it's
more intuitive than 'SZ_4KB' &amp; 'SZ_8KB'.

Signed-off-by: Byongho Lee &lt;bhlee.kernel@gmail.com&gt;
Signed-off-by: David Sterba &lt;dsterba@suse.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We use many constants to represent size and offset value.  And to make
code readable we use '256 * 1024 * 1024' instead of '268435456' to
represent '256MB'.  However we can make far more readable with 'SZ_256MB'
which is defined in the 'linux/sizes.h'.

So this patch replaces 'xxx * 1024 * 1024' kind of expression with
single 'SZ_xxxMB' if 'xxx' is a power of 2 then 'xxx * SZ_1M' if 'xxx' is
not a power of 2. And I haven't touched to '4096' &amp; '8192' because it's
more intuitive than 'SZ_4KB' &amp; 'SZ_8KB'.

Signed-off-by: Byongho Lee &lt;bhlee.kernel@gmail.com&gt;
Signed-off-by: David Sterba &lt;dsterba@suse.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'freespace-tree' into for-linus-4.5</title>
<updated>2015-12-18T19:11:10+00:00</updated>
<author>
<name>Chris Mason</name>
<email>clm@fb.com</email>
</author>
<published>2015-12-18T19:11:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=f7d3d2f99eeaa9f5c111965b1516972f4fc5e449'/>
<id>f7d3d2f99eeaa9f5c111965b1516972f4fc5e449</id>
<content type='text'>
Signed-off-by: Chris Mason &lt;clm@fb.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Chris Mason &lt;clm@fb.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Btrfs: add free space tree sanity tests</title>
<updated>2015-12-17T20:16:47+00:00</updated>
<author>
<name>Omar Sandoval</name>
<email>osandov@fb.com</email>
</author>
<published>2015-09-30T03:50:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=7c55ee0c4afba4434d973117234577ae6ff77a1c'/>
<id>7c55ee0c4afba4434d973117234577ae6ff77a1c</id>
<content type='text'>
This tests the operations on the free space tree trying to excercise all
of the main cases for both formats. Between this and xfstests, the free
space tree should have pretty good coverage.

Signed-off-by: Omar Sandoval &lt;osandov@fb.com&gt;
Signed-off-by: Chris Mason &lt;clm@fb.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This tests the operations on the free space tree trying to excercise all
of the main cases for both formats. Between this and xfstests, the free
space tree should have pretty good coverage.

Signed-off-by: Omar Sandoval &lt;osandov@fb.com&gt;
Signed-off-by: Chris Mason &lt;clm@fb.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Btrfs: add extent buffer bitmap sanity tests</title>
<updated>2015-12-17T20:16:46+00:00</updated>
<author>
<name>Omar Sandoval</name>
<email>osandov@fb.com</email>
</author>
<published>2015-09-30T03:50:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=0f3312295d3ce1d82392244236a52b3b663480ef'/>
<id>0f3312295d3ce1d82392244236a52b3b663480ef</id>
<content type='text'>
Sanity test the extent buffer bitmap operations (test, set, and clear)
against the equivalent standard kernel operations.

Signed-off-by: Omar Sandoval &lt;osandov@fb.com&gt;
Signed-off-by: Chris Mason &lt;clm@fb.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Sanity test the extent buffer bitmap operations (test, set, and clear)
against the equivalent standard kernel operations.

Signed-off-by: Omar Sandoval &lt;osandov@fb.com&gt;
Signed-off-by: Chris Mason &lt;clm@fb.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
