Skip to content

xfs: remove unused arguments from many functions

Eric Sandeen linux-xfs 2 versions Applied

Status from this message: Applied to for-next, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest14 patches 4 repliesApplied
  2. v114 patches 0 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/14xfs: remove unused args argument from xfs_attr_node_lookup()fs/xfs/libxfs/xfs_attr.c+5 -70 replies
2/14xfs: remove unused rsvd argument from xfs_bmap_add_attrfork()fs/xfs/libxfs/xfs_attr.c fs/xfs/libxfs/xfs_bmap.c fs/xfs/libxfs/xfs_bmap.h +2 more+5 -60 replies
3/14xfs: remove unused mp and ops arguments from xfbtree_rec_bytes()fs/xfs/libxfs/xfs_btree_mem.c+2 -40 replies
4/14xfs: remove unused mp argument from xfs_exchmaps_check_forks()fs/xfs/libxfs/xfs_exchmaps.c fs/xfs/libxfs/xfs_exchmaps.h fs/xfs/xfs_exchrange.c+2 -40 replies
5/14xfs: remove unused mp argument from xfs_inobt_rec_check_count()fs/xfs/libxfs/xfs_ialloc.c fs/xfs/libxfs/xfs_ialloc_btree.c fs/xfs/libxfs/xfs_ialloc_btree.h+3 -50 replies
6/14xfs: remove unused mp argument from xfs_parent_finish()fs/xfs/libxfs/xfs_metadir.c fs/xfs/libxfs/xfs_parent.h fs/xfs/xfs_inode.c +1 more+12 -130 replies
7/14xfs: remove unused tp argument from xfs_rmap_update_hook()fs/xfs/libxfs/xfs_rmap.c+4 -50 replies
8/14xfs: remove unused mp argument from xfs_rtrefcount_broot_space_calc()fs/xfs/libxfs/xfs_rtrefcount_btree.c fs/xfs/libxfs/xfs_rtrefcount_btree.h fs/xfs/scrub/rtrefcount_repair.c+5 -70 replies
9/14xfs: remove unused mp argument from xfs_rtrefcount_broot_space()fs/xfs/libxfs/xfs_rtrefcount_btree.c fs/xfs/libxfs/xfs_rtrefcount_btree.h fs/xfs/scrub/inode_repair.c+3 -30 replies
10/14xfs: remove unused mp argument from xfs_rtrmap_broot_space_calc()fs/xfs/libxfs/xfs_rtrmap_btree.c fs/xfs/libxfs/xfs_rtrmap_btree.h fs/xfs/scrub/rtrmap_repair.c+5 -60 replies
11/14xfs: remove unused mp argument from xfs_calc_default_atomic_ioend_reservation()fs/xfs/libxfs/xfs_trans_resv.c+3 -40 replies
12/14xfs: remove unused mp argument from xfs_verify_dablk()fs/xfs/libxfs/xfs_types.c fs/xfs/libxfs/xfs_types.h fs/xfs/scrub/bmap.c+3 -50 replies
13/14xfs: remove unused mp argument from xfs_verify_fileoff()fs/xfs/libxfs/xfs_types.c fs/xfs/libxfs/xfs_types.h fs/xfs/scrub/inode_repair.c +4 more+9 -100 replies
14/14xfs: remove unused mp argument from xfs_verify_fileext()fs/xfs/libxfs/xfs_bmap.c fs/xfs/libxfs/xfs_rmap.c fs/xfs/libxfs/xfs_types.c +6 more+12 -160 replies

Reviews trailers per patch

None of the 14 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchDarrick J. WongChristoph HellwigCarlos Maiolino
SeriesR-b R-b R-b
1/14
2/14
3/14
4/14
5/14
6/14
7/14
8/14
9/14
10/14
11/14
12/14
13/14
14/14

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH V2 0/14] xfs: remove unused arguments from many functions

V2: Sorry, that was stale already. This is against for-next in

    https://git.kernel.org/pub/scm/fs/xfs/xfs-linux.git :(

Seems it's cleanup season lately on the list, so figured I'd play too.

This removes unused arguments (mostly mp) from a bunch of functions.

I did a quick check of the xfsprogs port, and it should be fine. (Left out xfs_rmapbt_maxrecs changes for that reason; all the .maxrecs functions in xfs_db need to match.)

Assisted-by gcc version 15.3.1 20260722 (Red Hat 15.3.1-1) (GCC)

Total diffstat:

$ git diff 654ae5d73c05.. | diffstat
 libxfs/xfs_attr.c             |   14 ++++++--------
 libxfs/xfs_bmap.c             |    5 ++---
 libxfs/xfs_bmap.h             |    2 +-
 libxfs/xfs_btree_mem.c        |    6 ++----
 libxfs/xfs_exchmaps.c         |    1 -
 libxfs/xfs_exchmaps.h         |    3 +--
 libxfs/xfs_ialloc.c           |    2 +-
 libxfs/xfs_ialloc_btree.c     |    1 -
 libxfs/xfs_ialloc_btree.h     |    5 ++---
 libxfs/xfs_metadir.c          |    2 +-
 libxfs/xfs_parent.h           |    1 -
 libxfs/xfs_rmap.c             |   13 ++++++-------
 libxfs/xfs_rtrefcount_btree.c |    8 ++++----
 libxfs/xfs_rtrefcount_btree.h |    5 ++---
 libxfs/xfs_rtrmap_btree.c     |    6 +++---
 libxfs/xfs_rtrmap_btree.h     |    3 +--
 libxfs/xfs_trans_resv.c       |    7 +++----
 libxfs/xfs_types.c            |    7 ++-----
 libxfs/xfs_types.h            |    7 +++----
 scrub/bmap.c                  |    9 ++++-----
 scrub/bmap_repair.c           |    4 ++--
 scrub/inode_repair.c          |    6 +++---
 scrub/orphanage.c             |    2 +-
 scrub/quota.c                 |    2 +-
 scrub/quota_repair.c          |    4 ++--
 scrub/rtrefcount_repair.c     |    3 +--
 scrub/rtrmap_repair.c         |    2 +-
 xfs_bmap_item.c               |    2 +-
 xfs_exchmaps_item.c           |    4 ++--
 xfs_exchrange.c               |    2 +-
 xfs_inode.c                   |   20 ++++++++++----------
 xfs_rmap_item.c               |    2 +-
 xfs_super.c                   |    2 +-
 xfs_symlink.c                 |    4 ++--
 34 files changed, 73 insertions(+), 93 deletions(-)