1 /* -*- mode: c; c-basic-offset: 8; -*-
2 * vim: noexpandtab sw=8 ts=8 sts=0:
6 * Copyright (C) 2009 Oracle. All rights reserved.
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public
10 * License version 2 as published by the Free Software Foundation.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
17 #ifndef OCFS2_REFCOUNTTREE_H
18 #define OCFS2_REFCOUNTTREE_H
20 struct ocfs2_refcount_tree {
21 struct rb_node rf_node;
24 struct rw_semaphore rf_sem;
25 struct ocfs2_lock_res rf_lockres;
26 struct kref rf_getcnt;
29 /* the following 4 fields are used by caching_info. */
30 struct ocfs2_caching_info rf_ci;
32 struct mutex rf_io_mutex;
33 struct super_block *rf_sb;
36 #endif /* OCFS2_REFCOUNTTREE_H */