]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blobdiff - fs/btrfs/ordered-data.h
Btrfs: use RB_ROOT to intialize rb_trees instead of setting rb_node to NULL
[mirror_ubuntu-hirsute-kernel.git] / fs / btrfs / ordered-data.h
index 1fe1282ef47c998aa9cde1c0c43e4f088e7e767c..9116c6d0c5a92154897cd01b60b3206712dc54da 100644 (file)
@@ -129,7 +129,7 @@ static inline void
 btrfs_ordered_inode_tree_init(struct btrfs_ordered_inode_tree *t)
 {
        mutex_init(&t->mutex);
-       t->tree.rb_node = NULL;
+       t->tree = RB_ROOT;
        t->last = NULL;
 }