[00/30] Redundant argument cleanups, part 1
mbox series

Message ID cover.1553539114.git.dsterba@suse.com
Headers show
Series
  • Redundant argument cleanups, part 1
Related show

Message

David Sterba March 25, 2019, 6:46 p.m. UTC
This is first batch of utterly trivial changes that clean the cruft that
accumulated over the years. When fs_info has been added to
extent_buffer, few of the functions have been updated to reduce the
redundant arugments.

This series removes fs_info/eb combination. There are more such pairs,
patchsets will follow. Once all of them are cleaned, I strongly hope
that new code will not reintroduce them.

As the changes touch a lot of files, I'll merge the series either
partially or at some appropriate time not to create unnecessary
conflicts with pending patches.

David Sterba (30):
  btrfs: get fs_info from eb in lock_extent_buffer_for_io
  btrfs: get fs_info from eb in repair_eb_io_failure
  btrfs: get fs_info from eb in write_one_eb
  btrfs: get fs_info from eb in leaf_data_end
  btrfs: get fs_info from eb in btrfs_exclude_logged_extents
  btrfs: get fs_info from eb in check_tree_block_fsid
  btrfs: get fs_info from eb in tree_mod_log_eb_copy
  btrfs: get fs_info from eb in clean_tree_block
  btrfs: get fs_info from eb in btrfs_leaf_free_space
  btrfs: get fs_info from eb in read_node_slot
  btrfs: get fs_info from eb in btree_read_extent_buffer_pages
  btrfs: get fs_info from eb in btrfs_verify_level_key
  btrfs: tree-checker: get fs_info from eb in generic_err
  btrfs: tree-checker: get fs_info from eb in file_extent_err
  btrfs: tree-checker: get fs_info from eb in check_csum_item
  btrfs: tree-checker: get fs_info from eb in dir_item_err
  btrfs: tree-checker: get fs_info from eb in check_dir_item
  btrfs: tree-checker: get fs_info from eb in block_group_err
  btrfs: tree-checker: get fs_info from eb in check_block_group_item
  btrfs: tree-checker: get fs_info from eb in check_extent_data_item
  btrfs: tree-checker: get fs_info from eb in check_leaf_item
  btrfs: tree-checker: get fs_info from eb in check_leaf
  btrfs: get fs_info from eb in btrfs_check_leaf_full
  btrfs: get fs_info from eb in btrfs_check_leaf_relaxed
  btrfs: get fs_info from eb in btrfs_check_node
  btrfs: get fs_info from eb in should_balance_chunk
  btrfs: get fs_info from eb in btrfs_check_chunk_valid
  btrfs: get fs_info from eb in read_one_chunk
  btrfs: get fs_info from eb in read_one_chunk
  btrfs: get fs_info from eb in btrfs_check_leaf_write

 fs/btrfs/ctree.c           | 139 +++++++++++++++++-----------------
 fs/btrfs/ctree.h           |  11 +--
 fs/btrfs/delayed-inode.c   |   3 +-
 fs/btrfs/disk-io.c         |  39 +++++-----
 fs/btrfs/disk-io.h         |   5 +-
 fs/btrfs/extent-tree.c     |  10 +--
 fs/btrfs/extent_io.c       |  18 ++---
 fs/btrfs/extent_io.h       |   3 +-
 fs/btrfs/file-item.c       |   4 +-
 fs/btrfs/file.c            |   2 +-
 fs/btrfs/free-space-tree.c |   2 +-
 fs/btrfs/print-tree.c      |   2 +-
 fs/btrfs/qgroup.c          |   2 +-
 fs/btrfs/tree-checker.c    | 149 ++++++++++++++++++-------------------
 fs/btrfs/tree-checker.h    |  11 +--
 fs/btrfs/tree-log.c        |   8 +-
 fs/btrfs/volumes.c         |  27 ++++---
 fs/btrfs/xattr.c           |   2 +-
 18 files changed, 207 insertions(+), 230 deletions(-)