Lines Matching refs:locks_root
318 struct btrfs_full_stripe_locks_tree *locks_root, in insert_full_stripe_lock() argument
326 lockdep_assert_held(&locks_root->lock); in insert_full_stripe_lock()
328 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()
423 struct btrfs_full_stripe_locks_tree *locks_root; in lock_full_stripe() local
438 locks_root = &bg_cache->full_stripe_locks_root; in lock_full_stripe()
443 mutex_lock(&locks_root->lock); in lock_full_stripe()
444 existing = insert_full_stripe_lock(locks_root, fstripe_start); in lock_full_stripe()
445 mutex_unlock(&locks_root->lock); in lock_full_stripe()
470 struct btrfs_full_stripe_locks_tree *locks_root; in unlock_full_stripe() local
488 locks_root = &bg_cache->full_stripe_locks_root; in unlock_full_stripe()
491 mutex_lock(&locks_root->lock); in unlock_full_stripe()
492 fstripe_lock = search_full_stripe_lock(locks_root, fstripe_start); in unlock_full_stripe()
497 mutex_unlock(&locks_root->lock); in unlock_full_stripe()
510 rb_erase(&fstripe_lock->node, &locks_root->root); in unlock_full_stripe()
513 mutex_unlock(&locks_root->lock); in unlock_full_stripe()