diff options
author | Miao Xie <miaox@cn.fujitsu.com> | 2013-07-03 21:25:14 +0800 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2013-07-03 14:06:54 -0400 |
commit | ff04981b3fffdc04bca324949545bd9545d86ab3 (patch) | |
tree | a9180184a6e6e64029b27dfa39d619c64fffe2c7 /ctree.h | |
parent | d35300269709a0588b3252373c70eb94df7520fe (diff) |
Btrfs-progs: use rb-tree instead of extent cache tree for fs/file roots
Because the fs/file roots are not extents, so it is better to use rb-tree
to manage them. Fix it.
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'ctree.h')
-rw-r--r-- | ctree.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -909,7 +909,7 @@ struct btrfs_fs_info { struct btrfs_root *dev_root; struct btrfs_root *csum_root; - struct cache_tree fs_root_cache; + struct rb_root fs_root_tree; /* the log root tree is a directory of all the other log roots */ struct btrfs_root *log_root_tree; @@ -993,7 +993,7 @@ struct btrfs_root { /* the dirty list is only used by non-reference counted roots */ struct list_head dirty_list; - struct cache_extent cache; + struct rb_node rb_node; }; /* |