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
480 status = ocfs2_read_quota_block(lqinode, in ocfs2_recover_local_quota_file()
483 if (status) { in ocfs2_recover_local_quota_file()
484 mlog_errno(status); in ocfs2_recover_local_quota_file()
490 status = ocfs2_read_quota_block(lqinode, in ocfs2_recover_local_quota_file()
493 if (status) { in ocfs2_recover_local_quota_file()
494 mlog_errno(status); in ocfs2_recover_local_quota_file()
503 status = PTR_ERR(dquot); in ocfs2_recover_local_quota_file()
511 status = ocfs2_lock_global_qf(oinfo, 1); in ocfs2_recover_local_quota_file()
512 if (status < 0) { in ocfs2_recover_local_quota_file()
513 mlog_errno(status); in ocfs2_recover_local_quota_file()
520 status = PTR_ERR(handle); in ocfs2_recover_local_quota_file()
521 mlog_errno(status); in ocfs2_recover_local_quota_file()
538 status = ocfs2_global_release_dquot(dquot); in ocfs2_recover_local_quota_file()
539 if (status < 0) { in ocfs2_recover_local_quota_file()
540 mlog_errno(status); in ocfs2_recover_local_quota_file()
544 status = ocfs2_journal_access_dq(handle, in ocfs2_recover_local_quota_file()
547 if (status < 0) { in ocfs2_recover_local_quota_file()
548 mlog_errno(status); in ocfs2_recover_local_quota_file()
567 if (status < 0) in ocfs2_recover_local_quota_file()
574 if (status < 0) in ocfs2_recover_local_quota_file()
577 if (status < 0) in ocfs2_recover_local_quota_file()
579 if (status) in ocfs2_recover_local_quota_file()
580 mlog_errno(status); in ocfs2_recover_local_quota_file()
581 return status; in ocfs2_recover_local_quota_file()
596 int status = 0; in ocfs2_finish_quota_recovery() local
610 status = -ENOENT; in ocfs2_finish_quota_recovery()
613 status = ocfs2_inode_lock_full(lqinode, NULL, 1, in ocfs2_finish_quota_recovery()
617 if (status == -EAGAIN) { in ocfs2_finish_quota_recovery()
621 status = 0; in ocfs2_finish_quota_recovery()
623 } else if (status < 0) { in ocfs2_finish_quota_recovery()
624 mlog_errno(status); in ocfs2_finish_quota_recovery()
629 status = ocfs2_read_quota_block(lqinode, 0, &bh); in ocfs2_finish_quota_recovery()
630 if (status) { in ocfs2_finish_quota_recovery()
631 mlog_errno(status); in ocfs2_finish_quota_recovery()
641 status = ocfs2_recover_local_quota_file(lqinode, in ocfs2_finish_quota_recovery()
653 status = PTR_ERR(handle); in ocfs2_finish_quota_recovery()
654 mlog_errno(status); in ocfs2_finish_quota_recovery()
657 status = ocfs2_journal_access_dq(handle, INODE_CACHE(lqinode), in ocfs2_finish_quota_recovery()
660 if (status < 0) { in ocfs2_finish_quota_recovery()
661 mlog_errno(status); in ocfs2_finish_quota_recovery()
676 if (status < 0) in ocfs2_finish_quota_recovery()
682 return status; in ocfs2_finish_quota_recovery()
692 int status; in ocfs2_local_read_info() local
703 status = -ENOMEM; in ocfs2_local_read_info()
713 status = ocfs2_global_read_info(sb, type); in ocfs2_local_read_info()
714 if (status < 0) in ocfs2_local_read_info()
718 status = ocfs2_inode_lock(lqinode, &oinfo->dqi_lqi_bh, 1); in ocfs2_local_read_info()
719 if (status < 0) { in ocfs2_local_read_info()
720 mlog_errno(status); in ocfs2_local_read_info()
726 status = ocfs2_read_quota_block(lqinode, 0, &bh); in ocfs2_local_read_info()
727 if (status) { in ocfs2_local_read_info()
728 mlog_errno(status); in ocfs2_local_read_info()
746 status = -ENOMEM; in ocfs2_local_read_info()
747 mlog_errno(status); in ocfs2_local_read_info()
753 status = ocfs2_recovery_load_quota(lqinode, ldinfo, type, in ocfs2_local_read_info()
755 if (status < 0) { in ocfs2_local_read_info()
756 mlog_errno(status); in ocfs2_local_read_info()
761 status = ocfs2_load_local_quota_bitmaps(lqinode, in ocfs2_local_read_info()
764 if (status < 0) { in ocfs2_local_read_info()
765 mlog_errno(status); in ocfs2_local_read_info()
771 status = ocfs2_modify_bh(lqinode, bh, olq_update_info, info); in ocfs2_local_read_info()
772 if (status < 0) { in ocfs2_local_read_info()
773 mlog_errno(status); in ocfs2_local_read_info()
792 return status; in ocfs2_local_read_info()
801 int status; in ocfs2_local_write_info() local
803 status = ocfs2_modify_bh(sb_dqopt(sb)->files[type], bh, olq_update_info, in ocfs2_local_write_info()
805 if (status < 0) { in ocfs2_local_write_info()
806 mlog_errno(status); in ocfs2_local_write_info()
821 int status = 0; in ocfs2_local_free_info() local
859 status = ocfs2_modify_bh(sb_dqopt(sb)->files[type], in ocfs2_local_free_info()
863 if (status < 0) in ocfs2_local_free_info()
864 mlog_errno(status); in ocfs2_local_free_info()
870 return status; in ocfs2_local_free_info()
903 int status; in ocfs2_local_write_dquot() local
905 status = ocfs2_read_quota_phys_block(lqinode, od->dq_local_phys_blk, in ocfs2_local_write_dquot()
907 if (status) { in ocfs2_local_write_dquot()
908 mlog_errno(status); in ocfs2_local_write_dquot()
911 status = ocfs2_modify_bh(lqinode, bh, olq_set_dquot, od); in ocfs2_local_write_dquot()
912 if (status < 0) { in ocfs2_local_write_dquot()
913 mlog_errno(status); in ocfs2_local_write_dquot()
918 return status; in ocfs2_local_write_dquot()
974 int status; in ocfs2_local_quota_add_chunk() local
980 status = ocfs2_extend_no_holes(lqinode, NULL, in ocfs2_local_quota_add_chunk()
983 if (status < 0) { in ocfs2_local_quota_add_chunk()
984 mlog_errno(status); in ocfs2_local_quota_add_chunk()
987 status = ocfs2_simple_size_update(lqinode, oinfo->dqi_lqi_bh, in ocfs2_local_quota_add_chunk()
989 if (status < 0) { in ocfs2_local_quota_add_chunk()
990 mlog_errno(status); in ocfs2_local_quota_add_chunk()
996 status = -ENOMEM; in ocfs2_local_quota_add_chunk()
997 mlog_errno(status); in ocfs2_local_quota_add_chunk()
1005 status = PTR_ERR(handle); in ocfs2_local_quota_add_chunk()
1006 mlog_errno(status); in ocfs2_local_quota_add_chunk()
1011 status = ocfs2_extent_map_get_blocks(lqinode, oinfo->dqi_blocks, in ocfs2_local_quota_add_chunk()
1013 if (status < 0) { in ocfs2_local_quota_add_chunk()
1014 mlog_errno(status); in ocfs2_local_quota_add_chunk()
1019 status = -ENOMEM; in ocfs2_local_quota_add_chunk()
1020 mlog_errno(status); in ocfs2_local_quota_add_chunk()
1025 status = ocfs2_journal_access_dq(handle, INODE_CACHE(lqinode), bh, in ocfs2_local_quota_add_chunk()
1027 if (status < 0) { in ocfs2_local_quota_add_chunk()
1028 mlog_errno(status); in ocfs2_local_quota_add_chunk()
1040 status = ocfs2_extent_map_get_blocks(lqinode, oinfo->dqi_blocks + 1, in ocfs2_local_quota_add_chunk()
1042 if (status < 0) { in ocfs2_local_quota_add_chunk()
1043 mlog_errno(status); in ocfs2_local_quota_add_chunk()
1048 status = -ENOMEM; in ocfs2_local_quota_add_chunk()
1049 mlog_errno(status); in ocfs2_local_quota_add_chunk()
1053 status = ocfs2_journal_access_dq(handle, INODE_CACHE(lqinode), dbh, in ocfs2_local_quota_add_chunk()
1055 if (status < 0) { in ocfs2_local_quota_add_chunk()
1056 mlog_errno(status); in ocfs2_local_quota_add_chunk()
1067 status = ocfs2_local_write_info(sb, type); in ocfs2_local_quota_add_chunk()
1068 if (status < 0) { in ocfs2_local_quota_add_chunk()
1069 mlog_errno(status); in ocfs2_local_quota_add_chunk()
1072 status = ocfs2_commit_trans(OCFS2_SB(sb), handle); in ocfs2_local_quota_add_chunk()
1073 if (status < 0) { in ocfs2_local_quota_add_chunk()
1074 mlog_errno(status); in ocfs2_local_quota_add_chunk()
1091 return ERR_PTR(status); in ocfs2_local_quota_add_chunk()
1109 int status; in ocfs2_extend_local_quota_file() local
1123 status = ocfs2_extend_no_holes(lqinode, NULL, in ocfs2_extend_local_quota_file()
1126 if (status < 0) { in ocfs2_extend_local_quota_file()
1127 mlog_errno(status); in ocfs2_extend_local_quota_file()
1130 status = ocfs2_simple_size_update(lqinode, oinfo->dqi_lqi_bh, in ocfs2_extend_local_quota_file()
1132 if (status < 0) { in ocfs2_extend_local_quota_file()
1133 mlog_errno(status); in ocfs2_extend_local_quota_file()
1138 status = ocfs2_extent_map_get_blocks(lqinode, oinfo->dqi_blocks, in ocfs2_extend_local_quota_file()
1140 if (status < 0) { in ocfs2_extend_local_quota_file()
1141 mlog_errno(status); in ocfs2_extend_local_quota_file()
1146 status = -ENOMEM; in ocfs2_extend_local_quota_file()
1147 mlog_errno(status); in ocfs2_extend_local_quota_file()
1157 status = PTR_ERR(handle); in ocfs2_extend_local_quota_file()
1158 mlog_errno(status); in ocfs2_extend_local_quota_file()
1162 status = ocfs2_journal_access_dq(handle, INODE_CACHE(lqinode), bh, in ocfs2_extend_local_quota_file()
1164 if (status < 0) { in ocfs2_extend_local_quota_file()
1165 mlog_errno(status); in ocfs2_extend_local_quota_file()
1174 status = ocfs2_journal_access_dq(handle, INODE_CACHE(lqinode), in ocfs2_extend_local_quota_file()
1177 if (status < 0) { in ocfs2_extend_local_quota_file()
1178 mlog_errno(status); in ocfs2_extend_local_quota_file()
1190 status = ocfs2_local_write_info(sb, type); in ocfs2_extend_local_quota_file()
1191 if (status < 0) { in ocfs2_extend_local_quota_file()
1192 mlog_errno(status); in ocfs2_extend_local_quota_file()
1196 status = ocfs2_commit_trans(OCFS2_SB(sb), handle); in ocfs2_extend_local_quota_file()
1197 if (status < 0) { in ocfs2_extend_local_quota_file()
1198 mlog_errno(status); in ocfs2_extend_local_quota_file()
1206 return ERR_PTR(status); in ocfs2_extend_local_quota_file()
1228 int status; in ocfs2_create_local_dquot() local
1236 status = PTR_ERR(chunk); in ocfs2_create_local_dquot()
1240 status = PTR_ERR(chunk); in ocfs2_create_local_dquot()
1245 status = ocfs2_extent_map_get_blocks(lqinode, in ocfs2_create_local_dquot()
1250 if (status < 0) { in ocfs2_create_local_dquot()
1251 mlog_errno(status); in ocfs2_create_local_dquot()
1256 status = ocfs2_local_write_dquot(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 status = ocfs2_modify_bh(lqinode, chunk->qc_headerbh, olq_alloc_dquot, in ocfs2_create_local_dquot()
1265 if (status < 0) { in ocfs2_create_local_dquot()
1266 mlog_errno(status); in ocfs2_create_local_dquot()
1271 return status; in ocfs2_create_local_dquot()
1280 int status; in ocfs2_local_release_dquot() local
1287 status = ocfs2_journal_access_dq(handle, in ocfs2_local_release_dquot()
1290 if (status < 0) { in ocfs2_local_release_dquot()
1291 mlog_errno(status); in ocfs2_local_release_dquot()
1306 return status; in ocfs2_local_release_dquot()