Btrfs: change the ordered tree to use a spinlock instead of a mutex
[deliverable/linux.git] / fs / btrfs / ordered-data.h
index 9116c6d0c5a92154897cd01b60b3206712dc54da..bfbcebbb0adc7c07335a3fc70c5e32de975f61eb 100644 (file)
@@ -21,7 +21,7 @@
 
 /* one of these per inode */
 struct btrfs_ordered_inode_tree {
-       struct mutex mutex;
+       spinlock_t lock;
        struct rb_root tree;
        struct rb_node *last;
 };
@@ -128,7 +128,7 @@ static inline int btrfs_ordered_sum_size(struct btrfs_root *root,
 static inline void
 btrfs_ordered_inode_tree_init(struct btrfs_ordered_inode_tree *t)
 {
-       mutex_init(&t->mutex);
+       spin_lock_init(&t->lock);
        t->tree = RB_ROOT;
        t->last = NULL;
 }
This page took 0.026989 seconds and 5 git commands to generate.