Lines Matching refs:total_ws
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() local
974 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()
1063 atomic_t *total_ws; in btrfs_put_workspace() local
1070 total_ws = &wsm->total_ws; in btrfs_put_workspace()
1084 atomic_dec(total_ws); in btrfs_put_workspace()