Lines Matching refs:status
300 int status; in ocfs2_lock_global_qf() local
303 status = ocfs2_inode_lock(oinfo->dqi_gqinode, &bh, ex); in ocfs2_lock_global_qf()
304 if (status < 0) in ocfs2_lock_global_qf()
305 return status; in ocfs2_lock_global_qf()
347 int status; in ocfs2_global_read_info() local
355 status = -EINVAL; in ocfs2_global_read_info()
366 status = ocfs2_lock_global_qf(oinfo, 0); in ocfs2_global_read_info()
367 if (status < 0) { in ocfs2_global_read_info()
368 mlog_errno(status); in ocfs2_global_read_info()
372 status = ocfs2_extent_map_get_blocks(gqinode, 0, &oinfo->dqi_giblk, in ocfs2_global_read_info()
374 if (status < 0) in ocfs2_global_read_info()
377 status = ocfs2_qinfo_lock(oinfo, 0); in ocfs2_global_read_info()
378 if (status < 0) in ocfs2_global_read_info()
380 status = sb->s_op->quota_read(sb, type, (char *)&dinfo, in ocfs2_global_read_info()
385 if (status != sizeof(struct ocfs2_global_disk_dqinfo)) { in ocfs2_global_read_info()
387 status); in ocfs2_global_read_info()
388 if (status >= 0) in ocfs2_global_read_info()
389 status = -EIO; in ocfs2_global_read_info()
390 mlog_errno(status); in ocfs2_global_read_info()
408 return status; in ocfs2_global_read_info()
411 mlog_errno(status); in ocfs2_global_read_info()
603 int status = 0; in ocfs2_sync_dquot_helper() local
610 status = ocfs2_lock_global_qf(oinfo, 1); in ocfs2_sync_dquot_helper()
611 if (status < 0) in ocfs2_sync_dquot_helper()
616 status = PTR_ERR(handle); in ocfs2_sync_dquot_helper()
617 mlog_errno(status); in ocfs2_sync_dquot_helper()
621 status = ocfs2_sync_dquot(dquot); in ocfs2_sync_dquot_helper()
622 if (status < 0) in ocfs2_sync_dquot_helper()
623 mlog_errno(status); in ocfs2_sync_dquot_helper()
625 status = ocfs2_local_write_dquot(dquot); in ocfs2_sync_dquot_helper()
626 if (status < 0) in ocfs2_sync_dquot_helper()
627 mlog_errno(status); in ocfs2_sync_dquot_helper()
633 return status; in ocfs2_sync_dquot_helper()
664 int status = 0; in ocfs2_write_dquot() local
671 status = PTR_ERR(handle); in ocfs2_write_dquot()
672 mlog_errno(status); in ocfs2_write_dquot()
676 status = ocfs2_local_write_dquot(dquot); in ocfs2_write_dquot()
680 return status; in ocfs2_write_dquot()
724 int status = 0; in ocfs2_release_dquot() local
746 status = ocfs2_lock_global_qf(oinfo, 1); in ocfs2_release_dquot()
747 if (status < 0) in ocfs2_release_dquot()
752 status = PTR_ERR(handle); in ocfs2_release_dquot()
753 mlog_errno(status); in ocfs2_release_dquot()
757 status = ocfs2_global_release_dquot(dquot); in ocfs2_release_dquot()
758 if (status < 0) { in ocfs2_release_dquot()
759 mlog_errno(status); in ocfs2_release_dquot()
762 status = ocfs2_local_release_dquot(handle, dquot); in ocfs2_release_dquot()
767 if (status < 0) in ocfs2_release_dquot()
768 mlog_errno(status); in ocfs2_release_dquot()
782 if (status) in ocfs2_release_dquot()
783 mlog_errno(status); in ocfs2_release_dquot()
784 return status; in ocfs2_release_dquot()
794 int status = 0, err; in ocfs2_acquire_dquot() local
811 status = ocfs2_lock_global_qf(info, 1); in ocfs2_acquire_dquot()
812 if (status < 0) in ocfs2_acquire_dquot()
814 status = ocfs2_qinfo_lock(info, 0); in ocfs2_acquire_dquot()
815 if (status < 0) in ocfs2_acquire_dquot()
821 status = qtree_read_dquot(&info->dqi_gi, dquot); in ocfs2_acquire_dquot()
823 if (status < 0) in ocfs2_acquire_dquot()
836 status = ocfs2_extend_no_holes(gqinode, NULL, in ocfs2_acquire_dquot()
839 if (status < 0) in ocfs2_acquire_dquot()
846 status = PTR_ERR(handle); in ocfs2_acquire_dquot()
849 status = ocfs2_qinfo_lock(info, ex); in ocfs2_acquire_dquot()
850 if (status < 0) in ocfs2_acquire_dquot()
852 status = qtree_write_dquot(&info->dqi_gi, dquot); in ocfs2_acquire_dquot()
855 if (!status) in ocfs2_acquire_dquot()
856 status = err; in ocfs2_acquire_dquot()
863 if (status < 0) in ocfs2_acquire_dquot()
866 status = ocfs2_create_local_dquot(dquot); in ocfs2_acquire_dquot()
867 if (status < 0) in ocfs2_acquire_dquot()
872 if (status) in ocfs2_acquire_dquot()
873 mlog_errno(status); in ocfs2_acquire_dquot()
874 return status; in ocfs2_acquire_dquot()
881 int status = 0; in ocfs2_get_next_id() local
885 status = -ESRCH; in ocfs2_get_next_id()
888 status = ocfs2_lock_global_qf(info, 0); in ocfs2_get_next_id()
889 if (status < 0) in ocfs2_get_next_id()
891 status = ocfs2_qinfo_lock(info, 0); in ocfs2_get_next_id()
892 if (status < 0) in ocfs2_get_next_id()
894 status = qtree_get_next_id(&info->dqi_gi, qid); in ocfs2_get_next_id()
903 if (status && status != -ENOENT && status != -ESRCH) in ocfs2_get_next_id()
904 mlog_errno(status); in ocfs2_get_next_id()
905 return status; in ocfs2_get_next_id()
917 int status; in ocfs2_mark_dquot_dirty() local
936 status = ocfs2_write_dquot(dquot); in ocfs2_mark_dquot_dirty()
939 status = ocfs2_lock_global_qf(oinfo, 1); in ocfs2_mark_dquot_dirty()
940 if (status < 0) in ocfs2_mark_dquot_dirty()
944 status = PTR_ERR(handle); in ocfs2_mark_dquot_dirty()
945 mlog_errno(status); in ocfs2_mark_dquot_dirty()
949 status = ocfs2_sync_dquot(dquot); in ocfs2_mark_dquot_dirty()
950 if (status < 0) { in ocfs2_mark_dquot_dirty()
951 mlog_errno(status); in ocfs2_mark_dquot_dirty()
955 status = ocfs2_local_write_dquot(dquot); in ocfs2_mark_dquot_dirty()
962 if (status) in ocfs2_mark_dquot_dirty()
963 mlog_errno(status); in ocfs2_mark_dquot_dirty()
964 return status; in ocfs2_mark_dquot_dirty()
971 int status = 0; in ocfs2_write_info() local
974 status = ocfs2_lock_global_qf(oinfo, 1); in ocfs2_write_info()
975 if (status < 0) in ocfs2_write_info()
979 status = PTR_ERR(handle); in ocfs2_write_info()
980 mlog_errno(status); in ocfs2_write_info()
983 status = dquot_commit_info(sb, type); in ocfs2_write_info()
988 if (status) in ocfs2_write_info()
989 mlog_errno(status); in ocfs2_write_info()
990 return status; in ocfs2_write_info()