mbox series

[0/7] btrfs: Use btrfs_find_item whenever possible

Message ID 20210804184854.10696-1-mpdesouza@suse.com (mailing list archive)
Headers show
Series btrfs: Use btrfs_find_item whenever possible | expand

Message

Marcos Paulo de Souza Aug. 4, 2021, 6:48 p.m. UTC
Searching for a key in btrfs is a very common task, so try to use
btrfs_find_item whenever possible to avoid boilerplate code, while making the
code simpler when possible.

Please review!

Thanks,
  Marcos

Marcos Paulo de Souza (7):
  btrfs: Reorder btrfs_find_item arguments
  btrfs: backref: Use btrfs_find_item in btrfs_find_one_extref
  btrfs: zoned: Use btrfs_find_item in calculate_emulated_zone_size
  btrfs: root-tree: Use btrfs_find_item in btrfs_find_orphan_roots
  btrfs: scrub: Use btrfs_find_item in scrub_enumerate_chunks
  btrfs: tree-log: Simplify log_new_ancestors
  btrfs: ioctl: Simplify btrfs_ioctl_get_subvol_info

 fs/btrfs/backref.c   | 73 +++++++++-----------------------------------
 fs/btrfs/ctree.c     |  2 +-
 fs/btrfs/ctree.h     |  2 +-
 fs/btrfs/ioctl.c     | 56 +++++++++++++--------------------
 fs/btrfs/root-tree.c | 32 +++++--------------
 fs/btrfs/scrub.c     | 52 +++++++++----------------------
 fs/btrfs/tree-log.c  | 40 ++++++++----------------
 fs/btrfs/zoned.c     | 21 ++++---------
 8 files changed, 79 insertions(+), 199 deletions(-)