blob: 01b65056a2ecba94712b26659aa68b34d7b77d20 [file] [log] [blame]
// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright (C) 2018 Oracle. All Rights Reserved.
* Author: Darrick J. Wong <darrick.wong@oracle.com>
*/
#ifndef XFS_SCRUB_COUNTER_H_
#define XFS_SCRUB_COUNTER_H_
struct ptcounter;
int ptcounter_alloc(size_t nr, struct ptcounter **pp);
void ptcounter_free(struct ptcounter *ptc);
int ptcounter_add(struct ptcounter *ptc, int64_t nr);
int ptcounter_value(struct ptcounter *ptc, uint64_t *sum);
#endif /* XFS_SCRUB_COUNTER_H_ */