Searched refs:data_rwsem (Results 1 – 4 of 4) sorted by relevance
75 struct rw_semaphore data_rwsem; member
3393 down_read(&cache->data_rwsem); in btrfs_lock_block_group()3402 down_read(&cache->data_rwsem); in btrfs_grab_block_group()3426 if (down_read_trylock(&used_bg->data_rwsem)) in btrfs_lock_cluster()3432 down_read_nested(&used_bg->data_rwsem, SINGLE_DEPTH_NESTING); in btrfs_lock_cluster()3438 up_read(&used_bg->data_rwsem); in btrfs_lock_cluster()3448 up_read(&cache->data_rwsem); in btrfs_release_block_group()
1264 down_write(&block_group->data_rwsem); in __btrfs_write_out_cache()1269 up_write(&block_group->data_rwsem); in __btrfs_write_out_cache()1330 up_write(&block_group->data_rwsem); in __btrfs_write_out_cache()1377 up_write(&block_group->data_rwsem); in __btrfs_write_out_cache()
1644 init_rwsem(&cache->data_rwsem); in btrfs_create_block_group_cache()