]>
Commit | Line | Data |
---|---|---|
959ef981 | 1 | // SPDX-License-Identifier: GPL-2.0+ |
d11cc69e DW |
2 | /* |
3 | * Copyright (C) 2018 Oracle. All Rights Reserved. | |
d11cc69e | 4 | * Author: Darrick J. Wong <darrick.wong@oracle.com> |
d11cc69e DW |
5 | */ |
6 | #ifndef XFS_SCRUB_COUNTER_H_ | |
7 | #define XFS_SCRUB_COUNTER_H_ | |
8 | ||
9 | struct ptcounter; | |
10 | struct ptcounter *ptcounter_init(size_t nr); | |
11 | void ptcounter_free(struct ptcounter *ptc); | |
12 | void ptcounter_add(struct ptcounter *ptc, int64_t nr); | |
13 | uint64_t ptcounter_value(struct ptcounter *ptc); | |
14 | ||
15 | #endif /* XFS_SCRUB_COUNTER_H_ */ |