Skip to content

btrfs: Use btrfs_find_item whenever possible

Marcos Paulo de Souza linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7btrfs: Reorder btrfs_find_item argumentsfs/btrfs/backref.c fs/btrfs/ctree.c fs/btrfs/ctree.h+6 -74 replies
2/7btrfs: backref: Use btrfs_find_item in btrfs_find_one_extreffs/btrfs/backref.c+11 -531 reply
3/7btrfs: zoned: Use btrfs_find_item in calculate_emulated_zone_sizefs/btrfs/zoned.c+6 -154 replies
4/7btrfs: root-tree: Use btrfs_find_item in btrfs_find_orphan_rootsfs/btrfs/root-tree.c+8 -241 reply
5/7btrfs: scrub: Use btrfs_find_item in scrub_enumerate_chunksfs/btrfs/scrub.c+14 -380 replies
6/7btrfs: tree-log: Simplify log_new_ancestorsfs/btrfs/tree-log.c+12 -282 replies
7/7btrfs: ioctl: Simplify btrfs_ioctl_get_subvol_infofs/btrfs/ioctl.c+22 -342 replies

Reviews trailers per patch

3 of 7 patches have a Reviewed-by or Acked-by.

PatchQu WenruoAnand Jain
1/7
2/7R-b
3/7R-b
4/7
5/7
6/7
7/7R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/7] btrfs: Use btrfs_find_item whenever possible

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(-)
Signature · 1 line
2.31.1