1. 18 4月, 2017 4 次提交
  2. 28 2月, 2017 1 次提交
  3. 06 12月, 2016 7 次提交
  4. 29 11月, 2016 1 次提交
  5. 01 11月, 2016 1 次提交
  6. 27 9月, 2016 1 次提交
  7. 08 6月, 2016 2 次提交
  8. 06 5月, 2016 1 次提交
  9. 04 5月, 2016 1 次提交
  10. 28 4月, 2016 5 次提交
  11. 07 1月, 2016 1 次提交
    • B
      Btrfs: use linux/sizes.h to represent constants · ee22184b
      Byongho Lee 提交于
      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' & '8192' because it's
      more intuitive than 'SZ_4KB' & 'SZ_8KB'.
      Signed-off-by: NByongho Lee <bhlee.kernel@gmail.com>
      Signed-off-by: NDavid Sterba <dsterba@suse.com>
      ee22184b
  12. 03 12月, 2015 1 次提交
  13. 25 11月, 2015 1 次提交
  14. 27 10月, 2015 5 次提交
  15. 22 10月, 2015 2 次提交
  16. 14 10月, 2015 1 次提交
    • D
      btrfs: check unsupported filters in balance arguments · 8eb93459
      David Sterba 提交于
      We don't verify that all the balance filter arguments supplemented by
      the flags are actually known to the kernel. Thus we let it silently pass
      and do nothing.
      
      At the moment this means only the 'limit' filter, but we're going to add
      a few more soon so it's better to have that fixed. Also in older stable
      kernels so that it works with newer userspace tools.
      
      Cc: stable@vger.kernel.org # 3.16+
      Signed-off-by: NDavid Sterba <dsterba@suse.com>
      Signed-off-by: NChris Mason <clm@fb.com>
      8eb93459
  17. 02 10月, 2015 1 次提交
  18. 01 10月, 2015 1 次提交
    • A
      Btrfs: enhance btrfs_scratch_superblock to scratch all superblocks · 12b1c263
      Anand Jain 提交于
      This patch updates and renames btrfs_scratch_superblocks, (which is used
      by the replace device thread), with those fixes from the scratch
      superblock code section of btrfs_rm_device(). The fixes are:
        Scratch all copies of superblock
        Notify kobject that superblock has been changed
        Update time on the device
      
      So that btrfs_rm_device() can use the function
      btrfs_scratch_superblocks() instead of its own scratch code. And further
      replace deivce code which similarly releases device back to the system,
      will have the fixes from the btrfs device delete.
      Signed-off-by: NAnand Jain <anand.jain@oracle.com>
      [renamed to btrfs_scratch_superblock]
      Signed-off-by: NDavid Sterba <dsterba@suse.com>
      12b1c263
  19. 29 9月, 2015 1 次提交
  20. 29 7月, 2015 1 次提交
    • J
      btrfs: iterate over unused chunk space in FITRIM · 499f377f
      Jeff Mahoney 提交于
      Since we now clean up block groups automatically as they become
      empty, iterating over block groups is no longer sufficient to discard
      unused space.
      
      This patch iterates over the unused chunk space and discards any regions
      that are unallocated, regardless of whether they were ever used.  This is
      a change for btrfs but is consistent with other file systems.
      
      We do this in a transactionless manner since the discard process can take
      a substantial amount of time and a transaction would need to be started
      before the acquisition of the device list lock.  That would mean a
      transaction would be held open across /all/ of the discards collectively.
      In order to prevent other threads from allocating or freeing chunks, we
      hold the chunks lock across the search and discard calls.  We release it
      between searches to allow the file system to perform more-or-less
      normally.  Since the running transaction can commit and disappear while
      we're using the transaction pointer, we take a reference to it and
      release it after the search.  This is safe since it would happen normally
      at the end of the transaction commit after any locks are released anyway.
      We also take the commit_root_sem to protect against a transaction starting
      and committing while we're running.
      Signed-off-by: NJeff Mahoney <jeffm@suse.com>
      Reviewed-by: NFilipe Manana <fdmanana@suse.com>
      Tested-by: NFilipe Manana <fdmanana@suse.com>
      Signed-off-by: NChris Mason <clm@fb.com>
      499f377f
  21. 27 5月, 2015 1 次提交