]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blame - scrub/counter.h
xfs_scrub: in phase 3, use the opened file descriptor for repair calls
[thirdparty/xfsprogs-dev.git] / scrub / counter.h
CommitLineData
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
9struct ptcounter;
da3dd6c0 10int ptcounter_alloc(size_t nr, struct ptcounter **pp);
d11cc69e 11void ptcounter_free(struct ptcounter *ptc);
da3dd6c0
DW
12int ptcounter_add(struct ptcounter *ptc, int64_t nr);
13int ptcounter_value(struct ptcounter *ptc, uint64_t *sum);
d11cc69e
DW
14
15#endif /* XFS_SCRUB_COUNTER_H_ */