diff options
author | Sage Weil <sage@newdream.net> | 2010-02-15 17:47:28 -0500 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2010-02-17 01:01:10 -0500 |
commit | 85ff03f6bfef7d5b59ab3aefd4773f497ffad8a4 (patch) | |
tree | ef0a700d68f87b84ebb235c2ed7aae69c7414a8d /fs/ceph/mon_client.h | |
parent | a105f00cf17d711e876b3dc67e15f9a89b7de5a3 (diff) |
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.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/ceph/mon_client.h b/fs/ceph/mon_client.h index 5ca8e48d4379..b958ad5afa06 100644 --- a/fs/ceph/mon_client.h +++ b/fs/ceph/mon_client.h | |||
@@ -2,7 +2,7 @@ | |||
2 | #define _FS_CEPH_MON_CLIENT_H | 2 | #define _FS_CEPH_MON_CLIENT_H |
3 | 3 | ||
4 | #include <linux/completion.h> | 4 | #include <linux/completion.h> |
5 | #include <linux/radix-tree.h> | 5 | #include <linux/rbtree.h> |
6 | 6 | ||
7 | #include "messenger.h" | 7 | #include "messenger.h" |
8 | #include "msgpool.h" | 8 | #include "msgpool.h" |
@@ -45,6 +45,7 @@ struct ceph_mon_request { | |||
45 | */ | 45 | */ |
46 | struct ceph_mon_statfs_request { | 46 | struct ceph_mon_statfs_request { |
47 | u64 tid; | 47 | u64 tid; |
48 | struct rb_node node; | ||
48 | int result; | 49 | int result; |
49 | struct ceph_statfs *buf; | 50 | struct ceph_statfs *buf; |
50 | struct completion completion; | 51 | struct completion completion; |
@@ -75,7 +76,7 @@ struct ceph_mon_client { | |||
75 | struct ceph_msgpool msgpool_auth_reply; | 76 | struct ceph_msgpool msgpool_auth_reply; |
76 | 77 | ||
77 | /* pending statfs requests */ | 78 | /* pending statfs requests */ |
78 | struct radix_tree_root statfs_request_tree; | 79 | struct rb_root statfs_request_tree; |
79 | int num_statfs_requests; | 80 | int num_statfs_requests; |
80 | u64 last_tid; | 81 | u64 last_tid; |
81 | 82 | ||