Lines Matching refs:status
298 int status; in ocfs2_lock_global_qf() local
301 status = ocfs2_inode_lock(oinfo->dqi_gqinode, &bh, ex); in ocfs2_lock_global_qf()
302 if (status < 0) in ocfs2_lock_global_qf()
303 return status; in ocfs2_lock_global_qf()
345 int status; in ocfs2_global_read_info() local
353 status = -EINVAL; in ocfs2_global_read_info()
364 status = ocfs2_lock_global_qf(oinfo, 0); in ocfs2_global_read_info()
365 if (status < 0) { in ocfs2_global_read_info()
366 mlog_errno(status); in ocfs2_global_read_info()
370 status = ocfs2_extent_map_get_blocks(gqinode, 0, &oinfo->dqi_giblk, in ocfs2_global_read_info()
372 if (status < 0) in ocfs2_global_read_info()
375 status = ocfs2_qinfo_lock(oinfo, 0); in ocfs2_global_read_info()
376 if (status < 0) in ocfs2_global_read_info()
378 status = sb->s_op->quota_read(sb, type, (char *)&dinfo, in ocfs2_global_read_info()
383 if (status != sizeof(struct ocfs2_global_disk_dqinfo)) { in ocfs2_global_read_info()
385 status); in ocfs2_global_read_info()
386 if (status >= 0) in ocfs2_global_read_info()
387 status = -EIO; in ocfs2_global_read_info()
388 mlog_errno(status); in ocfs2_global_read_info()
406 return status; in ocfs2_global_read_info()
409 mlog_errno(status); in ocfs2_global_read_info()
597 int status = 0; in ocfs2_sync_dquot_helper() local
604 status = ocfs2_lock_global_qf(oinfo, 1); in ocfs2_sync_dquot_helper()
605 if (status < 0) in ocfs2_sync_dquot_helper()
610 status = PTR_ERR(handle); in ocfs2_sync_dquot_helper()
611 mlog_errno(status); in ocfs2_sync_dquot_helper()
615 status = ocfs2_sync_dquot(dquot); in ocfs2_sync_dquot_helper()
616 if (status < 0) in ocfs2_sync_dquot_helper()
617 mlog_errno(status); in ocfs2_sync_dquot_helper()
619 status = ocfs2_local_write_dquot(dquot); in ocfs2_sync_dquot_helper()
620 if (status < 0) in ocfs2_sync_dquot_helper()
621 mlog_errno(status); in ocfs2_sync_dquot_helper()
627 return status; in ocfs2_sync_dquot_helper()
650 int status = 0; in ocfs2_write_dquot() local
657 status = PTR_ERR(handle); in ocfs2_write_dquot()
658 mlog_errno(status); in ocfs2_write_dquot()
662 status = ocfs2_local_write_dquot(dquot); in ocfs2_write_dquot()
666 return status; in ocfs2_write_dquot()
710 int status = 0; in ocfs2_release_dquot() local
732 status = ocfs2_lock_global_qf(oinfo, 1); in ocfs2_release_dquot()
733 if (status < 0) in ocfs2_release_dquot()
738 status = PTR_ERR(handle); in ocfs2_release_dquot()
739 mlog_errno(status); in ocfs2_release_dquot()
743 status = ocfs2_global_release_dquot(dquot); in ocfs2_release_dquot()
744 if (status < 0) { in ocfs2_release_dquot()
745 mlog_errno(status); in ocfs2_release_dquot()
748 status = ocfs2_local_release_dquot(handle, dquot); in ocfs2_release_dquot()
753 if (status < 0) in ocfs2_release_dquot()
754 mlog_errno(status); in ocfs2_release_dquot()
768 if (status) in ocfs2_release_dquot()
769 mlog_errno(status); in ocfs2_release_dquot()
770 return status; in ocfs2_release_dquot()
780 int status = 0, err; in ocfs2_acquire_dquot() local
797 status = ocfs2_lock_global_qf(info, 1); in ocfs2_acquire_dquot()
798 if (status < 0) in ocfs2_acquire_dquot()
800 status = ocfs2_qinfo_lock(info, 0); in ocfs2_acquire_dquot()
801 if (status < 0) in ocfs2_acquire_dquot()
807 status = qtree_read_dquot(&info->dqi_gi, dquot); in ocfs2_acquire_dquot()
809 if (status < 0) in ocfs2_acquire_dquot()
822 status = ocfs2_extend_no_holes(gqinode, NULL, in ocfs2_acquire_dquot()
825 if (status < 0) in ocfs2_acquire_dquot()
832 status = PTR_ERR(handle); in ocfs2_acquire_dquot()
835 status = ocfs2_qinfo_lock(info, ex); in ocfs2_acquire_dquot()
836 if (status < 0) in ocfs2_acquire_dquot()
838 status = qtree_write_dquot(&info->dqi_gi, dquot); in ocfs2_acquire_dquot()
841 if (!status) in ocfs2_acquire_dquot()
842 status = err; in ocfs2_acquire_dquot()
849 if (status < 0) in ocfs2_acquire_dquot()
852 status = ocfs2_create_local_dquot(dquot); in ocfs2_acquire_dquot()
853 if (status < 0) in ocfs2_acquire_dquot()
858 if (status) in ocfs2_acquire_dquot()
859 mlog_errno(status); in ocfs2_acquire_dquot()
860 return status; in ocfs2_acquire_dquot()
872 int status; in ocfs2_mark_dquot_dirty() local
891 status = ocfs2_write_dquot(dquot); in ocfs2_mark_dquot_dirty()
894 status = ocfs2_lock_global_qf(oinfo, 1); in ocfs2_mark_dquot_dirty()
895 if (status < 0) in ocfs2_mark_dquot_dirty()
899 status = PTR_ERR(handle); in ocfs2_mark_dquot_dirty()
900 mlog_errno(status); in ocfs2_mark_dquot_dirty()
904 status = ocfs2_sync_dquot(dquot); in ocfs2_mark_dquot_dirty()
905 if (status < 0) { in ocfs2_mark_dquot_dirty()
906 mlog_errno(status); in ocfs2_mark_dquot_dirty()
910 status = ocfs2_local_write_dquot(dquot); in ocfs2_mark_dquot_dirty()
917 if (status) in ocfs2_mark_dquot_dirty()
918 mlog_errno(status); in ocfs2_mark_dquot_dirty()
919 return status; in ocfs2_mark_dquot_dirty()
926 int status = 0; in ocfs2_write_info() local
929 status = ocfs2_lock_global_qf(oinfo, 1); in ocfs2_write_info()
930 if (status < 0) in ocfs2_write_info()
934 status = PTR_ERR(handle); in ocfs2_write_info()
935 mlog_errno(status); in ocfs2_write_info()
938 status = dquot_commit_info(sb, type); in ocfs2_write_info()
943 if (status) in ocfs2_write_info()
944 mlog_errno(status); in ocfs2_write_info()
945 return status; in ocfs2_write_info()