Lines Matching refs:cl_bpc
91 u16 cl_bpc = le16_to_cpu(cl->cl_bpc); in ocfs2_update_last_group_and_inode() local
107 old_bg_clusters = le16_to_cpu(group->bg_bits) / cl_bpc; in ocfs2_update_last_group_and_inode()
109 num_bits = new_clusters * cl_bpc; in ocfs2_update_last_group_and_inode()
267 u16 cl_bpc; in ocfs2_group_extend() local
323 cl_bpc = le16_to_cpu(fe->id2.i_chain.cl_bpc); in ocfs2_group_extend()
324 if (le16_to_cpu(group->bg_bits) / cl_bpc + new_clusters > in ocfs2_group_extend()
377 u16 cl_bpc = le16_to_cpu(di->id2.i_chain.cl_bpc); in ocfs2_check_new_group() local
389 else if (le16_to_cpu(gd->bg_bits) != input->clusters * cl_bpc) in ocfs2_check_new_group()
394 else if (le16_to_cpu(gd->bg_free_bits_count) != input->frees * cl_bpc) in ocfs2_check_new_group()
399 input->frees * cl_bpc); in ocfs2_check_new_group()
458 u16 cl_bpc; in ocfs2_group_add() local
517 cl_bpc = le16_to_cpu(fe->id2.i_chain.cl_bpc); in ocfs2_group_add()
547 le32_add_cpu(&cr->c_total, input->clusters * cl_bpc); in ocfs2_group_add()
548 le32_add_cpu(&cr->c_free, input->frees * cl_bpc); in ocfs2_group_add()
550 le32_add_cpu(&fe->id1.bitmap1.i_total, input->clusters *cl_bpc); in ocfs2_group_add()
552 (input->clusters - input->frees) * cl_bpc); in ocfs2_group_add()