Skip to content

xfs: consolidate btree insert/delete checks

Eric Sandeen linux-xfs 1 version Applied

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 19 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/8xfs: remove redundant stat checks after xfs_btree_insert()fs/xfs/libxfs/xfs_alloc.c fs/xfs/libxfs/xfs_bmap.c fs/xfs/libxfs/xfs_refcount.c +1 more+0 -1172 replies
2/8xfs: remove redundant stat checks after xfs_refcount_insert()fs/xfs/libxfs/xfs_refcount.c+2 -172 replies
3/8xfs: remove redundant stat checks after xfs_inobt_insert_rec()fs/xfs/libxfs/xfs_ialloc.c+0 -152 replies
4/8xfs: remove redundant stat check after rcbagbt_insert()fs/xfs/scrub/rcbag.c+0 -42 replies
5/8xfs: remove status parameter from several btree insert functionsfs/xfs/libxfs/xfs_alloc.c fs/xfs/libxfs/xfs_bmap.c fs/xfs/libxfs/xfs_btree.c +9 more+53 -534 replies
6/8xfs: add stat check to xfs_btree_delete and remove caller checksfs/xfs/libxfs/xfs_alloc.c fs/xfs/libxfs/xfs_bmap.c fs/xfs/libxfs/xfs_btree.c +4 more+6 -1302 replies
7/8xfs: remove redundant stat checks after xfs_refcount_delete()fs/xfs/libxfs/xfs_refcount.c+0 -302 replies
8/8xfs: remove status parameter from two btree delete functionsfs/xfs/libxfs/xfs_alloc.c fs/xfs/libxfs/xfs_bmap.c fs/xfs/libxfs/xfs_btree.c +5 more+49 -412 replies

Reviews trailers per patch

All 8 patches have a Reviewed-by or Acked-by.

PatchDarrick J. WongChristoph Hellwig
1/8R-b R-b
2/8R-b R-b
3/8R-b R-b
4/8R-b R-b
5/8R-b R-b
6/8R-b R-b
7/8R-b R-b
8/8R-b R-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/8] xfs: consolidate btree insert/delete checks

Every xfs_btree_insert/delete caller expects overall only success or failure, so these tests and mark_sick calls can be consolidated into those functions themselves, with callchain tests and extra "status" parameters removed.

 libxfs/xfs_alloc.c    |   91 ++++++++------------------------
 libxfs/xfs_bmap.c     |  139 ++++++++++--------------------------------------
 libxfs/xfs_btree.c    |   14 ++---
 libxfs/xfs_btree.h    |    4 -
 libxfs/xfs_ialloc.c   |   51 +++---------------
 libxfs/xfs_ialloc.h   |    3 -
 libxfs/xfs_refcount.c |   97 ++++++----------------------------
 libxfs/xfs_refcount.h |    2 
 libxfs/xfs_rmap.c     |   96 +++++-----------------------------
 scrub/rcbag.c         |   12 ----
 scrub/rcbag_btree.c   |    5 -
 scrub/rcbag_btree.h   |    3 -
 12 files changed, 110 insertions(+), 407 deletions(-)