xfs: active perag reference counting
[platform/kernel/linux-starfive.git] / fs / xfs / scrub / fscounters.c
index 4777e7b..ef97670 100644 (file)
@@ -117,7 +117,7 @@ xchk_fscount_warmup(
        if (agi_bp)
                xfs_buf_relse(agi_bp);
        if (pag)
        if (agi_bp)
                xfs_buf_relse(agi_bp);
        if (pag)
-               xfs_perag_put(pag);
+               xfs_perag_rele(pag);
        return error;
 }
 
        return error;
 }
 
@@ -249,7 +249,7 @@ retry:
 
        }
        if (pag)
 
        }
        if (pag)
-               xfs_perag_put(pag);
+               xfs_perag_rele(pag);
        if (error) {
                xchk_set_incomplete(sc);
                return error;
        if (error) {
                xchk_set_incomplete(sc);
                return error;