Lines Matching refs:main_bm_inode
263 struct inode *main_bm_inode = NULL; in ocfs2_group_extend() local
279 main_bm_inode = ocfs2_get_system_file_inode(osb, in ocfs2_group_extend()
282 if (!main_bm_inode) { in ocfs2_group_extend()
288 inode_lock(main_bm_inode); in ocfs2_group_extend()
290 ret = ocfs2_inode_lock(main_bm_inode, &main_bm_bh, 1); in ocfs2_group_extend()
312 lgd_blkno = ocfs2_which_cluster_group(main_bm_inode, in ocfs2_group_extend()
315 ret = ocfs2_read_group_descriptor(main_bm_inode, fe, lgd_blkno, in ocfs2_group_extend()
342 ret = ocfs2_update_last_group_and_inode(handle, main_bm_inode, in ocfs2_group_extend()
351 ocfs2_update_super_and_backups(main_bm_inode, new_clusters); in ocfs2_group_extend()
359 ocfs2_inode_unlock(main_bm_inode, 1); in ocfs2_group_extend()
362 inode_unlock(main_bm_inode); in ocfs2_group_extend()
363 iput(main_bm_inode); in ocfs2_group_extend()
451 struct inode *main_bm_inode = NULL; in ocfs2_group_add() local
464 main_bm_inode = ocfs2_get_system_file_inode(osb, in ocfs2_group_add()
467 if (!main_bm_inode) { in ocfs2_group_add()
473 inode_lock(main_bm_inode); in ocfs2_group_add()
475 ret = ocfs2_inode_lock(main_bm_inode, &main_bm_bh, 1); in ocfs2_group_add()
501 ret = ocfs2_verify_group_and_input(main_bm_inode, fe, input, group_bh); in ocfs2_group_add()
521 ret = ocfs2_journal_access_gd(handle, INODE_CACHE(main_bm_inode), in ocfs2_group_add()
533 ret = ocfs2_journal_access_di(handle, INODE_CACHE(main_bm_inode), in ocfs2_group_add()
557 spin_lock(&OCFS2_I(main_bm_inode)->ip_lock); in ocfs2_group_add()
558 OCFS2_I(main_bm_inode)->ip_clusters = le32_to_cpu(fe->i_clusters); in ocfs2_group_add()
560 spin_unlock(&OCFS2_I(main_bm_inode)->ip_lock); in ocfs2_group_add()
561 i_size_write(main_bm_inode, le64_to_cpu(fe->i_size)); in ocfs2_group_add()
563 ocfs2_update_super_and_backups(main_bm_inode, input->clusters); in ocfs2_group_add()
574 ocfs2_inode_unlock(main_bm_inode, 1); in ocfs2_group_add()
577 inode_unlock(main_bm_inode); in ocfs2_group_add()
578 iput(main_bm_inode); in ocfs2_group_add()