Lines Matching refs:main_bm_inode

271 	struct inode *main_bm_inode = NULL;  in ocfs2_group_extend()  local
287 main_bm_inode = ocfs2_get_system_file_inode(osb, in ocfs2_group_extend()
290 if (!main_bm_inode) { in ocfs2_group_extend()
296 inode_lock(main_bm_inode); in ocfs2_group_extend()
298 ret = ocfs2_inode_lock(main_bm_inode, &main_bm_bh, 1); in ocfs2_group_extend()
320 lgd_blkno = ocfs2_which_cluster_group(main_bm_inode, in ocfs2_group_extend()
323 ret = ocfs2_read_group_descriptor(main_bm_inode, fe, lgd_blkno, in ocfs2_group_extend()
350 ret = ocfs2_update_last_group_and_inode(handle, main_bm_inode, in ocfs2_group_extend()
359 ocfs2_update_super_and_backups(main_bm_inode, new_clusters); in ocfs2_group_extend()
367 ocfs2_inode_unlock(main_bm_inode, 1); in ocfs2_group_extend()
370 inode_unlock(main_bm_inode); in ocfs2_group_extend()
371 iput(main_bm_inode); in ocfs2_group_extend()
459 struct inode *main_bm_inode = NULL; in ocfs2_group_add() local
472 main_bm_inode = ocfs2_get_system_file_inode(osb, in ocfs2_group_add()
475 if (!main_bm_inode) { in ocfs2_group_add()
481 inode_lock(main_bm_inode); in ocfs2_group_add()
483 ret = ocfs2_inode_lock(main_bm_inode, &main_bm_bh, 1); in ocfs2_group_add()
509 ret = ocfs2_verify_group_and_input(main_bm_inode, fe, input, group_bh); in ocfs2_group_add()
529 ret = ocfs2_journal_access_gd(handle, INODE_CACHE(main_bm_inode), in ocfs2_group_add()
541 ret = ocfs2_journal_access_di(handle, INODE_CACHE(main_bm_inode), in ocfs2_group_add()
565 spin_lock(&OCFS2_I(main_bm_inode)->ip_lock); in ocfs2_group_add()
566 OCFS2_I(main_bm_inode)->ip_clusters = le32_to_cpu(fe->i_clusters); in ocfs2_group_add()
568 spin_unlock(&OCFS2_I(main_bm_inode)->ip_lock); in ocfs2_group_add()
569 i_size_write(main_bm_inode, le64_to_cpu(fe->i_size)); in ocfs2_group_add()
571 ocfs2_update_super_and_backups(main_bm_inode, input->clusters); in ocfs2_group_add()
584 ocfs2_inode_unlock(main_bm_inode, 1); in ocfs2_group_add()
587 inode_unlock(main_bm_inode); in ocfs2_group_add()
588 iput(main_bm_inode); in ocfs2_group_add()