summaryrefslogtreecommitdiff
path: root/fs/ceph/mon_client.h
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2010-02-15 22:47:28 (GMT)
committerSage Weil <sage@newdream.net>2010-02-17 06:01:10 (GMT)
commit85ff03f6bfef7d5b59ab3aefd4773f497ffad8a4 (patch)
treeef0a700d68f87b84ebb235c2ed7aae69c7414a8d /fs/ceph/mon_client.h
parenta105f00cf17d711e876b3dc67e15f9a89b7de5a3 (diff)
downloadlinux-85ff03f6bfef7d5b59ab3aefd4773f497ffad8a4.tar.xz
ceph: use rbtree for mon statfs requests
An rbtree is lighter weight, particularly given we will generally have very few in-flight statfs requests. Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/mon_client.h')
-rw-r--r--fs/ceph/mon_client.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/ceph/mon_client.h b/fs/ceph/mon_client.h
index 5ca8e48..b958ad5 100644
--- a/fs/ceph/mon_client.h
+++ b/fs/ceph/mon_client.h
@@ -2,7 +2,7 @@
#define _FS_CEPH_MON_CLIENT_H
#include <linux/completion.h>
-#include <linux/radix-tree.h>
+#include <linux/rbtree.h>
#include "messenger.h"
#include "msgpool.h"
@@ -45,6 +45,7 @@ struct ceph_mon_request {
*/
struct ceph_mon_statfs_request {
u64 tid;
+ struct rb_node node;
int result;
struct ceph_statfs *buf;
struct completion completion;
@@ -75,7 +76,7 @@ struct ceph_mon_client {
struct ceph_msgpool msgpool_auth_reply;
/* pending statfs requests */
- struct radix_tree_root statfs_request_tree;
+ struct rb_root statfs_request_tree;
int num_statfs_requests;
u64 last_tid;