[0/5] some trivial cleanup about btrfs_delete_subvolume
mbox series

Message ID 20180804131057.9967-1-lufq.fnst@cn.fujitsu.com
Headers show
Series
  • some trivial cleanup about btrfs_delete_subvolume
Related show

Message

Lu Fengqi Aug. 4, 2018, 1:10 p.m. UTC
During I am working on the online undelete of subvolume, I found something
in the btrfs_delete_subvolume need to be clean or fix. So, the patchset
is mostly about the callee or itself of btrfs_delete_subvolume.

Patch 1,3-5 some trivial cleanup
Patch 2 fix a problem about qgroup_free_meta_prealloc() in
btrfs_subvolume_reserve_metadata()

Lu Fengqi (5):
  btrfs: simplify the send_in_progress check in btrfs_delete_subvolume()
  btrfs: use a separate variable to store the num_bytes of the
    qgroup_reserve
  btrfs: switch update_size to bool in both of btrfs_block_rsv_migrate
    and btrfs_rsv_add_bytes
  btrfs: remove a useless return statement in btrfs_block_rsv_add
  btrfs: Remove root parameter from btrfs_insert_dir_item

 fs/btrfs/ctree.h         |  5 ++---
 fs/btrfs/delayed-inode.c |  4 ++--
 fs/btrfs/dir-item.c      |  8 ++++----
 fs/btrfs/extent-tree.c   | 36 ++++++++++++++++--------------------
 fs/btrfs/file.c          |  4 ++--
 fs/btrfs/inode.c         | 20 +++++++++-----------
 fs/btrfs/ioctl.c         |  3 +--
 fs/btrfs/relocation.c    |  2 +-
 fs/btrfs/transaction.c   |  7 +++----
 9 files changed, 40 insertions(+), 49 deletions(-)