diff options
author | Sage Weil <sage@newdream.net> | 2010-02-15 17:37:55 -0500 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2010-02-17 01:01:09 -0500 |
commit | a105f00cf17d711e876b3dc67e15f9a89b7de5a3 (patch) | |
tree | 59c4b280aa92e9910670ee7fd274f21bc3659a04 /fs/ceph/mds_client.h | |
parent | 44ca18f2682eb1cfbed153849adedb79e3e19790 (diff) |
ceph: use rbtree for snap_realms
Switch from radix tree to rbtree for snap realms. This is much more
appropriate given that realm keys are few and far between.
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/mds_client.h')
-rw-r--r-- | fs/ceph/mds_client.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ceph/mds_client.h b/fs/ceph/mds_client.h index 98f09cd06006..9d6b90173879 100644 --- a/fs/ceph/mds_client.h +++ b/fs/ceph/mds_client.h | |||
@@ -5,7 +5,6 @@ | |||
5 | #include <linux/kref.h> | 5 | #include <linux/kref.h> |
6 | #include <linux/list.h> | 6 | #include <linux/list.h> |
7 | #include <linux/mutex.h> | 7 | #include <linux/mutex.h> |
8 | #include <linux/radix-tree.h> | ||
9 | #include <linux/rbtree.h> | 8 | #include <linux/rbtree.h> |
10 | #include <linux/spinlock.h> | 9 | #include <linux/spinlock.h> |
11 | 10 | ||
@@ -246,7 +245,7 @@ struct ceph_mds_client { | |||
246 | * should be destroyed. | 245 | * should be destroyed. |
247 | */ | 246 | */ |
248 | struct rw_semaphore snap_rwsem; | 247 | struct rw_semaphore snap_rwsem; |
249 | struct radix_tree_root snap_realms; | 248 | struct rb_root snap_realms; |
250 | struct list_head snap_empty; | 249 | struct list_head snap_empty; |
251 | spinlock_t snap_empty_lock; /* protect snap_empty */ | 250 | spinlock_t snap_empty_lock; /* protect snap_empty */ |
252 | 251 | ||