• Home
  • Raw
  • Download

Lines Matching refs:rc

342 	int rc;  local
352 rc = CIFSSMBUnixQFileInfo(xid, tcon, cfile->fid.netfid, &find_data);
353 if (!rc) {
355 } else if (rc == -EREMOTE) {
357 rc = 0;
362 return rc;
369 int rc; local
384 rc = CIFSSMBUnixQPathInfo(xid, tcon, full_path, &find_data,
388 if (!rc) {
390 } else if (rc == -EREMOTE) {
392 rc = 0;
394 return rc;
410 rc = -ENOMEM;
418 rc = -ESTALE;
426 rc = -ESTALE;
434 return rc;
441 int rc; local
487 rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, NULL);
488 if (rc) {
489 cifs_dbg(FYI, "check sfu type of %s, open rc = %d\n", path, rc);
491 return rc;
501 rc = tcon->ses->server->ops->sync_read(xid, &fid, &io_parms,
503 if ((rc == 0) && (bytes_read >= 8)) {
535 rc = -EOPNOTSUPP;
540 rc = -EOPNOTSUPP; /* or some unknown SFU type */
545 return rc;
559 ssize_t rc; local
575 rc = tcon->ses->server->ops->query_all_EAs(xid, tcon, path,
579 if (rc < 0)
580 return (int)rc;
581 else if (rc > 3) {
670 int rc; local
683 rc = server->ops->query_file_info(xid, tcon, &cfile->fid, &find_data);
684 switch (rc) {
691 rc = 0;
700 rc = 0;
715 return rc;
736 int rc = 0, tmprc = ENOSYS; local
766 rc = -ENOSYS;
771 rc = -ENOMEM;
775 rc = server->ops->query_path_info(xid, tcon, cifs_sb, full_path,
779 if (!rc) {
782 } else if (rc == -EREMOTE) {
784 rc = 0;
785 } else if ((rc == -EACCES) && backup_cred(cifs_sb) &&
797 rc = -ENOMEM;
816 rc = CIFSFindFirst(xid, tcon, full_path,
818 if (!rc) {
829 if (rc)
899 rc = cifs_acl_to_fattr(cifs_sb, &fattr, *inode, true,
901 if (rc) {
903 __func__, rc);
907 rc = cifs_acl_to_fattr(cifs_sb, &fattr, *inode, false,
909 if (rc) {
911 __func__, rc);
931 rc = -ENOMEM;
939 rc = -ESTALE;
947 rc = -ESTALE;
960 return rc;
1071 long rc; local
1092 rc = cifs_get_inode_info_unix(&inode, path, sb, xid);
1094 if (rc != -EOPNOTSUPP)
1101 rc = cifs_get_inode_info(&inode, path, NULL, sb, xid, NULL);
1105 inode = ERR_PTR(rc);
1114 if (rc && tcon->pipe) {
1124 } else if (rc) {
1126 inode = ERR_PTR(rc);
1196 int rc; local
1217 rc = -EBUSY;
1230 rc = CIFS_open(xid, &oparms, &oplock, NULL);
1231 if (rc != 0)
1247 rc = -ENOMEM;
1251 rc = CIFSSMBSetFileInfo(xid, tcon, info_buf, fid.netfid,
1255 if (!rc)
1262 rc = CIFSSMBRenameOpenFile(xid, tcon, fid.netfid, NULL,
1265 if (rc != 0) {
1266 rc = -EBUSY;
1272 rc = CIFSSMBSetFileDisposition(xid, tcon, true, fid.netfid,
1282 if (rc == -ENOENT)
1283 rc = 0;
1284 else if (rc != 0) {
1285 rc = -EBUSY;
1296 return rc;
1336 int rc = 0; local
1363 rc = -ENOMEM;
1369 rc = CIFSPOSIXDelFile(xid, tcon, full_path,
1372 cifs_dbg(FYI, "posix del rc %d\n", rc);
1373 if ((rc == 0) || (rc == -ENOENT))
1379 rc = -ENOSYS;
1383 rc = server->ops->unlink(xid, tcon, full_path, cifs_sb);
1386 if (!rc) {
1389 } else if (rc == -ENOENT) {
1391 } else if (rc == -EBUSY) {
1393 rc = server->ops->rename_pending_delete(full_path,
1395 if (rc == 0)
1398 } else if ((rc == -EACCES) && (dosattr == 0) && inode) {
1401 rc = -ENOMEM;
1415 rc = cifs_set_file_info(inode, attrs, xid, full_path, dosattr);
1416 if (rc != 0)
1423 if (rc != 0 && dosattr != 0)
1441 return rc;
1449 int rc = 0; local
1453 rc = cifs_get_inode_info_unix(&inode, full_path, parent->i_sb,
1456 rc = cifs_get_inode_info(&inode, full_path, NULL, parent->i_sb,
1459 if (rc)
1460 return rc;
1513 return rc;
1521 int rc = 0; local
1529 rc = -ENOMEM;
1534 rc = CIFSPOSIXCreate(xid, tcon, SMB_O_DIRECTORY | SMB_O_CREAT, mode,
1537 if (rc == -EOPNOTSUPP)
1539 else if (rc) {
1540 cifs_dbg(FYI, "posix mkdir returned 0x%x\n", rc);
1572 return rc;
1574 rc = cifs_mkdir_qinfo(inode, dentry, mode, full_path, cifs_sb, tcon,
1581 int rc = 0; local
1602 rc = -ENOMEM;
1609 rc = server->ops->posix_mkdir(xid, inode, mode, tcon, full_path,
1617 rc = cifs_posix_mkdir(inode, direntry, mode, full_path, cifs_sb,
1619 if (rc != -EOPNOTSUPP)
1624 rc = -ENOSYS;
1629 rc = server->ops->mkdir(xid, inode, mode, tcon, full_path, cifs_sb);
1630 if (rc) {
1631 cifs_dbg(FYI, "cifs_mkdir returned 0x%x\n", rc);
1637 rc = cifs_mkdir_qinfo(inode, direntry, mode, full_path, cifs_sb, tcon,
1648 return rc;
1653 int rc = 0; local
1668 rc = -ENOMEM;
1675 rc = PTR_ERR(tlink);
1682 rc = -ENOSYS;
1687 rc = server->ops->rmdir(xid, tcon, full_path, cifs_sb);
1690 if (!rc) {
1714 return rc;
1728 int oplock, rc; local
1740 rc = server->ops->rename(xid, tcon, from_path, to_path, cifs_sb);
1747 if (rc == 0 || rc != -EBUSY)
1768 rc = CIFS_open(xid, &oparms, &oplock, NULL);
1769 if (rc == 0) {
1770 rc = CIFSSMBRenameOpenFile(xid, tcon, fid.netfid,
1777 return rc;
1793 int rc, tmprc; local
1812 rc = -ENOMEM;
1818 rc = -ENOMEM;
1822 rc = cifs_do_rename(xid, source_dentry, from_name, target_dentry,
1831 if (rc == -EEXIST && tcon->unix_ext) {
1840 rc = -ENOMEM;
1860 rc = 0;
1871 if (d_really_is_positive(target_dentry) && (rc == -EACCES || rc == -EEXIST)) {
1878 rc = cifs_do_rename(xid, source_dentry, from_name,
1894 return rc;
1933 int rc = 0; local
1936 rc = invalidate_inode_pages2(inode->i_mapping);
1937 if (rc)
1943 return rc;
1962 int rc; local
1965 rc = wait_on_bit_lock_action(flags, CIFS_INO_LOCK, cifs_wait_bit_killable,
1967 if (rc)
1968 return rc;
1971 rc = cifs_invalidate_mapping(inode);
1972 if (rc)
1980 return rc;
1992 int rc = 0; local
1997 return rc;
2000 rc = cifs_get_file_info_unix(filp);
2002 rc = cifs_get_file_info(filp);
2004 return rc;
2010 int rc = 0; local
2019 return rc;
2027 rc = -ENOMEM;
2036 rc = cifs_get_inode_info_unix(&inode, full_path, sb, xid);
2038 rc = cifs_get_inode_info(&inode, full_path, NULL, sb,
2044 return rc;
2049 int rc; local
2052 rc = cifs_revalidate_file_attr(filp);
2053 if (rc)
2054 return rc;
2062 int rc; local
2065 rc = cifs_revalidate_dentry_attr(dentry);
2066 if (rc)
2067 return rc;
2079 int rc; local
2087 rc = filemap_fdatawait(inode->i_mapping);
2088 if (rc) {
2089 mapping_set_error(inode->i_mapping, rc);
2090 return rc;
2094 rc = cifs_revalidate_dentry_attr(dentry);
2095 if (rc)
2096 return rc;
2128 return rc;
2139 int rc; local
2147 rc = filemap_fdatawait(inode->i_mapping);
2148 if (rc) {
2149 mapping_set_error(inode->i_mapping, rc);
2150 return rc;
2159 rc = server->ops->fiemap(tcon, cfile, fei, start, len);
2161 return rc;
2173 int rc = 0; local
2182 return rc;
2202 int rc; local
2224 rc = server->ops->set_file_size(xid, tcon, open_file,
2227 rc = -ENOSYS;
2229 cifs_dbg(FYI, "SetFSize for attrs rc = %d\n", rc);
2231 rc = -EINVAL;
2233 if (!rc)
2250 rc = server->ops->set_path_size(xid, tcon, full_path,
2253 rc = -ENOSYS;
2254 cifs_dbg(FYI, "SetEOF by path (setattrs) rc = %d\n", rc);
2260 if (rc == 0) {
2266 return rc;
2272 int rc; local
2291 rc = setattr_prepare(direntry, attrs);
2292 if (rc < 0)
2297 rc = -ENOMEM;
2312 rc = filemap_write_and_wait(inode->i_mapping);
2313 if (is_interrupt_error(rc)) {
2314 rc = -ERESTARTSYS;
2318 mapping_set_error(inode->i_mapping, rc);
2319 rc = 0;
2322 rc = cifs_set_file_size(inode, attrs, xid, full_path);
2323 if (rc != 0)
2333 rc = -ENOMEM;
2374 rc = CIFSSMBUnixSetFileInfo(xid, pTcon, args, nfid, npid);
2379 rc = PTR_ERR(tlink);
2383 rc = CIFSSMBUnixSetPathInfo(xid, pTcon, full_path, args,
2389 if (rc)
2411 return rc;
2426 int rc = -EACCES; local
2438 rc = setattr_prepare(direntry, attrs);
2439 if (rc < 0) {
2441 return rc;
2446 rc = -ENOMEM;
2448 return rc;
2462 rc = filemap_write_and_wait(inode->i_mapping);
2463 if (is_interrupt_error(rc)) {
2464 rc = -ERESTARTSYS;
2468 mapping_set_error(inode->i_mapping, rc);
2469 rc = 0;
2472 rc = cifs_get_writable_file(cifsInode, false, &wfile);
2473 if (!rc) {
2475 rc = tcon->ses->server->ops->flush(xid, tcon, &wfile->fid);
2477 if (rc)
2479 } else if (rc != -EBADF)
2482 rc = 0;
2486 rc = cifs_set_file_size(inode, attrs, xid, full_path);
2487 if (rc != 0)
2500 rc = id_mode_to_cifs_acl(inode, full_path, NO_CHANGE_64,
2502 if (rc) {
2504 __func__, rc);
2518 rc = 0;
2521 rc = id_mode_to_cifs_acl(inode, full_path, mode,
2523 if (rc) {
2525 __func__, rc);
2563 rc = cifs_set_file_info(inode, attrs, xid, full_path, dosattr);
2571 if ((rc) && (attrs->ia_valid &
2573 rc = 0;
2578 if (rc)
2591 return rc;