Lines Matching refs:group
89 struct ocfs2_group_desc *group; in ocfs2_update_last_group_and_inode() local
105 group = (struct ocfs2_group_desc *)group_bh->b_data; in ocfs2_update_last_group_and_inode()
107 old_bg_clusters = le16_to_cpu(group->bg_bits) / cl_bpc; in ocfs2_update_last_group_and_inode()
110 le16_add_cpu(&group->bg_bits, num_bits); in ocfs2_update_last_group_and_inode()
111 le16_add_cpu(&group->bg_free_bits_count, num_bits); in ocfs2_update_last_group_and_inode()
120 group, in ocfs2_update_last_group_and_inode()
122 le16_add_cpu(&group->bg_free_bits_count, -1 * backups); in ocfs2_update_last_group_and_inode()
135 chain = le16_to_cpu(group->bg_chain); in ocfs2_update_last_group_and_inode()
158 group, in ocfs2_update_last_group_and_inode()
160 le16_add_cpu(&group->bg_free_bits_count, backups); in ocfs2_update_last_group_and_inode()
161 le16_add_cpu(&group->bg_bits, -1 * num_bits); in ocfs2_update_last_group_and_inode()
162 le16_add_cpu(&group->bg_free_bits_count, -1 * num_bits); in ocfs2_update_last_group_and_inode()
265 struct ocfs2_group_desc *group = NULL; in ocfs2_group_extend() local
321 group = (struct ocfs2_group_desc *)group_bh->b_data; in ocfs2_group_extend()
324 if (le16_to_cpu(group->bg_bits) / cl_bpc + new_clusters > in ocfs2_group_extend()
332 (unsigned long long)le64_to_cpu(group->bg_blkno), new_clusters); in ocfs2_group_extend()
415 u32 cluster = ocfs2_blocks_to_clusters(inode->i_sb, input->group); in ocfs2_verify_group_and_input()
435 else if (input->group != ocfs2_which_cluster_group(inode, cluster)) in ocfs2_verify_group_and_input()
455 struct ocfs2_group_desc *group = NULL; in ocfs2_group_add() local
492 ret = ocfs2_read_blocks_sync(osb, input->group, 1, &group_bh); in ocfs2_group_add()
495 "from the device.", (unsigned long long)input->group); in ocfs2_group_add()
507 trace_ocfs2_group_add((unsigned long long)input->group, in ocfs2_group_add()
528 group = (struct ocfs2_group_desc *)group_bh->b_data; in ocfs2_group_add()
529 bg_ptr = le64_to_cpu(group->bg_next_group); in ocfs2_group_add()
530 group->bg_next_group = cr->c_blkno; in ocfs2_group_add()
536 group->bg_next_group = cpu_to_le64(bg_ptr); in ocfs2_group_add()
546 cr->c_blkno = cpu_to_le64(input->group); in ocfs2_group_add()