Lines Matching refs:need_slots
198 unsigned int need_slots, nr_blocks, b; in afs_edit_dir_add() local
222 need_slots = round_up(12 + name->len + 1 + 4, AFS_DIR_DIRENT_SIZE); in afs_edit_dir_add()
223 need_slots /= AFS_DIR_DIRENT_SIZE; in afs_edit_dir_add()
278 meta->meta.alloc_ctrs[b] >= need_slots) { in afs_edit_dir_add()
282 slot = afs_find_contig_bits(block, need_slots); in afs_edit_dir_add()
327 afs_set_contig_bits(block, slot, need_slots); in afs_edit_dir_add()
336 meta->meta.alloc_ctrs[b] -= need_slots; in afs_edit_dir_add()
378 unsigned int need_slots, nr_blocks, b; in afs_edit_dir_remove() local
402 need_slots = round_up(12 + name->len + 1 + 4, AFS_DIR_DIRENT_SIZE); in afs_edit_dir_remove()
403 need_slots /= AFS_DIR_DIRENT_SIZE; in afs_edit_dir_remove()
430 meta->meta.alloc_ctrs[b] <= AFS_DIR_SLOTS_PER_BLOCK - 1 - need_slots) { in afs_edit_dir_remove()
456 memset(de, 0, sizeof(*de) * need_slots); in afs_edit_dir_remove()
459 afs_clear_contig_bits(block, slot, need_slots); in afs_edit_dir_remove()
468 meta->meta.alloc_ctrs[b] += need_slots; in afs_edit_dir_remove()