Searched refs:data_rwsem (Results 1 – 4 of 4) sorted by relevance
119 struct rw_semaphore data_rwsem; member
3390 down_read(&cache->data_rwsem); in btrfs_lock_block_group()3398 down_read(&cache->data_rwsem); in btrfs_grab_block_group()3423 if (down_read_trylock(&used_bg->data_rwsem)) in btrfs_lock_cluster()3429 down_read_nested(&used_bg->data_rwsem, SINGLE_DEPTH_NESTING); in btrfs_lock_cluster()3435 up_read(&used_bg->data_rwsem); in btrfs_lock_cluster()3445 up_read(&cache->data_rwsem); in btrfs_release_block_group()
1402 down_write(&block_group->data_rwsem); in __btrfs_write_out_cache()1407 up_write(&block_group->data_rwsem); in __btrfs_write_out_cache()1469 up_write(&block_group->data_rwsem); in __btrfs_write_out_cache()1504 up_write(&block_group->data_rwsem); in __btrfs_write_out_cache()
1915 init_rwsem(&cache->data_rwsem); in btrfs_create_block_group_cache()