Lines Matching defs:group

33  * in the last group. If there are some, mark them or clear
36 * Return how many backups we find in the last group.
89 struct ocfs2_group_desc *group;
105 group = (struct ocfs2_group_desc *)group_bh->b_data;
107 old_bg_clusters = le16_to_cpu(group->bg_bits) / cl_bpc;
108 /* update the group first. */
110 le16_add_cpu(&group->bg_bits, num_bits);
111 le16_add_cpu(&group->bg_free_bits_count, num_bits);
115 * this group and update the group bitmap accordingly.
120 group,
122 le16_add_cpu(&group->bg_free_bits_count, -1 * backups);
135 chain = le16_to_cpu(group->bg_chain);
158 group,
160 le16_add_cpu(&group->bg_free_bits_count, backups);
161 le16_add_cpu(&group->bg_bits, -1 * num_bits);
162 le16_add_cpu(&group->bg_free_bits_count, -1 * num_bits);
255 * existing group.
265 struct ocfs2_group_desc *group = NULL;
321 group = (struct ocfs2_group_desc *)group_bh->b_data;
324 if (le16_to_cpu(group->bg_bits) / cl_bpc + new_clusters >
332 (unsigned long long)le64_to_cpu(group->bg_blkno), new_clusters);
341 /* update the last group descriptor and inode. */
415 u32 cluster = ocfs2_blocks_to_clusters(inode->i_sb, input->group);
420 mlog(ML_ERROR, "add a group which is in the current volume.\n");
425 "the add group should be in chain %u\n", next_free);
427 mlog(ML_ERROR, "add group's clusters overflow.\n");
429 mlog(ML_ERROR, "the cluster exceeds the maximum of a group\n");
434 "the last group isn't full. Use group extend first.\n");
435 else if (input->group != ocfs2_which_cluster_group(inode, cluster))
436 mlog(ML_ERROR, "group blkno is invalid\n");
438 mlog(ML_ERROR, "group descriptor check failed.\n");
445 /* Add a new group descriptor to global_bitmap. */
455 struct ocfs2_group_desc *group = NULL;
492 ret = ocfs2_read_blocks_sync(osb, input->group, 1, &group_bh);
494 mlog(ML_ERROR, "Can't read the group descriptor # %llu "
495 "from the device.", (unsigned long long)input->group);
507 trace_ocfs2_group_add((unsigned long long)input->group,
528 group = (struct ocfs2_group_desc *)group_bh->b_data;
529 bg_ptr = le64_to_cpu(group->bg_next_group);
530 group->bg_next_group = cr->c_blkno;
536 group->bg_next_group = cpu_to_le64(bg_ptr);
546 cr->c_blkno = cpu_to_le64(input->group);