Lines Matching full:status

99 	int status;  in ocfs2_modify_bh()  local
104 status = PTR_ERR(handle); in ocfs2_modify_bh()
105 mlog_errno(status); in ocfs2_modify_bh()
106 return status; in ocfs2_modify_bh()
108 status = ocfs2_journal_access_dq(handle, INODE_CACHE(inode), bh, in ocfs2_modify_bh()
110 if (status < 0) { in ocfs2_modify_bh()
111 mlog_errno(status); in ocfs2_modify_bh()
113 return status; in ocfs2_modify_bh()
120 status = ocfs2_commit_trans(OCFS2_SB(sb), handle); in ocfs2_modify_bh()
121 if (status < 0) { in ocfs2_modify_bh()
122 mlog_errno(status); in ocfs2_modify_bh()
123 return status; in ocfs2_modify_bh()
172 int status, ret = 0; in ocfs2_local_check_quota_file() local
175 status = ocfs2_read_quota_block(linode, 0, &bh); in ocfs2_local_check_quota_file()
176 if (status) { in ocfs2_local_check_quota_file()
177 mlog_errno(status); in ocfs2_local_check_quota_file()
207 status = ocfs2_read_quota_block(ginode, 0, &bh); in ocfs2_local_check_quota_file()
208 if (status) { in ocfs2_local_check_quota_file()
209 mlog_errno(status); in ocfs2_local_check_quota_file()
254 int i, status; in ocfs2_load_local_quota_bitmaps() local
265 status = ocfs2_read_quota_block(inode, in ocfs2_load_local_quota_bitmaps()
268 if (status) { in ocfs2_load_local_quota_bitmaps()
269 mlog_errno(status); in ocfs2_load_local_quota_bitmaps()
272 return status; in ocfs2_load_local_quota_bitmaps()
347 int status = 0; in ocfs2_recovery_load_quota() local
351 status = ocfs2_read_quota_block(lqinode, in ocfs2_recovery_load_quota()
354 if (status) { in ocfs2_recovery_load_quota()
355 mlog_errno(status); in ocfs2_recovery_load_quota()
360 status = ocfs2_add_recovery_chunk(sb, dchunk, i, head); in ocfs2_recovery_load_quota()
362 if (status < 0) in ocfs2_recovery_load_quota()
365 if (status < 0) in ocfs2_recovery_load_quota()
367 return status; in ocfs2_recovery_load_quota()
398 int status = 0; in ocfs2_begin_quota_recovery() local
416 status = -ENOENT; in ocfs2_begin_quota_recovery()
419 status = ocfs2_inode_lock_full(lqinode, NULL, 1, in ocfs2_begin_quota_recovery()
421 if (status < 0) { in ocfs2_begin_quota_recovery()
422 mlog_errno(status); in ocfs2_begin_quota_recovery()
427 status = ocfs2_read_quota_block(lqinode, 0, &bh); in ocfs2_begin_quota_recovery()
428 if (status) { in ocfs2_begin_quota_recovery()
429 mlog_errno(status); in ocfs2_begin_quota_recovery()
436 status = ocfs2_recovery_load_quota(lqinode, ldinfo, type, in ocfs2_begin_quota_recovery()
443 if (status < 0) in ocfs2_begin_quota_recovery()
447 if (status < 0) { in ocfs2_begin_quota_recovery()
449 rec = ERR_PTR(status); in ocfs2_begin_quota_recovery()
469 int status = 0; in ocfs2_recover_local_quota_file() local
479 status = ocfs2_read_quota_block(lqinode, in ocfs2_recover_local_quota_file()
482 if (status) { in ocfs2_recover_local_quota_file()
483 mlog_errno(status); in ocfs2_recover_local_quota_file()
489 status = ocfs2_read_quota_block(lqinode, in ocfs2_recover_local_quota_file()
492 if (status) { in ocfs2_recover_local_quota_file()
493 mlog_errno(status); in ocfs2_recover_local_quota_file()
502 status = PTR_ERR(dquot); in ocfs2_recover_local_quota_file()
510 status = ocfs2_lock_global_qf(oinfo, 1); in ocfs2_recover_local_quota_file()
511 if (status < 0) { in ocfs2_recover_local_quota_file()
512 mlog_errno(status); in ocfs2_recover_local_quota_file()
519 status = PTR_ERR(handle); in ocfs2_recover_local_quota_file()
520 mlog_errno(status); in ocfs2_recover_local_quota_file()
536 status = ocfs2_global_release_dquot(dquot); in ocfs2_recover_local_quota_file()
537 if (status < 0) { in ocfs2_recover_local_quota_file()
538 mlog_errno(status); in ocfs2_recover_local_quota_file()
542 status = ocfs2_journal_access_dq(handle, in ocfs2_recover_local_quota_file()
545 if (status < 0) { in ocfs2_recover_local_quota_file()
546 mlog_errno(status); in ocfs2_recover_local_quota_file()
564 if (status < 0) in ocfs2_recover_local_quota_file()
571 if (status < 0) in ocfs2_recover_local_quota_file()
574 if (status < 0) in ocfs2_recover_local_quota_file()
576 if (status) in ocfs2_recover_local_quota_file()
577 mlog_errno(status); in ocfs2_recover_local_quota_file()
578 return status; in ocfs2_recover_local_quota_file()
593 int status = 0; in ocfs2_finish_quota_recovery() local
607 status = -ENOENT; in ocfs2_finish_quota_recovery()
610 status = ocfs2_inode_lock_full(lqinode, NULL, 1, in ocfs2_finish_quota_recovery()
614 if (status == -EAGAIN) { in ocfs2_finish_quota_recovery()
618 status = 0; in ocfs2_finish_quota_recovery()
620 } else if (status < 0) { in ocfs2_finish_quota_recovery()
621 mlog_errno(status); in ocfs2_finish_quota_recovery()
626 status = ocfs2_read_quota_block(lqinode, 0, &bh); in ocfs2_finish_quota_recovery()
627 if (status) { in ocfs2_finish_quota_recovery()
628 mlog_errno(status); in ocfs2_finish_quota_recovery()
638 status = ocfs2_recover_local_quota_file(lqinode, in ocfs2_finish_quota_recovery()
650 status = PTR_ERR(handle); in ocfs2_finish_quota_recovery()
651 mlog_errno(status); in ocfs2_finish_quota_recovery()
654 status = ocfs2_journal_access_dq(handle, INODE_CACHE(lqinode), in ocfs2_finish_quota_recovery()
657 if (status < 0) { in ocfs2_finish_quota_recovery()
658 mlog_errno(status); in ocfs2_finish_quota_recovery()
673 if (status < 0) in ocfs2_finish_quota_recovery()
679 return status; in ocfs2_finish_quota_recovery()
689 int status; in ocfs2_local_read_info() local
709 status = ocfs2_global_read_info(sb, type); in ocfs2_local_read_info()
710 if (status < 0) in ocfs2_local_read_info()
713 status = ocfs2_inode_lock(lqinode, &oinfo->dqi_lqi_bh, 1); in ocfs2_local_read_info()
714 if (status < 0) { in ocfs2_local_read_info()
715 mlog_errno(status); in ocfs2_local_read_info()
721 status = ocfs2_read_quota_block(lqinode, 0, &bh); in ocfs2_local_read_info()
722 if (status) { in ocfs2_local_read_info()
723 mlog_errno(status); in ocfs2_local_read_info()
741 status = -ENOMEM; in ocfs2_local_read_info()
742 mlog_errno(status); in ocfs2_local_read_info()
748 status = ocfs2_recovery_load_quota(lqinode, ldinfo, type, in ocfs2_local_read_info()
750 if (status < 0) { in ocfs2_local_read_info()
751 mlog_errno(status); in ocfs2_local_read_info()
756 status = ocfs2_load_local_quota_bitmaps(lqinode, in ocfs2_local_read_info()
759 if (status < 0) { in ocfs2_local_read_info()
760 mlog_errno(status); in ocfs2_local_read_info()
766 status = ocfs2_modify_bh(lqinode, bh, olq_update_info, info); in ocfs2_local_read_info()
767 if (status < 0) { in ocfs2_local_read_info()
768 mlog_errno(status); in ocfs2_local_read_info()
794 int status; in ocfs2_local_write_info() local
796 status = ocfs2_modify_bh(sb_dqopt(sb)->files[type], bh, olq_update_info, in ocfs2_local_write_info()
798 if (status < 0) { in ocfs2_local_write_info()
799 mlog_errno(status); in ocfs2_local_write_info()
814 int status; in ocfs2_local_free_info() local
852 status = ocfs2_modify_bh(sb_dqopt(sb)->files[type], in ocfs2_local_free_info()
856 if (status < 0) { in ocfs2_local_free_info()
857 mlog_errno(status); in ocfs2_local_free_info()
899 int status; in ocfs2_local_write_dquot() local
901 status = ocfs2_read_quota_phys_block(lqinode, od->dq_local_phys_blk, in ocfs2_local_write_dquot()
903 if (status) { in ocfs2_local_write_dquot()
904 mlog_errno(status); in ocfs2_local_write_dquot()
907 status = ocfs2_modify_bh(lqinode, bh, olq_set_dquot, od); in ocfs2_local_write_dquot()
908 if (status < 0) { in ocfs2_local_write_dquot()
909 mlog_errno(status); in ocfs2_local_write_dquot()
914 return status; in ocfs2_local_write_dquot()
970 int status; in ocfs2_local_quota_add_chunk() local
976 status = ocfs2_extend_no_holes(lqinode, NULL, in ocfs2_local_quota_add_chunk()
979 if (status < 0) { in ocfs2_local_quota_add_chunk()
980 mlog_errno(status); in ocfs2_local_quota_add_chunk()
983 status = ocfs2_simple_size_update(lqinode, oinfo->dqi_lqi_bh, in ocfs2_local_quota_add_chunk()
985 if (status < 0) { in ocfs2_local_quota_add_chunk()
986 mlog_errno(status); in ocfs2_local_quota_add_chunk()
992 status = -ENOMEM; in ocfs2_local_quota_add_chunk()
993 mlog_errno(status); in ocfs2_local_quota_add_chunk()
1001 status = PTR_ERR(handle); in ocfs2_local_quota_add_chunk()
1002 mlog_errno(status); in ocfs2_local_quota_add_chunk()
1007 status = ocfs2_extent_map_get_blocks(lqinode, oinfo->dqi_blocks, in ocfs2_local_quota_add_chunk()
1009 if (status < 0) { in ocfs2_local_quota_add_chunk()
1010 mlog_errno(status); in ocfs2_local_quota_add_chunk()
1015 status = -ENOMEM; in ocfs2_local_quota_add_chunk()
1016 mlog_errno(status); in ocfs2_local_quota_add_chunk()
1021 status = ocfs2_journal_access_dq(handle, INODE_CACHE(lqinode), bh, in ocfs2_local_quota_add_chunk()
1023 if (status < 0) { in ocfs2_local_quota_add_chunk()
1024 mlog_errno(status); in ocfs2_local_quota_add_chunk()
1036 status = ocfs2_extent_map_get_blocks(lqinode, oinfo->dqi_blocks + 1, in ocfs2_local_quota_add_chunk()
1038 if (status < 0) { in ocfs2_local_quota_add_chunk()
1039 mlog_errno(status); in ocfs2_local_quota_add_chunk()
1044 status = -ENOMEM; in ocfs2_local_quota_add_chunk()
1045 mlog_errno(status); in ocfs2_local_quota_add_chunk()
1049 status = ocfs2_journal_access_dq(handle, INODE_CACHE(lqinode), dbh, in ocfs2_local_quota_add_chunk()
1051 if (status < 0) { in ocfs2_local_quota_add_chunk()
1052 mlog_errno(status); in ocfs2_local_quota_add_chunk()
1063 status = ocfs2_local_write_info(sb, type); in ocfs2_local_quota_add_chunk()
1064 if (status < 0) { in ocfs2_local_quota_add_chunk()
1065 mlog_errno(status); in ocfs2_local_quota_add_chunk()
1068 status = ocfs2_commit_trans(OCFS2_SB(sb), handle); in ocfs2_local_quota_add_chunk()
1069 if (status < 0) { in ocfs2_local_quota_add_chunk()
1070 mlog_errno(status); in ocfs2_local_quota_add_chunk()
1087 return ERR_PTR(status); in ocfs2_local_quota_add_chunk()
1105 int status; in ocfs2_extend_local_quota_file() local
1119 status = ocfs2_extend_no_holes(lqinode, NULL, in ocfs2_extend_local_quota_file()
1122 if (status < 0) { in ocfs2_extend_local_quota_file()
1123 mlog_errno(status); in ocfs2_extend_local_quota_file()
1126 status = ocfs2_simple_size_update(lqinode, oinfo->dqi_lqi_bh, in ocfs2_extend_local_quota_file()
1128 if (status < 0) { in ocfs2_extend_local_quota_file()
1129 mlog_errno(status); in ocfs2_extend_local_quota_file()
1134 status = ocfs2_extent_map_get_blocks(lqinode, oinfo->dqi_blocks, in ocfs2_extend_local_quota_file()
1136 if (status < 0) { in ocfs2_extend_local_quota_file()
1137 mlog_errno(status); in ocfs2_extend_local_quota_file()
1142 status = -ENOMEM; in ocfs2_extend_local_quota_file()
1143 mlog_errno(status); in ocfs2_extend_local_quota_file()
1153 status = PTR_ERR(handle); in ocfs2_extend_local_quota_file()
1154 mlog_errno(status); in ocfs2_extend_local_quota_file()
1158 status = ocfs2_journal_access_dq(handle, INODE_CACHE(lqinode), bh, in ocfs2_extend_local_quota_file()
1160 if (status < 0) { in ocfs2_extend_local_quota_file()
1161 mlog_errno(status); in ocfs2_extend_local_quota_file()
1170 status = ocfs2_journal_access_dq(handle, INODE_CACHE(lqinode), in ocfs2_extend_local_quota_file()
1173 if (status < 0) { in ocfs2_extend_local_quota_file()
1174 mlog_errno(status); in ocfs2_extend_local_quota_file()
1186 status = ocfs2_local_write_info(sb, type); in ocfs2_extend_local_quota_file()
1187 if (status < 0) { in ocfs2_extend_local_quota_file()
1188 mlog_errno(status); in ocfs2_extend_local_quota_file()
1192 status = ocfs2_commit_trans(OCFS2_SB(sb), handle); in ocfs2_extend_local_quota_file()
1193 if (status < 0) { in ocfs2_extend_local_quota_file()
1194 mlog_errno(status); in ocfs2_extend_local_quota_file()
1202 return ERR_PTR(status); in ocfs2_extend_local_quota_file()
1224 int status; in ocfs2_create_local_dquot() local
1232 status = PTR_ERR(chunk); in ocfs2_create_local_dquot()
1236 status = PTR_ERR(chunk); in ocfs2_create_local_dquot()
1241 status = ocfs2_extent_map_get_blocks(lqinode, in ocfs2_create_local_dquot()
1248 status = ocfs2_local_write_dquot(dquot); in ocfs2_create_local_dquot()
1249 if (status < 0) { in ocfs2_create_local_dquot()
1250 mlog_errno(status); in ocfs2_create_local_dquot()
1255 status = ocfs2_modify_bh(lqinode, chunk->qc_headerbh, olq_alloc_dquot, in ocfs2_create_local_dquot()
1257 if (status < 0) { in ocfs2_create_local_dquot()
1258 mlog_errno(status); in ocfs2_create_local_dquot()
1263 return status; in ocfs2_create_local_dquot()
1272 int status; in ocfs2_local_release_dquot() local
1279 status = ocfs2_journal_access_dq(handle, in ocfs2_local_release_dquot()
1282 if (status < 0) { in ocfs2_local_release_dquot()
1283 mlog_errno(status); in ocfs2_local_release_dquot()
1298 return status; in ocfs2_local_release_dquot()