blob: b56a574d02fd2ad3a8cb8d8c619a868d69714283 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
/*
* GFS2 glock file statistics.
*
* Copyright (c) 2013 Red Hat.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* for more details.
*/
#ifndef GLOCKS_H
#define GLOCKS_H
enum {
GLOCKS_TOTAL = 0,
GLOCKS_SHARED = 1,
GLOCKS_UNLOCKED = 2,
GLOCKS_DEFERRED = 3,
GLOCKS_EXCLUSIVE = 4,
NUM_GLOCKS_STATS
};
struct glocks {
__uint64_t values[NUM_GLOCKS_STATS];
};
extern int gfs2_glocks_fetch(int, struct glocks *, pmAtomValue *);
extern int gfs2_refresh_glocks(const char *, const char *, struct glocks *);
#endif /*GLOCKS_H*/
|