• Home
  • Raw
  • Download

Lines Matching refs:rc

65 	int rc = 0;  in jfs_create()  local
76 rc = dquot_initialize(dip); in jfs_create()
77 if (rc) in jfs_create()
84 if ((rc = get_UCSname(&dname, dentry))) in jfs_create()
94 rc = PTR_ERR(ip); in jfs_create()
103 rc = jfs_init_acl(tid, ip, dip); in jfs_create()
104 if (rc) in jfs_create()
107 rc = jfs_init_security(tid, ip, dip, &dentry->d_name); in jfs_create()
108 if (rc) { in jfs_create()
113 if ((rc = dtSearch(dip, &dname, &ino, &btstack, JFS_CREATE))) { in jfs_create()
114 jfs_err("jfs_create: dtSearch returned %d", rc); in jfs_create()
137 if ((rc = dtInsert(tid, dip, &dname, &ino, &btstack))) { in jfs_create()
138 if (rc == -EIO) { in jfs_create()
156 rc = txCommit(tid, 2, &iplist[0], 0); in jfs_create()
162 if (rc) { in jfs_create()
175 jfs_info("jfs_create: rc:%d", rc); in jfs_create()
176 return rc; in jfs_create()
197 int rc = 0; in jfs_mkdir() local
208 rc = dquot_initialize(dip); in jfs_mkdir()
209 if (rc) in jfs_mkdir()
216 if ((rc = get_UCSname(&dname, dentry))) in jfs_mkdir()
226 rc = PTR_ERR(ip); in jfs_mkdir()
235 rc = jfs_init_acl(tid, ip, dip); in jfs_mkdir()
236 if (rc) in jfs_mkdir()
239 rc = jfs_init_security(tid, ip, dip, &dentry->d_name); in jfs_mkdir()
240 if (rc) { in jfs_mkdir()
245 if ((rc = dtSearch(dip, &dname, &ino, &btstack, JFS_CREATE))) { in jfs_mkdir()
246 jfs_err("jfs_mkdir: dtSearch returned %d", rc); in jfs_mkdir()
269 if ((rc = dtInsert(tid, dip, &dname, &ino, &btstack))) { in jfs_mkdir()
270 if (rc == -EIO) { in jfs_mkdir()
289 rc = txCommit(tid, 2, &iplist[0], 0); in jfs_mkdir()
295 if (rc) { in jfs_mkdir()
309 jfs_info("jfs_mkdir: rc:%d", rc); in jfs_mkdir()
310 return rc; in jfs_mkdir()
334 int rc; in jfs_rmdir() local
345 rc = dquot_initialize(dip); in jfs_rmdir()
346 if (rc) in jfs_rmdir()
348 rc = dquot_initialize(ip); in jfs_rmdir()
349 if (rc) in jfs_rmdir()
354 rc = -ENOTEMPTY; in jfs_rmdir()
358 if ((rc = get_UCSname(&dname, dentry))) { in jfs_rmdir()
378 if ((rc = dtDelete(tid, dip, &dname, &ino, JFS_REMOVE))) { in jfs_rmdir()
379 jfs_err("jfs_rmdir: dtDelete returned %d", rc); in jfs_rmdir()
380 if (rc == -EIO) in jfs_rmdir()
416 rc = txCommit(tid, 2, &iplist[0], 0); in jfs_rmdir()
438 jfs_info("jfs_rmdir: rc:%d", rc); in jfs_rmdir()
439 return rc; in jfs_rmdir()
464 int rc; in jfs_unlink() local
477 rc = dquot_initialize(dip); in jfs_unlink()
478 if (rc) in jfs_unlink()
480 rc = dquot_initialize(ip); in jfs_unlink()
481 if (rc) in jfs_unlink()
484 if ((rc = get_UCSname(&dname, dentry))) in jfs_unlink()
501 if ((rc = dtDelete(tid, dip, &dname, &ino, JFS_REMOVE))) { in jfs_unlink()
502 jfs_err("jfs_unlink: dtDelete returned %d", rc); in jfs_unlink()
503 if (rc == -EIO) in jfs_unlink()
532 rc = new_size; in jfs_unlink()
554 rc = txCommit(tid, 2, &iplist[0], commit_flag); in jfs_unlink()
561 while (new_size && (rc == 0)) { in jfs_unlink()
567 rc = new_size; in jfs_unlink()
569 rc = txCommit(tid, 2, &iplist[0], COMMIT_SYNC); in jfs_unlink()
593 jfs_info("jfs_unlink: rc:%d", rc); in jfs_unlink()
594 return rc; in jfs_unlink()
787 int rc; in jfs_link() local
797 rc = dquot_initialize(dir); in jfs_link()
798 if (rc) in jfs_link()
809 if ((rc = get_UCSname(&dname, dentry))) in jfs_link()
812 if ((rc = dtSearch(dir, &dname, &ino, &btstack, JFS_CREATE))) in jfs_link()
819 if ((rc = dtInsert(tid, dir, &dname, &ino, &btstack))) in jfs_link()
831 rc = txCommit(tid, 2, &iplist[0], 0); in jfs_link()
833 if (rc) { in jfs_link()
849 jfs_info("jfs_link: rc:%d", rc); in jfs_link()
850 return rc; in jfs_link()
874 int rc; in jfs_symlink() local
892 rc = dquot_initialize(dip); in jfs_symlink()
893 if (rc) in jfs_symlink()
903 if ((rc = get_UCSname(&dname, dentry))) in jfs_symlink()
912 rc = PTR_ERR(ip); in jfs_symlink()
921 rc = jfs_init_security(tid, ip, dip, &dentry->d_name); in jfs_symlink()
922 if (rc) in jfs_symlink()
982 if ((rc = xtInsert(tid, ip, 0, 0, xlen, &xaddr, 0))) { in jfs_symlink()
995 rc = -EIO; in jfs_symlink()
1010 rc = dtSearch(dip, &dname, &ino, &btstack, JFS_CREATE); in jfs_symlink()
1011 if (rc == 0) { in jfs_symlink()
1013 rc = dtInsert(tid, dip, &dname, &ino, &btstack); in jfs_symlink()
1015 if (rc) { in jfs_symlink()
1033 rc = txCommit(tid, 2, &iplist[0], 0); in jfs_symlink()
1039 if (rc) { in jfs_symlink()
1051 jfs_info("jfs_symlink: rc:%d", rc); in jfs_symlink()
1052 return rc; in jfs_symlink()
1071 int rc; in jfs_rename() local
1087 rc = dquot_initialize(old_dir); in jfs_rename()
1088 if (rc) in jfs_rename()
1090 rc = dquot_initialize(new_dir); in jfs_rename()
1091 if (rc) in jfs_rename()
1097 if ((rc = get_UCSname(&old_dname, old_dentry))) in jfs_rename()
1100 if ((rc = get_UCSname(&new_dname, new_dentry))) in jfs_rename()
1106 rc = dtSearch(old_dir, &old_dname, &ino, &btstack, JFS_LOOKUP); in jfs_rename()
1107 if (rc || (ino != old_ip->i_ino)) { in jfs_rename()
1108 rc = -ENOENT; in jfs_rename()
1115 rc = dtSearch(new_dir, &new_dname, &ino, &btstack, JFS_LOOKUP); in jfs_rename()
1116 if (!rc) { in jfs_rename()
1118 rc = -ESTALE; in jfs_rename()
1121 } else if (rc != -ENOENT) in jfs_rename()
1125 rc = -ESTALE; in jfs_rename()
1132 rc = -ENOTEMPTY; in jfs_rename()
1139 rc = dquot_initialize(new_ip); in jfs_rename()
1140 if (rc) in jfs_rename()
1168 rc = dtModify(tid, new_dir, &new_dname, &ino, in jfs_rename()
1170 if (rc) in jfs_rename()
1195 rc = new_size; in jfs_rename()
1209 rc = dtSearch(new_dir, &new_dname, &ino, &btstack, in jfs_rename()
1211 if (rc) { in jfs_rename()
1213 rc); in jfs_rename()
1218 rc = dtInsert(tid, new_dir, &new_dname, &ino, &btstack); in jfs_rename()
1219 if (rc) { in jfs_rename()
1220 if (rc == -EIO) in jfs_rename()
1232 rc = dtDelete(tid, old_dir, &old_dname, &ino, JFS_REMOVE); in jfs_rename()
1233 if (rc) { in jfs_rename()
1235 rc); in jfs_rename()
1294 rc = txCommit(tid, ipcount, iplist, commit_flag); in jfs_rename()
1305 while (new_size && (rc == 0)) { in jfs_rename()
1311 rc = new_size; in jfs_rename()
1313 rc = txCommit(tid, 1, &new_ip, COMMIT_SYNC); in jfs_rename()
1337 jfs_info("jfs_rename: returning %d", rc); in jfs_rename()
1338 return rc; in jfs_rename()
1356 int rc; in jfs_mknod() local
1362 rc = dquot_initialize(dir); in jfs_mknod()
1363 if (rc) in jfs_mknod()
1366 if ((rc = get_UCSname(&dname, dentry))) in jfs_mknod()
1371 rc = PTR_ERR(ip); in jfs_mknod()
1381 rc = jfs_init_acl(tid, ip, dir); in jfs_mknod()
1382 if (rc) in jfs_mknod()
1385 rc = jfs_init_security(tid, ip, dir, &dentry->d_name); in jfs_mknod()
1386 if (rc) { in jfs_mknod()
1391 if ((rc = dtSearch(dir, &dname, &ino, &btstack, JFS_CREATE))) { in jfs_mknod()
1402 if ((rc = dtInsert(tid, dir, &dname, &ino, &btstack))) { in jfs_mknod()
1419 rc = txCommit(tid, 2, iplist, 0); in jfs_mknod()
1425 if (rc) { in jfs_mknod()
1437 jfs_info("jfs_mknod: returning %d", rc); in jfs_mknod()
1438 return rc; in jfs_mknod()
1447 int rc; in jfs_lookup() local
1451 if ((rc = get_UCSname(&key, dentry))) in jfs_lookup()
1452 return ERR_PTR(rc); in jfs_lookup()
1453 rc = dtSearch(dip, &key, &inum, &btstack, JFS_LOOKUP); in jfs_lookup()
1455 if (rc == -ENOENT) { in jfs_lookup()
1457 } else if (rc) { in jfs_lookup()
1458 jfs_err("jfs_lookup: dtSearch returned %d", rc); in jfs_lookup()
1459 ip = ERR_PTR(rc); in jfs_lookup()