Lines Matching refs:rc

183 	int rc;
227 rc = -ENOMEM;
256 rc = SMB2_open_init(tcon, server,
260 if (rc)
266 rc = 0;
276 rc = SMB2_query_info_init(tcon, server,
285 rc = SMB2_query_info_init(tcon, server,
294 if (!rc && (!cfile || num_rqst > 1)) {
297 } else if (rc) {
310 rc = SMB2_query_info_init(tcon, server,
320 rc = SMB2_query_info_init(tcon, server,
330 if (!rc && (!cfile || num_rqst > 1)) {
333 } else if (rc) {
357 rc = SMB2_set_info_init(tcon, server,
362 if (rc)
376 rc = SMB2_set_info_init(tcon, server,
385 rc = SMB2_set_info_init(tcon, server,
394 if (!rc && (!cfile || num_rqst > 1)) {
397 } else if (rc) {
411 rc = SMB2_set_info_init(tcon, server,
418 rc = SMB2_set_info_init(tcon, server,
425 if (!rc && (!cfile || num_rqst > 1)) {
428 } else if (rc) {
452 rc = SMB2_set_info_init(tcon, server,
459 rc = SMB2_set_info_init(tcon, server,
465 if (!rc && (!cfile || num_rqst > 1)) {
468 } else if (rc) {
490 rc = SMB2_set_info_init(tcon, server,
495 if (rc)
506 rc = SMB2_ioctl_init(tcon, server, &rqst[num_rqst],
513 rc = SMB2_ioctl_init(tcon, server, &rqst[num_rqst],
519 if (!rc && (!cfile || num_rqst > 1)) {
522 } else if (rc) {
534 rc = SMB2_ioctl_init(tcon, server, &rqst[num_rqst],
540 rc = SMB2_ioctl_init(tcon, server, &rqst[num_rqst],
545 if (!rc && (!cfile || num_rqst > 1)) {
548 } else if (rc) {
560 rc = SMB2_query_info_init(tcon, server,
570 rc = SMB2_query_info_init(tcon, server,
580 if (!rc && (!cfile || num_rqst > 1)) {
583 } else if (rc) {
590 rc = -EINVAL;
593 if (rc)
603 rc = SMB2_close_init(tcon, server,
607 if (rc)
617 rc = compound_send_recv(xid, ses, server,
626 rc = compound_send_recv(xid, ses, server,
635 if (rc == -EREMCHG) {
644 if (rc == 0 && cfile && cfile->symlink_target) {
647 rc = -ENOMEM;
649 if (rc == 0) {
652 rc = smb2_validate_and_copy_iov(
658 if (rc)
660 tcon->tid, rc);
667 if (rc == 0 && cfile && cfile->symlink_target) {
670 rc = -ENOMEM;
672 if (rc == 0) {
675 rc = smb2_validate_and_copy_iov(
681 if (rc == 0)
682 rc = parse_posix_sids(idata, &rsp_iov[i + 1]);
685 if (rc)
687 tcon->tid, rc);
693 if (rc)
694 trace_smb3_delete_err(xid, ses->Suid, tcon->tid, rc);
706 if (rc)
707 trace_smb3_mkdir_err(xid, ses->Suid, tcon->tid, rc);
712 if (rc)
713 trace_smb3_hardlink_err(xid, ses->Suid, tcon->tid, rc);
719 if (rc)
720 trace_smb3_rename_err(xid, ses->Suid, tcon->tid, rc);
726 if (rc)
727 trace_smb3_rmdir_err(xid, ses->Suid, tcon->tid, rc);
733 if (rc)
734 trace_smb3_set_eof_err(xid, ses->Suid, tcon->tid, rc);
740 if (rc)
742 tcon->tid, rc);
749 if (rc) {
751 tcon->tid, rc);
759 if (!rc) {
766 rc = PTR_ERR(rbuf);
768 tcon->tid, rc);
778 tcon->tid, rc);
783 if (!rc) {
788 rc = check_wsl_eas(&rsp_iov[i + 1]);
789 if (!rc) {
794 if (!rc) {
799 tcon->tid, rc);
819 if (is_replayable_error(rc) &&
826 return rc;
836 int rc = 0;
843 rc = smb2_parse_symlink_response(cifs_sb, iov,
845 if (rc)
846 return rc;
856 return rc;
875 int rc, rc2;
888 rc = -ENOENT;
890 rc = open_cached_dir(xid, tcon, full_path,
894 if (!rc) {
899 rc = SMB2_query_info(xid, tcon,
905 return rc;
920 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path,
931 switch (rc) {
938 rc = parse_create_response(data, cifs_sb, &out_iov[0]);
939 if (rc || !data->reparse_point)
955 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path,
967 rc = rc2;
971 rc = -EREMOTE;
977 return rc;
1049 int rc = smb2_compound_op(xid, tcon, cifs_sb, name, &oparms,
1052 if (rc == -EINVAL) {
1054 rc = smb2_compound_op(xid, tcon, cifs_sb, name, &oparms,
1058 return rc;
1071 int rc;
1075 rc = -ENOMEM;
1082 rc = smb2_compound_op(xid, tcon, cifs_sb, from_name,
1087 return rc;
1102 int rc = smb2_set_path_attr(xid, tcon, from_name, to_name, cifs_sb,
1104 if (rc == -EINVAL) {
1106 rc = smb2_set_path_attr(xid, tcon, from_name, to_name, cifs_sb,
1109 return rc;
1135 int rc;
1143 rc = smb2_compound_op(xid, tcon, cifs_sb,
1147 if (rc == -EINVAL) {
1149 rc = smb2_compound_op(xid, tcon, cifs_sb,
1154 return rc;
1167 int rc;
1182 rc = smb2_compound_op(xid, tcon, cifs_sb,
1187 return rc;
1204 int rc;
1224 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path, &oparms,
1226 if (!rc) {
1227 rc = smb311_posix_get_inode_info(&new, full_path,
1233 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path, &oparms,
1235 if (!rc) {
1236 rc = cifs_get_inode_info(&new, full_path,
1240 return rc ? ERR_PTR(rc) : new;
1254 int rc;
1261 rc = smb2_compound_op(xid, tcon, cifs_sb,
1265 if (rc)
1275 return rc;