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/super.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/super.h')
-rw-r--r-- | fs/ceph/super.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ceph/super.h b/fs/ceph/super.h index b2adfccbab98..1f3928785e12 100644 --- a/fs/ceph/super.h +++ b/fs/ceph/super.h | |||
@@ -656,6 +656,8 @@ static inline void ceph_put_snap_context(struct ceph_snap_context *sc) | |||
656 | struct ceph_snap_realm { | 656 | struct ceph_snap_realm { |
657 | u64 ino; | 657 | u64 ino; |
658 | atomic_t nref; | 658 | atomic_t nref; |
659 | struct rb_node node; | ||
660 | |||
659 | u64 created, seq; | 661 | u64 created, seq; |
660 | u64 parent_ino; | 662 | u64 parent_ino; |
661 | u64 parent_since; /* snapid when our current parent became so */ | 663 | u64 parent_since; /* snapid when our current parent became so */ |