From 81bfd0ad04a58892e2c153a22c361e7ff959f3fd Mon Sep 17 00:00:00 2001 From: "Darrick J. Wong" Date: Mon, 29 Jul 2024 16:23:07 -0700 Subject: [PATCH] xfs_scrub: remove unused action_list fields Remove some fields since we don't need them anymore. Signed-off-by: Darrick J. Wong Reviewed-by: Christoph Hellwig --- scrub/repair.c | 5 ----- scrub/repair.h | 2 -- 2 files changed, 7 deletions(-) diff --git a/scrub/repair.c b/scrub/repair.c index 2b863bb4..a3a8fb31 100644 --- a/scrub/repair.c +++ b/scrub/repair.c @@ -432,7 +432,6 @@ action_list_discard( struct action_item *n; list_for_each_entry_safe(aitem, n, &alist->list, list) { - alist->nr--; list_del(&aitem->list); free(aitem); } @@ -453,8 +452,6 @@ action_list_init( struct action_list *alist) { INIT_LIST_HEAD(&alist->list); - alist->nr = 0; - alist->sorted = false; } /* Number of pending repairs in this list. */ @@ -478,8 +475,6 @@ action_list_add( struct action_item *aitem) { list_add_tail(&aitem->list, &alist->list); - alist->nr++; - alist->sorted = false; } /* Repair everything on this list. */ diff --git a/scrub/repair.h b/scrub/repair.h index 463a3f9b..a38cdd5e 100644 --- a/scrub/repair.h +++ b/scrub/repair.h @@ -8,8 +8,6 @@ struct action_list { struct list_head list; - unsigned long long nr; - bool sorted; }; struct action_item; -- 2.47.3