Lines Matching refs:total_ws
801 atomic_t total_ws; member
823 atomic_set(&btrfs_heuristic_ws.total_ws, 0); in btrfs_init_compress()
831 atomic_set(&btrfs_heuristic_ws.total_ws, 1); in btrfs_init_compress()
839 atomic_set(&btrfs_comp_ws[i].total_ws, 0); in btrfs_init_compress()
850 atomic_set(&btrfs_comp_ws[i].total_ws, 1); in btrfs_init_compress()
871 atomic_t *total_ws; in __find_workspace() local
878 total_ws = &btrfs_heuristic_ws.total_ws; in __find_workspace()
884 total_ws = &btrfs_comp_ws[idx].total_ws; in __find_workspace()
899 if (atomic_read(total_ws) > cpus) { in __find_workspace()
904 if (atomic_read(total_ws) > cpus && !*free_ws) in __find_workspace()
909 atomic_inc(total_ws); in __find_workspace()
925 atomic_dec(total_ws); in __find_workspace()
938 if (atomic_read(total_ws) == 0) { in __find_workspace()
967 atomic_t *total_ws; in __free_workspace() local
974 total_ws = &btrfs_heuristic_ws.total_ws; in __free_workspace()
980 total_ws = &btrfs_comp_ws[idx].total_ws; in __free_workspace()
998 atomic_dec(total_ws); in __free_workspace()
1020 atomic_dec(&btrfs_heuristic_ws.total_ws); in free_workspaces()
1028 atomic_dec(&btrfs_comp_ws[i].total_ws); in free_workspaces()