Searched refs:total_ws (Results 1 – 4 of 4) sorted by relevance
784 atomic_set(&wsm->total_ws, 0); in btrfs_init_workspace_manager()796 atomic_set(&wsm->total_ws, 1); in btrfs_init_workspace_manager()812 atomic_dec(&wsman->total_ws); in btrfs_cleanup_workspace_manager()830 atomic_t *total_ws; in btrfs_get_workspace() local837 total_ws = &wsm->total_ws; in btrfs_get_workspace()861 atomic_inc(total_ws); in btrfs_get_workspace()874 atomic_dec(total_ws); in btrfs_get_workspace()887 if (atomic_read(total_ws) == 0) { in btrfs_get_workspace()926 atomic_t *total_ws; in btrfs_put_workspace() local933 total_ws = &wsm->total_ws; in btrfs_put_workspace()[all …]
129 atomic_t total_ws; member
1018 atomic_set(&wsm->total_ws, 0); in init_workspace_manager()1029 atomic_set(&wsm->total_ws, 1); in add_initial_workspace()1043 atomic_set(&wsm->total_ws, 0); in cleanup_workspace_manager()1068 if (atomic_read(&wsm->total_ws) > cpus) { in get_workspace()1073 if (atomic_read(&wsm->total_ws) > cpus && !wsm->free_ws) in get_workspace()1078 atomic_inc(&wsm->total_ws); in get_workspace()1083 atomic_dec(&wsm->total_ws); in get_workspace()1091 WARN_ON(atomic_read(&wsm->total_ws) < 1); in get_workspace()1114 atomic_dec(&wsm->total_ws); in put_workspace()
146 atomic_t total_ws; member