Lines Matching full:clusters
178 static int update_backups(struct inode * inode, u32 clusters, char *data) in update_backups() argument
191 if (cluster >= clusters) in update_backups()
221 u32 clusters = 0; in ocfs2_update_super_and_backups() local
239 clusters = le32_to_cpu(super_di->i_clusters); in ocfs2_update_super_and_backups()
248 ret = update_backups(inode, clusters, super_bh->b_data); in ocfs2_update_super_and_backups()
261 * Extend the filesystem to the new number of clusters specified. This entry
397 else if (le16_to_cpu(gd->bg_bits) != input->clusters * cl_bpc) in ocfs2_check_new_group()
399 "input has %u clusters set\n", in ocfs2_check_new_group()
401 le16_to_cpu(gd->bg_bits), input->clusters); in ocfs2_check_new_group()
434 else if (total_clusters + input->clusters < total_clusters) in ocfs2_verify_group_and_input()
435 mlog(ML_ERROR, "add group's clusters overflow.\n"); in ocfs2_verify_group_and_input()
436 else if (input->clusters > cl_cpg) in ocfs2_verify_group_and_input()
438 else if (input->frees > input->clusters) in ocfs2_verify_group_and_input()
439 mlog(ML_ERROR, "the free cluster exceeds the total clusters\n"); in ocfs2_verify_group_and_input()
516 input->chain, input->clusters, input->frees); in ocfs2_group_add()
555 le32_add_cpu(&cr->c_total, input->clusters * cl_bpc); in ocfs2_group_add()
558 le32_add_cpu(&fe->id1.bitmap1.i_total, input->clusters *cl_bpc); in ocfs2_group_add()
560 (input->clusters - input->frees) * cl_bpc); in ocfs2_group_add()
561 le32_add_cpu(&fe->i_clusters, input->clusters); in ocfs2_group_add()
567 le64_add_cpu(&fe->i_size, (u64)input->clusters << osb->s_clustersize_bits); in ocfs2_group_add()
571 ocfs2_update_super_and_backups(main_bm_inode, input->clusters); in ocfs2_group_add()