Lines Matching refs:main_bm_inode
279 struct inode *main_bm_inode = NULL; in ocfs2_group_extend() local
295 main_bm_inode = ocfs2_get_system_file_inode(osb, in ocfs2_group_extend()
298 if (!main_bm_inode) { in ocfs2_group_extend()
304 inode_lock(main_bm_inode); in ocfs2_group_extend()
306 ret = ocfs2_inode_lock(main_bm_inode, &main_bm_bh, 1); in ocfs2_group_extend()
328 lgd_blkno = ocfs2_which_cluster_group(main_bm_inode, in ocfs2_group_extend()
331 ret = ocfs2_read_group_descriptor(main_bm_inode, fe, lgd_blkno, in ocfs2_group_extend()
358 ret = ocfs2_update_last_group_and_inode(handle, main_bm_inode, in ocfs2_group_extend()
367 ocfs2_update_super_and_backups(main_bm_inode, new_clusters); in ocfs2_group_extend()
375 ocfs2_inode_unlock(main_bm_inode, 1); in ocfs2_group_extend()
378 inode_unlock(main_bm_inode); in ocfs2_group_extend()
379 iput(main_bm_inode); in ocfs2_group_extend()
467 struct inode *main_bm_inode = NULL; in ocfs2_group_add() local
480 main_bm_inode = ocfs2_get_system_file_inode(osb, in ocfs2_group_add()
483 if (!main_bm_inode) { in ocfs2_group_add()
489 inode_lock(main_bm_inode); in ocfs2_group_add()
491 ret = ocfs2_inode_lock(main_bm_inode, &main_bm_bh, 1); in ocfs2_group_add()
517 ret = ocfs2_verify_group_and_input(main_bm_inode, fe, input, group_bh); in ocfs2_group_add()
537 ret = ocfs2_journal_access_gd(handle, INODE_CACHE(main_bm_inode), in ocfs2_group_add()
549 ret = ocfs2_journal_access_di(handle, INODE_CACHE(main_bm_inode), in ocfs2_group_add()
573 spin_lock(&OCFS2_I(main_bm_inode)->ip_lock); in ocfs2_group_add()
574 OCFS2_I(main_bm_inode)->ip_clusters = le32_to_cpu(fe->i_clusters); in ocfs2_group_add()
576 spin_unlock(&OCFS2_I(main_bm_inode)->ip_lock); in ocfs2_group_add()
577 i_size_write(main_bm_inode, le64_to_cpu(fe->i_size)); in ocfs2_group_add()
579 ocfs2_update_super_and_backups(main_bm_inode, input->clusters); in ocfs2_group_add()
590 ocfs2_inode_unlock(main_bm_inode, 1); in ocfs2_group_add()
593 inode_unlock(main_bm_inode); in ocfs2_group_add()
594 iput(main_bm_inode); in ocfs2_group_add()