]> www.infradead.org Git - users/hch/xfs.git/commitdiff
xfs: remove the unused pag_active_wq field in struct xfs_perag
authorChristoph Hellwig <hch@lst.de>
Sun, 1 Sep 2024 14:29:54 +0000 (17:29 +0300)
committerChristoph Hellwig <hch@lst.de>
Fri, 20 Sep 2024 12:06:37 +0000 (14:06 +0200)
pag_active_wq is only woken, but never waited for.

Signed-off-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_ag.c
fs/xfs/libxfs/xfs_ag.h

index e5efa7df623d65fa503ad5585e5f09aeb8241f2b..1c478a5c43b72da7dc007cb2ee53568de9753024 100644 (file)
@@ -107,8 +107,7 @@ xfs_perag_rele(
        struct xfs_perag        *pag)
 {
        trace_xfs_perag_rele(pag, _RET_IP_);
-       if (atomic_dec_and_test(&pag->pag_active_ref))
-               wake_up(&pag->pag_active_wq);
+       atomic_dec(&pag->pag_active_ref);
 }
 
 /*
@@ -312,7 +311,6 @@ xfs_initialize_perag(
                INIT_RADIX_TREE(&pag->pag_ici_root, GFP_ATOMIC);
                xfs_defer_drain_init(&pag->pag_intents_drain);
                init_waitqueue_head(&pag->pagb_wait);
-               init_waitqueue_head(&pag->pag_active_wq);
                pag->pagb_tree = RB_ROOT;
                xfs_hooks_init(&pag->pag_rmap_update_hooks);
 #endif /* __KERNEL__ */
index 93d7dbb11c2cb03c544f755cdd9d5df3085921bb..d0991ae0aa77ef623e72b559b0d1cb1aaf2aed5a 100644 (file)
@@ -34,7 +34,6 @@ struct xfs_perag {
        xfs_agnumber_t  pag_agno;       /* AG this structure belongs to */
        atomic_t        pag_ref;        /* passive reference count */
        atomic_t        pag_active_ref; /* active reference count */
-       wait_queue_head_t pag_active_wq;/* woken active_ref falls to zero */
        unsigned long   pag_opstate;
        uint8_t         pagf_bno_level; /* # of levels in bno btree */
        uint8_t         pagf_cnt_level; /* # of levels in cnt btree */