Lines Matching defs:group

35  * in the last group. If there are some, mark them or clear
38 * Return how many backups we find in the last group.
91 struct ocfs2_group_desc *group;
107 group = (struct ocfs2_group_desc *)group_bh->b_data;
109 old_bg_clusters = le16_to_cpu(group->bg_bits) / cl_bpc;
110 /* update the group first. */
112 le16_add_cpu(&group->bg_bits, num_bits);
113 le16_add_cpu(&group->bg_free_bits_count, num_bits);
117 * this group and update the group bitmap accordingly.
122 group,
124 le16_add_cpu(&group->bg_free_bits_count, -1 * backups);
137 chain = le16_to_cpu(group->bg_chain);
160 group,
162 le16_add_cpu(&group->bg_free_bits_count, backups);
163 le16_add_cpu(&group->bg_bits, -1 * num_bits);
164 le16_add_cpu(&group->bg_free_bits_count, -1 * num_bits);
257 * existing group.
267 struct ocfs2_group_desc *group = NULL;
323 group = (struct ocfs2_group_desc *)group_bh->b_data;
326 if (le16_to_cpu(group->bg_bits) / cl_bpc + new_clusters >
334 (unsigned long long)le64_to_cpu(group->bg_blkno), new_clusters);
343 /* update the last group descriptor and inode. */
417 u32 cluster = ocfs2_blocks_to_clusters(inode->i_sb, input->group);
422 mlog(ML_ERROR, "add a group which is in the current volume.\n");
427 "the add group should be in chain %u\n", next_free);
429 mlog(ML_ERROR, "add group's clusters overflow.\n");
431 mlog(ML_ERROR, "the cluster exceeds the maximum of a group\n");
436 "the last group isn't full. Use group extend first.\n");
437 else if (input->group != ocfs2_which_cluster_group(inode, cluster))
438 mlog(ML_ERROR, "group blkno is invalid\n");
440 mlog(ML_ERROR, "group descriptor check failed.\n");
447 /* Add a new group descriptor to global_bitmap. */
457 struct ocfs2_group_desc *group = NULL;
494 ret = ocfs2_read_blocks_sync(osb, input->group, 1, &group_bh);
496 mlog(ML_ERROR, "Can't read the group descriptor # %llu "
497 "from the device.", (unsigned long long)input->group);
509 trace_ocfs2_group_add((unsigned long long)input->group,
530 group = (struct ocfs2_group_desc *)group_bh->b_data;
531 bg_ptr = le64_to_cpu(group->bg_next_group);
532 group->bg_next_group = cr->c_blkno;
538 group->bg_next_group = cpu_to_le64(bg_ptr);
548 cr->c_blkno = cpu_to_le64(input->group);