Lines Matching refs:lqinode
338 static int ocfs2_recovery_load_quota(struct inode *lqinode, in ocfs2_recovery_load_quota() argument
343 struct super_block *sb = lqinode->i_sb; in ocfs2_recovery_load_quota()
351 status = ocfs2_read_quota_block(lqinode, in ocfs2_recovery_load_quota()
395 struct inode *lqinode; in ocfs2_begin_quota_recovery() local
414 lqinode = ocfs2_get_system_file_inode(osb, ino[type], slot_num); in ocfs2_begin_quota_recovery()
415 if (!lqinode) { in ocfs2_begin_quota_recovery()
419 status = ocfs2_inode_lock_full(lqinode, NULL, 1, in ocfs2_begin_quota_recovery()
427 status = ocfs2_read_quota_block(lqinode, 0, &bh); in ocfs2_begin_quota_recovery()
436 status = ocfs2_recovery_load_quota(lqinode, ldinfo, type, in ocfs2_begin_quota_recovery()
440 ocfs2_inode_unlock(lqinode, 1); in ocfs2_begin_quota_recovery()
442 iput(lqinode); in ocfs2_begin_quota_recovery()
458 static int ocfs2_recover_local_quota_file(struct inode *lqinode, in ocfs2_recover_local_quota_file() argument
462 struct super_block *sb = lqinode->i_sb; in ocfs2_recover_local_quota_file()
475 trace_ocfs2_recover_local_quota_file((unsigned long)lqinode->i_ino, type); in ocfs2_recover_local_quota_file()
480 status = ocfs2_read_quota_block(lqinode, in ocfs2_recover_local_quota_file()
490 status = ocfs2_read_quota_block(lqinode, in ocfs2_recover_local_quota_file()
545 INODE_CACHE(lqinode), in ocfs2_recover_local_quota_file()
597 struct inode *lqinode; in ocfs2_finish_quota_recovery() local
608 lqinode = ocfs2_get_system_file_inode(osb, ino[type], slot_num); in ocfs2_finish_quota_recovery()
609 if (!lqinode) { in ocfs2_finish_quota_recovery()
613 status = ocfs2_inode_lock_full(lqinode, NULL, 1, in ocfs2_finish_quota_recovery()
629 status = ocfs2_read_quota_block(lqinode, 0, &bh); in ocfs2_finish_quota_recovery()
641 status = ocfs2_recover_local_quota_file(lqinode, in ocfs2_finish_quota_recovery()
657 status = ocfs2_journal_access_dq(handle, INODE_CACHE(lqinode), in ocfs2_finish_quota_recovery()
673 ocfs2_inode_unlock(lqinode, 1); in ocfs2_finish_quota_recovery()
675 iput(lqinode); in ocfs2_finish_quota_recovery()
691 struct inode *lqinode = sb_dqopt(sb)->files[type]; in ocfs2_local_read_info() local
718 status = ocfs2_inode_lock(lqinode, &oinfo->dqi_lqi_bh, 1); in ocfs2_local_read_info()
726 status = ocfs2_read_quota_block(lqinode, 0, &bh); in ocfs2_local_read_info()
753 status = ocfs2_recovery_load_quota(lqinode, ldinfo, type, in ocfs2_local_read_info()
761 status = ocfs2_load_local_quota_bitmaps(lqinode, in ocfs2_local_read_info()
771 status = ocfs2_modify_bh(lqinode, bh, olq_update_info, info); in ocfs2_local_read_info()
785 ocfs2_inode_unlock(lqinode, 1); in ocfs2_local_read_info()
902 struct inode *lqinode = sb_dqopt(sb)->files[dquot->dq_id.type]; in ocfs2_local_write_dquot() local
905 status = ocfs2_read_quota_phys_block(lqinode, od->dq_local_phys_blk, in ocfs2_local_write_dquot()
911 status = ocfs2_modify_bh(lqinode, bh, olq_set_dquot, od); in ocfs2_local_write_dquot()
971 struct inode *lqinode = sb_dqopt(sb)->files[type]; in ocfs2_local_quota_add_chunk() local
980 status = ocfs2_extend_no_holes(lqinode, NULL, in ocfs2_local_quota_add_chunk()
981 i_size_read(lqinode) + 2 * sb->s_blocksize, in ocfs2_local_quota_add_chunk()
982 i_size_read(lqinode)); in ocfs2_local_quota_add_chunk()
987 status = ocfs2_simple_size_update(lqinode, oinfo->dqi_lqi_bh, in ocfs2_local_quota_add_chunk()
988 i_size_read(lqinode) + 2 * sb->s_blocksize); in ocfs2_local_quota_add_chunk()
1011 status = ocfs2_extent_map_get_blocks(lqinode, oinfo->dqi_blocks, in ocfs2_local_quota_add_chunk()
1024 ocfs2_set_new_buffer_uptodate(INODE_CACHE(lqinode), bh); in ocfs2_local_quota_add_chunk()
1025 status = ocfs2_journal_access_dq(handle, INODE_CACHE(lqinode), bh, in ocfs2_local_quota_add_chunk()
1040 status = ocfs2_extent_map_get_blocks(lqinode, oinfo->dqi_blocks + 1, in ocfs2_local_quota_add_chunk()
1052 ocfs2_set_new_buffer_uptodate(INODE_CACHE(lqinode), dbh); in ocfs2_local_quota_add_chunk()
1053 status = ocfs2_journal_access_dq(handle, INODE_CACHE(lqinode), dbh, in ocfs2_local_quota_add_chunk()
1103 struct inode *lqinode = sb_dqopt(sb)->files[type]; in ocfs2_extend_local_quota_file() local
1123 status = ocfs2_extend_no_holes(lqinode, NULL, in ocfs2_extend_local_quota_file()
1124 i_size_read(lqinode) + sb->s_blocksize, in ocfs2_extend_local_quota_file()
1125 i_size_read(lqinode)); in ocfs2_extend_local_quota_file()
1130 status = ocfs2_simple_size_update(lqinode, oinfo->dqi_lqi_bh, in ocfs2_extend_local_quota_file()
1131 i_size_read(lqinode) + sb->s_blocksize); in ocfs2_extend_local_quota_file()
1138 status = ocfs2_extent_map_get_blocks(lqinode, oinfo->dqi_blocks, in ocfs2_extend_local_quota_file()
1150 ocfs2_set_new_buffer_uptodate(INODE_CACHE(lqinode), bh); in ocfs2_extend_local_quota_file()
1162 status = ocfs2_journal_access_dq(handle, INODE_CACHE(lqinode), bh, in ocfs2_extend_local_quota_file()
1174 status = ocfs2_journal_access_dq(handle, INODE_CACHE(lqinode), in ocfs2_extend_local_quota_file()
1224 struct inode *lqinode = sb_dqopt(sb)->files[type]; in ocfs2_create_local_dquot() local
1231 down_write(&OCFS2_I(lqinode)->ip_alloc_sem); in ocfs2_create_local_dquot()
1245 status = ocfs2_extent_map_get_blocks(lqinode, in ocfs2_create_local_dquot()
1263 status = ocfs2_modify_bh(lqinode, chunk->qc_headerbh, olq_alloc_dquot, in ocfs2_create_local_dquot()
1270 up_write(&OCFS2_I(lqinode)->ip_alloc_sem); in ocfs2_create_local_dquot()