1. 13 Dec, 2019 1 commit
  2. 18 Nov, 2019 2 commits
  3. 09 Sep, 2019 1 commit
  4. 29 Apr, 2019 6 commits
  5. 09 Apr, 2019 1 commit
    • Sakari Ailus's avatar
      treewide: Switch printk users from %pf and %pF to %ps and %pS, respectively · d75f773c
      Sakari Ailus authored
      %pF and %pf are functionally equivalent to %pS and %ps conversion
      specifiers. The former are deprecated, therefore switch the current users
      to use the preferred variant.
      
      The changes have been produced by the following command:
      
      	git grep -l '%p[fF]' | grep -v '^\(tools\|Documentation\)/' | \
      	while read i; do perl -i -pe 's/%pf/%ps/g; s/%pF/%pS/g;' $i; done
      
      And verifying the result.
      
      Link: http://lkml.kernel.org/r/20190325193229.23390-1-sakari.ailus@linux.intel.com
      Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: sparclinux@vger.kernel.org
      Cc: linux-um@lists.infradead.org
      Cc: xen-devel@lists.xenproject.org
      Cc: linux-acpi@vger.kernel.org
      Cc: linux-pm@vger.kernel.org
      Cc: drbd-dev@lists.linbit.com
      Cc: linux-block@vger.kernel.org
      Cc: linux-mmc@vger.kernel.org
      Cc: linux-nvdimm@lists.01.org
      Cc: linux-pci@vger.kernel.org
      Cc: linux-scsi@vger.kernel.org
      Cc: linux-btrfs@vger.kernel.org
      C...
      d75f773c
  6. 29 May, 2018 2 commits
  7. 28 May, 2018 7 commits
  8. 12 Apr, 2018 1 commit
  9. 30 Oct, 2017 1 commit
  10. 16 Aug, 2017 1 commit
    • Nikolay Borisov's avatar
      btrfs: remove unused sectorsize member · 23d1f737
      Nikolay Borisov authored
      
      
      The sectorsize member of btrfs_block_group_cache is unused. So remove it, this
      reduces the number of holes in the struct.
      
      With patch:
      /* size: 856, cachelines: 14, members: 40 */
      /* sum members: 837, holes: 4, sum holes: 19 */
      /* bit holes: 1, sum bit holes: 29 bits */
      /* last cacheline: 24 bytes */
      
      Without patch:
      /* size: 864, cachelines: 14, members: 41 */
      /* sum members: 841, holes: 5, sum holes: 23 */
      /* bit holes: 1, sum bit holes: 29 bits */
      /* last cacheline: 32 bytes */
      Signed-off-by: default avatarNikolay Borisov <nborisov@suse.com>
      Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
      Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
      23d1f737
  11. 06 Dec, 2016 1 commit
  12. 03 Oct, 2016 3 commits
  13. 26 Jul, 2016 1 commit
  14. 02 Jun, 2016 1 commit
  15. 18 Feb, 2016 1 commit
    • Kinglong Mee's avatar
      btrfs: fix memory leak of fs_info in block group cache · aa66b0bb
      Kinglong Mee authored
      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:
          [<ffffffff8174d52e>] kmemleak_alloc+0x4e/0xb0
          [<ffffffff811d09aa>] kmem_cache_alloc_trace+0xea/0x1e0
          [<ffffffffa03620fb>] btrfs_alloc_dummy_fs_info+0x6b/0x2a0 [btrfs]
          [<ffffffffa03624fc>] btrfs_alloc_dummy_block_group+0x5c/0x120 [btrfs]
          [<ffffffffa0360aa9>] btrfs_test_free_space_cache+0x39/0xed0 [btrfs]
          [<ffffffffa03b5a74>] trace_raw_output_xfs_attr_class+0x54/0xe0 [xfs]
          [<ffffffff81002122>] do_one_initcall+0xb2/0x1f0
          [<ffffffff811765aa>] do_init_module+0x5e/0x1e9
          [<ffffffff810fec09>] load_module+0x20a9/0x2690
          [<ffffffff810ff439>] SyS_finit_module+0xb9/0xf0
          [<ffffffff81757daf>] entry_SYSCALL_64_fastpath+0x12/0x76
          [<ffffffffffffffff>] 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:
          [<ffffffff8174d52e>] kmemleak_alloc+0x4e/0xb0
          [<ffffffff8119ca6e>] kmalloc_order+0x5e/0x70
          [<ffffffff8119caa4>] kmalloc_order_trace+0x24/0x90
          [<ffffffffa03620b3>] btrfs_alloc_dummy_fs_info+0x23/0x2a0 [btrfs]
          [<ffffffffa03624fc>] btrfs_alloc_dummy_block_group+0x5c/0x120 [btrfs]
          [<ffffffffa036603d>] run_test+0xfd/0x320 [btrfs]
          [<ffffffffa0366f34>] btrfs_test_free_space_tree+0x94/0xee [btrfs]
          [<ffffffffa03b5aab>] trace_raw_output_xfs_attr_class+0x8b/0xe0 [xfs]
          [<ffffffff81002122>] do_one_initcall+0xb2/0x1f0
          [<ffffffff811765aa>] do_init_module+0x5e/0x1e9
          [<ffffffff810fec09>] load_module+0x20a9/0x2690
          [<ffffffff810ff439>] SyS_finit_module+0xb9/0xf0
          [<ffffffff81757daf>] entry_SYSCALL_64_fastpath+0x12/0x76
          [<ffffffffffffffff>] 0xffffffffffffffff
      
      This patch lets btrfs using fs_info stored in btrfs_root for
      block group cache directly without allocating a new one.
      
      Fixes: d0bd4560
      
       ("Btrfs: add fragment=* debug mount option")
      Signed-off-by: default avatarKinglong Mee <kinglongmee@gmail.com>
      Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
      aa66b0bb
  16. 17 Dec, 2015 1 commit