Lines Matching refs:locks_root
316 struct btrfs_full_stripe_locks_tree *locks_root, in insert_full_stripe_lock() argument
324 lockdep_assert_held(&locks_root->lock); in insert_full_stripe_lock()
326 p = &locks_root->root.rb_node; in insert_full_stripe_lock()
351 rb_insert_color(&ret->node, &locks_root->root); in insert_full_stripe_lock()
362 struct btrfs_full_stripe_locks_tree *locks_root, in search_full_stripe_lock() argument
368 lockdep_assert_held(&locks_root->lock); in search_full_stripe_lock()
370 node = locks_root->root.rb_node; in search_full_stripe_lock()
422 struct btrfs_full_stripe_locks_tree *locks_root; in lock_full_stripe() local
437 locks_root = &bg_cache->full_stripe_locks_root; in lock_full_stripe()
442 mutex_lock(&locks_root->lock); in lock_full_stripe()
443 existing = insert_full_stripe_lock(locks_root, fstripe_start); in lock_full_stripe()
444 mutex_unlock(&locks_root->lock); in lock_full_stripe()
469 struct btrfs_full_stripe_locks_tree *locks_root; in unlock_full_stripe() local
487 locks_root = &bg_cache->full_stripe_locks_root; in unlock_full_stripe()
490 mutex_lock(&locks_root->lock); in unlock_full_stripe()
491 fstripe_lock = search_full_stripe_lock(locks_root, fstripe_start); in unlock_full_stripe()
496 mutex_unlock(&locks_root->lock); in unlock_full_stripe()
509 rb_erase(&fstripe_lock->node, &locks_root->root); in unlock_full_stripe()
512 mutex_unlock(&locks_root->lock); in unlock_full_stripe()