Searched refs:total_ws (Results 1 – 4 of 4) sorted by relevance
921 atomic_set(&wsm->total_ws, 0); in btrfs_init_workspace_manager()933 atomic_set(&wsm->total_ws, 1); in btrfs_init_workspace_manager()949 atomic_dec(&wsman->total_ws); in btrfs_cleanup_workspace_manager()967 atomic_t *total_ws; in btrfs_get_workspace() local974 total_ws = &wsm->total_ws; in btrfs_get_workspace()988 if (atomic_read(total_ws) > cpus) { in btrfs_get_workspace()993 if (atomic_read(total_ws) > cpus && !*free_ws) in btrfs_get_workspace()998 atomic_inc(total_ws); in btrfs_get_workspace()1011 atomic_dec(total_ws); in btrfs_get_workspace()1024 if (atomic_read(total_ws) == 0) { in btrfs_get_workspace()[all …]
119 atomic_t total_ws; member
1002 atomic_set(&wsm->total_ws, 0); in init_workspace_manager()1013 atomic_set(&wsm->total_ws, 1); in add_initial_workspace()1027 atomic_set(&wsm->total_ws, 0); in cleanup_workspace_manager()1052 if (atomic_read(&wsm->total_ws) > cpus) { in get_workspace()1057 if (atomic_read(&wsm->total_ws) > cpus && !wsm->free_ws) in get_workspace()1062 atomic_inc(&wsm->total_ws); in get_workspace()1067 atomic_dec(&wsm->total_ws); in get_workspace()1075 WARN_ON(atomic_read(&wsm->total_ws) < 1); in get_workspace()1098 atomic_dec(&wsm->total_ws); in put_workspace()
146 atomic_t total_ws; member