Lines Matching refs:locks_root
321 struct btrfs_full_stripe_locks_tree *locks_root, in insert_full_stripe_lock() argument
329 lockdep_assert_held(&locks_root->lock); in insert_full_stripe_lock()
331 p = &locks_root->root.rb_node; in insert_full_stripe_lock()
356 rb_insert_color(&ret->node, &locks_root->root); in insert_full_stripe_lock()
367 struct btrfs_full_stripe_locks_tree *locks_root, in search_full_stripe_lock() argument
373 lockdep_assert_held(&locks_root->lock); in search_full_stripe_lock()
375 node = locks_root->root.rb_node; in search_full_stripe_lock()
427 struct btrfs_full_stripe_locks_tree *locks_root; in lock_full_stripe() local
442 locks_root = &bg_cache->full_stripe_locks_root; in lock_full_stripe()
447 mutex_lock(&locks_root->lock); in lock_full_stripe()
448 existing = insert_full_stripe_lock(locks_root, fstripe_start); in lock_full_stripe()
449 mutex_unlock(&locks_root->lock); in lock_full_stripe()
474 struct btrfs_full_stripe_locks_tree *locks_root; in unlock_full_stripe() local
492 locks_root = &bg_cache->full_stripe_locks_root; in unlock_full_stripe()
495 mutex_lock(&locks_root->lock); in unlock_full_stripe()
496 fstripe_lock = search_full_stripe_lock(locks_root, fstripe_start); in unlock_full_stripe()
501 mutex_unlock(&locks_root->lock); in unlock_full_stripe()
514 rb_erase(&fstripe_lock->node, &locks_root->root); in unlock_full_stripe()
517 mutex_unlock(&locks_root->lock); in unlock_full_stripe()