Lines Matching defs:rc
188 int rc;
227 rc = CIFSPOSIXCreate(xid, cifs_sb->tcon, posix_flags, mode,
231 if (rc)
247 rc = -ENOMEM;
256 return rc;
276 int rc = -ENOENT;
304 rc = -ENOMEM;
319 rc = cifs_posix_open(full_path, &newinode,
326 if (rc == 0) {
331 } else if ((rc != -EIO) && (rc != -EREMOTE) &&
332 (rc != -EOPNOTSUPP) && (rc != -EINVAL))
364 rc = -ENOMEM;
376 rc = CIFSSMBOpen(xid, tcon, full_path, disposition,
381 rc = -EIO; /* no NT SMB support fall into legacy open below */
383 if (rc == -EIO) {
385 rc = SMBLegacyOpen(xid, tcon, full_path, disposition,
390 if (rc) {
391 cFYI(1, "cifs_create returned 0x%x", rc);
431 rc = cifs_get_inode_info_unix(&newinode, full_path,
434 rc = cifs_get_inode_info(&newinode, full_path, buf,
451 if (rc == 0)
454 cFYI(1, "Create worked, get_inode_info failed rc = %d", rc);
462 rc = PTR_ERR(filp);
472 rc = -ENOMEM;
482 return rc;
488 int rc = -EPERM;
510 rc = -ENOMEM;
529 rc = CIFSSMBUnixSetPathInfo(xid, pTcon, full_path, &args,
533 if (rc)
536 rc = cifs_get_inode_info_unix(&newinode, full_path,
543 if (rc == 0)
557 rc = -ENOMEM;
559 return rc;
562 rc = CIFSSMBOpen(xid, pTcon, full_path, FILE_CREATE,
566 if (rc)
579 rc = CIFSSMBWrite(xid, pTcon,
590 rc = CIFSSMBWrite(xid, pTcon,
604 return rc;
612 int rc = 0; /* to get around spurious gcc warning, set to zero here */
686 rc = cifs_posix_open(full_path, &newInode,
698 if ((rc == 0) || (rc == -ENOENT))
700 else if ((rc == -EINVAL) || (rc != -EOPNOTSUPP))
704 rc = cifs_get_inode_info_unix(&newInode, full_path,
707 rc = cifs_get_inode_info(&newInode, full_path, NULL,
710 if ((rc == 0) && (newInode != NULL)) {
720 rc = PTR_ERR(filp);
732 rc = -ENOMEM;
740 } else if (rc == -ENOENT) {
741 rc = 0;
750 } else if (rc != -EACCES) {
751 cERROR(1, "Unexpected lookup error %d", rc);
759 return ERR_PTR(rc);
785 int rc = 0;
789 return rc;