From: Darrick J. Wong Date: Mon, 29 Jul 2024 23:23:07 +0000 (-0700) Subject: xfs_scrub: remove unused action_list fields X-Git-Tag: v6.10.0~18^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=81bfd0ad04a58892e2c153a22c361e7ff959f3fd;p=thirdparty%2Fxfsprogs-dev.git 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 --- 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;