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()
474 trace_ocfs2_recover_local_quota_file((unsigned long)lqinode->i_ino, type); in ocfs2_recover_local_quota_file()
479 status = ocfs2_read_quota_block(lqinode, in ocfs2_recover_local_quota_file()
489 status = ocfs2_read_quota_block(lqinode, in ocfs2_recover_local_quota_file()
543 INODE_CACHE(lqinode), in ocfs2_recover_local_quota_file()
594 struct inode *lqinode; in ocfs2_finish_quota_recovery() local
605 lqinode = ocfs2_get_system_file_inode(osb, ino[type], slot_num); in ocfs2_finish_quota_recovery()
606 if (!lqinode) { in ocfs2_finish_quota_recovery()
610 status = ocfs2_inode_lock_full(lqinode, NULL, 1, in ocfs2_finish_quota_recovery()
626 status = ocfs2_read_quota_block(lqinode, 0, &bh); in ocfs2_finish_quota_recovery()
638 status = ocfs2_recover_local_quota_file(lqinode, in ocfs2_finish_quota_recovery()
654 status = ocfs2_journal_access_dq(handle, INODE_CACHE(lqinode), in ocfs2_finish_quota_recovery()
670 ocfs2_inode_unlock(lqinode, 1); in ocfs2_finish_quota_recovery()
672 iput(lqinode); in ocfs2_finish_quota_recovery()
688 struct inode *lqinode = sb_dqopt(sb)->files[type]; in ocfs2_local_read_info() local
713 status = ocfs2_inode_lock(lqinode, &oinfo->dqi_lqi_bh, 1); in ocfs2_local_read_info()
721 status = ocfs2_read_quota_block(lqinode, 0, &bh); in ocfs2_local_read_info()
748 status = ocfs2_recovery_load_quota(lqinode, ldinfo, type, in ocfs2_local_read_info()
756 status = ocfs2_load_local_quota_bitmaps(lqinode, in ocfs2_local_read_info()
766 status = ocfs2_modify_bh(lqinode, bh, olq_update_info, info); in ocfs2_local_read_info()
780 ocfs2_inode_unlock(lqinode, 1); in ocfs2_local_read_info()
898 struct inode *lqinode = sb_dqopt(sb)->files[dquot->dq_id.type]; in ocfs2_local_write_dquot() local
901 status = ocfs2_read_quota_phys_block(lqinode, od->dq_local_phys_blk, in ocfs2_local_write_dquot()
907 status = ocfs2_modify_bh(lqinode, bh, olq_set_dquot, od); in ocfs2_local_write_dquot()
967 struct inode *lqinode = sb_dqopt(sb)->files[type]; in ocfs2_local_quota_add_chunk() local
976 status = ocfs2_extend_no_holes(lqinode, NULL, in ocfs2_local_quota_add_chunk()
977 i_size_read(lqinode) + 2 * sb->s_blocksize, in ocfs2_local_quota_add_chunk()
978 i_size_read(lqinode)); in ocfs2_local_quota_add_chunk()
983 status = ocfs2_simple_size_update(lqinode, oinfo->dqi_lqi_bh, in ocfs2_local_quota_add_chunk()
984 i_size_read(lqinode) + 2 * sb->s_blocksize); in ocfs2_local_quota_add_chunk()
1007 status = ocfs2_extent_map_get_blocks(lqinode, oinfo->dqi_blocks, in ocfs2_local_quota_add_chunk()
1020 ocfs2_set_new_buffer_uptodate(INODE_CACHE(lqinode), bh); in ocfs2_local_quota_add_chunk()
1021 status = ocfs2_journal_access_dq(handle, INODE_CACHE(lqinode), bh, in ocfs2_local_quota_add_chunk()
1036 status = ocfs2_extent_map_get_blocks(lqinode, oinfo->dqi_blocks + 1, in ocfs2_local_quota_add_chunk()
1048 ocfs2_set_new_buffer_uptodate(INODE_CACHE(lqinode), dbh); in ocfs2_local_quota_add_chunk()
1049 status = ocfs2_journal_access_dq(handle, INODE_CACHE(lqinode), dbh, in ocfs2_local_quota_add_chunk()
1099 struct inode *lqinode = sb_dqopt(sb)->files[type]; in ocfs2_extend_local_quota_file() local
1119 status = ocfs2_extend_no_holes(lqinode, NULL, in ocfs2_extend_local_quota_file()
1120 i_size_read(lqinode) + sb->s_blocksize, in ocfs2_extend_local_quota_file()
1121 i_size_read(lqinode)); in ocfs2_extend_local_quota_file()
1126 status = ocfs2_simple_size_update(lqinode, oinfo->dqi_lqi_bh, in ocfs2_extend_local_quota_file()
1127 i_size_read(lqinode) + sb->s_blocksize); in ocfs2_extend_local_quota_file()
1134 status = ocfs2_extent_map_get_blocks(lqinode, oinfo->dqi_blocks, in ocfs2_extend_local_quota_file()
1146 ocfs2_set_new_buffer_uptodate(INODE_CACHE(lqinode), bh); in ocfs2_extend_local_quota_file()
1158 status = ocfs2_journal_access_dq(handle, INODE_CACHE(lqinode), bh, in ocfs2_extend_local_quota_file()
1170 status = ocfs2_journal_access_dq(handle, INODE_CACHE(lqinode), in ocfs2_extend_local_quota_file()
1220 struct inode *lqinode = sb_dqopt(sb)->files[type]; in ocfs2_create_local_dquot() local
1227 down_write(&OCFS2_I(lqinode)->ip_alloc_sem); in ocfs2_create_local_dquot()
1241 status = ocfs2_extent_map_get_blocks(lqinode, in ocfs2_create_local_dquot()
1255 status = ocfs2_modify_bh(lqinode, chunk->qc_headerbh, olq_alloc_dquot, in ocfs2_create_local_dquot()
1262 up_write(&OCFS2_I(lqinode)->ip_alloc_sem); in ocfs2_create_local_dquot()