• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/ocfs2/

Lines Matching refs:status

103 	int status;
120 status = ocfs2_inode_lock_nested(dir, NULL, 0, OI_LS_PARENT);
121 if (status < 0) {
122 if (status != -ENOENT)
123 mlog_errno(status);
124 ret = ERR_PTR(status);
128 status = ocfs2_lookup_ino_from_name(dir, dentry->d_name.name,
130 if (status < 0)
167 status = ocfs2_dentry_attach_lock(dentry, inode,
169 if (status) {
170 mlog_errno(status);
171 ret = ERR_PTR(status);
217 int status = 0;
247 status = ocfs2_inode_lock(dir, &parent_fe_bh, 1);
248 if (status < 0) {
249 if (status != -ENOENT)
250 mlog_errno(status);
251 return status;
255 status = -EMLINK;
262 status = -ENOENT;
266 status = ocfs2_check_dir_for_entry(dir, dentry->d_name.name,
268 if (status)
272 status = ocfs2_prepare_dir_for_insert(osb, dir, parent_fe_bh,
275 if (status < 0) {
276 mlog_errno(status);
281 status = ocfs2_reserve_new_inode(osb, &inode_ac);
282 if (status < 0) {
283 if (status != -ENOSPC)
284 mlog_errno(status);
290 status = -ENOMEM;
291 mlog_errno(status);
296 status = ocfs2_init_security_get(inode, dir, &si);
297 if (status) {
298 if (status == -EOPNOTSUPP)
301 mlog_errno(status);
307 status = ocfs2_calc_xattr_init(dir, parent_fe_bh, mode,
310 if (status < 0) {
311 mlog_errno(status);
324 status = ocfs2_reserve_new_metadata_blocks(osb, want_meta, &meta_ac);
325 if (status < 0) {
326 if (status != -ENOSPC)
327 mlog_errno(status);
331 status = ocfs2_reserve_clusters(osb, want_clusters, &data_ac);
332 if (status < 0) {
333 if (status != -ENOSPC)
334 mlog_errno(status);
342 status = PTR_ERR(handle);
344 mlog_errno(status);
352 status = dquot_alloc_inode(inode);
353 if (status)
362 status = ocfs2_mknod_locked(osb, dir, inode, dev,
365 if (status < 0) {
366 mlog_errno(status);
371 status = ocfs2_fill_new_dir(osb, handle, dir, inode,
373 if (status < 0) {
374 mlog_errno(status);
378 status = ocfs2_journal_access_di(handle, INODE_CACHE(dir),
381 if (status < 0) {
382 mlog_errno(status);
390 status = ocfs2_init_acl(handle, inode, dir, new_fe_bh, parent_fe_bh,
392 if (status < 0) {
393 mlog_errno(status);
398 status = ocfs2_init_security_set(handle, inode, new_fe_bh, &si,
400 if (status < 0) {
401 mlog_errno(status);
411 status = ocfs2_dentry_attach_lock(dentry, inode,
413 if (status) {
414 mlog_errno(status);
419 status = ocfs2_add_entry(handle, dentry, inode,
422 if (status < 0) {
423 mlog_errno(status);
429 status = 0;
431 if (status < 0 && did_quota_inode)
440 if (status == -ENOSPC)
464 if ((status < 0) && inode) {
470 mlog_exit(status);
472 return status;
484 int status = 0;
503 status = -EIO;
504 mlog_errno(status);
509 status = ocfs2_journal_access_di(handle, INODE_CACHE(inode),
512 if (status < 0) {
513 mlog_errno(status);
565 status = ocfs2_create_new_inode_locks(inode);
566 if (status < 0)
567 mlog_errno(status);
570 status = 0; /* error in ocfs2_create_new_inode_locks is not
574 if (status < 0) {
581 mlog_exit(status);
582 return status;
594 int status = 0;
600 status = ocfs2_claim_new_inode(handle, dir, parent_fe_bh,
603 if (status < 0) {
604 mlog_errno(status);
605 return status;
800 int status;
828 status = ocfs2_inode_lock_nested(dir, &parent_node_bh, 1,
830 if (status < 0) {
831 if (status != -ENOENT)
832 mlog_errno(status);
833 return status;
836 status = ocfs2_find_files_on_disk(dentry->d_name.name,
839 if (status < 0) {
840 if (status != -ENOENT)
841 mlog_errno(status);
846 status = -ENOENT;
854 status = ocfs2_inode_lock(inode, &fe_bh, 1);
855 if (status < 0) {
856 if (status != -ENOENT)
857 mlog_errno(status);
864 status = -ENOTEMPTY;
869 status = ocfs2_remote_dentry_delete(dentry);
870 if (status < 0) {
873 mlog_errno(status);
878 status = ocfs2_prepare_orphan_dir(osb, &orphan_dir,
881 if (status < 0) {
882 mlog_errno(status);
889 status = PTR_ERR(handle);
891 mlog_errno(status);
895 status = ocfs2_journal_access_di(handle, INODE_CACHE(inode), fe_bh,
897 if (status < 0) {
898 mlog_errno(status);
905 status = ocfs2_orphan_add(osb, handle, inode, fe_bh, orphan_name,
907 if (status < 0) {
908 mlog_errno(status);
914 status = ocfs2_delete_entry(handle, dir, &lookup);
915 if (status < 0) {
916 mlog_errno(status);
930 status = ocfs2_mark_inode_dirty(handle, dir, parent_node_bh);
931 if (status < 0) {
932 mlog_errno(status);
959 mlog_exit(status);
961 return status;
974 int status;
1003 status = ocfs2_inode_lock_nested(inode2, bh2, 1,
1005 if (status < 0) {
1006 if (status != -ENOENT)
1007 mlog_errno(status);
1013 status = ocfs2_inode_lock_nested(inode1, bh1, 1, OI_LS_RENAME2);
1014 if (status < 0) {
1022 if (status != -ENOENT)
1023 mlog_errno(status);
1027 mlog_exit(status);
1028 return status;
1044 int status = 0, rename_lock = 0, parents_locked = 0, target_exists = 0;
1096 status = ocfs2_rename_lock(osb);
1097 if (status < 0) {
1098 mlog_errno(status);
1105 status = ocfs2_double_lock(osb, &old_dir_bh, old_dir,
1107 if (status < 0) {
1108 mlog_errno(status);
1121 status = -EIO;
1132 status = ocfs2_inode_lock_nested(old_inode, &old_inode_bh, 1,
1134 if (status < 0) {
1135 if (status != -ENOENT)
1136 mlog_errno(status);
1141 status = ocfs2_remote_dentry_delete(old_dentry);
1142 if (status < 0) {
1143 mlog_errno(status);
1151 status = ocfs2_find_files_on_disk("..", 2, &old_inode_parent,
1154 if (status) {
1155 status = -EIO;
1160 status = -EIO;
1166 status = -EMLINK;
1171 status = ocfs2_lookup_ino_from_name(old_dir, old_dentry->d_name.name,
1174 if (status) {
1175 status = -ENOENT;
1186 status = -ENOENT;
1192 status = ocfs2_find_files_on_disk(new_dentry->d_name.name,
1198 if ((status < 0) && (status != -ENOENT)) {
1201 mlog_errno(status);
1204 if (status == 0)
1214 status = -ENOENT;
1227 status = -EACCES;
1236 status = -EACCES;
1245 status = ocfs2_inode_lock(new_inode, &newfe_bh, 1);
1246 if (status < 0) {
1247 if (status != -ENOENT)
1248 mlog_errno(status);
1253 status = ocfs2_remote_dentry_delete(new_dentry);
1254 if (status < 0) {
1255 mlog_errno(status);
1267 status = ocfs2_prepare_orphan_dir(osb, &orphan_dir,
1270 if (status < 0) {
1271 mlog_errno(status);
1278 status = ocfs2_check_dir_for_entry(new_dir,
1281 if (status)
1284 status = ocfs2_prepare_dir_for_insert(osb, new_dir, new_dir_bh,
1288 if (status < 0) {
1289 mlog_errno(status);
1296 status = PTR_ERR(handle);
1298 mlog_errno(status);
1306 status = -ENOTEMPTY;
1310 status = ocfs2_journal_access_di(handle, INODE_CACHE(new_inode),
1313 if (status < 0) {
1314 mlog_errno(status);
1320 status = ocfs2_orphan_add(osb, handle, new_inode,
1323 if (status < 0) {
1324 mlog_errno(status);
1330 status = ocfs2_update_entry(new_dir, handle, &target_lookup_res,
1332 if (status < 0) {
1333 mlog_errno(status);
1345 status = ocfs2_add_entry(handle, new_dentry, old_inode,
1353 status = ocfs2_journal_access_di(handle, INODE_CACHE(old_inode),
1356 if (status >= 0) {
1363 mlog_errno(status);
1372 status = ocfs2_find_entry(old_dentry->d_name.name,
1375 if (status)
1378 status = ocfs2_delete_entry(handle, old_dir, &old_entry_lookup);
1379 if (status < 0) {
1380 mlog_errno(status);
1391 status = ocfs2_update_entry(old_inode, handle,
1427 status = ocfs2_journal_access_di(handle,
1437 status = 0;
1478 mlog_exit(status);
1480 return status;
1496 int virtual, blocks, status, i, bytes_left;
1510 status = -EIO;
1511 mlog_errno(status);
1517 status = -ENOMEM;
1518 mlog_errno(status);
1522 status = ocfs2_extent_map_get_blocks(inode, 0, &p_blkno, &p_blocks,
1524 if (status < 0) {
1525 mlog_errno(status);
1533 status = -EIO;
1534 mlog_errno(status);
1544 status = -ENOMEM;
1545 mlog_errno(status);
1551 status = ocfs2_journal_access(handle, INODE_CACHE(inode),
1554 if (status < 0) {
1555 mlog_errno(status);
1572 status = 0;
1581 mlog_exit(status);
1582 return status;
1589 int status, l, credits;
1625 status = ocfs2_inode_lock(dir, &parent_fe_bh, 1);
1626 if (status < 0) {
1627 if (status != -ENOENT)
1628 mlog_errno(status);
1629 return status;
1635 status = -ENOENT;
1639 status = ocfs2_check_dir_for_entry(dir, dentry->d_name.name,
1641 if (status)
1644 status = ocfs2_prepare_dir_for_insert(osb, dir, parent_fe_bh,
1647 if (status < 0) {
1648 mlog_errno(status);
1652 status = ocfs2_reserve_new_inode(osb, &inode_ac);
1653 if (status < 0) {
1654 if (status != -ENOSPC)
1655 mlog_errno(status);
1661 status = -ENOMEM;
1662 mlog_errno(status);
1667 status = ocfs2_init_security_get(inode, dir, &si);
1668 if (status) {
1669 if (status == -EOPNOTSUPP)
1672 mlog_errno(status);
1679 status = ocfs2_calc_security_init(dir, &si, &want_clusters,
1681 if (status < 0) {
1682 mlog_errno(status);
1691 status = ocfs2_reserve_clusters(osb, want_clusters, &data_ac);
1692 if (status < 0) {
1693 if (status != -ENOSPC)
1694 mlog_errno(status);
1700 status = PTR_ERR(handle);
1702 mlog_errno(status);
1710 status = dquot_alloc_inode(inode);
1711 if (status)
1719 status = ocfs2_mknod_locked(osb, dir, inode,
1722 if (status < 0) {
1723 mlog_errno(status);
1734 status = dquot_alloc_space_nodirty(inode,
1736 if (status)
1739 status = ocfs2_add_inode_data(osb, inode, &offset, 1, 0,
1743 if (status < 0) {
1744 if (status != -ENOSPC && status != -EINTR) {
1748 mlog_errno(status);
1749 status = -ENOSPC;
1762 status = ocfs2_mark_inode_dirty(handle, inode, new_fe_bh);
1763 if (status < 0) {
1764 mlog_errno(status);
1769 status = ocfs2_create_symlink_data(osb, handle, inode,
1771 if (status < 0) {
1772 mlog_errno(status);
1778 status = ocfs2_init_security_set(handle, inode, new_fe_bh, &si,
1780 if (status < 0) {
1781 mlog_errno(status);
1791 status = ocfs2_dentry_attach_lock(dentry, inode, OCFS2_I(dir)->ip_blkno);
1792 if (status) {
1793 mlog_errno(status);
1798 status = ocfs2_add_entry(handle, dentry, inode,
1801 if (status < 0) {
1802 mlog_errno(status);
1809 if (status < 0 && did_quota)
1812 if (status < 0 && did_quota_inode)
1832 if ((status < 0) && inode) {
1838 mlog_exit(status);
1840 return status;
1845 int status, namelen;
1853 status = namelen;
1855 status = -EINVAL;
1856 mlog_errno(status);
1860 status = -EINVAL;
1861 mlog_errno(status);
1868 status = 0;
1870 mlog_exit(status);
1871 return status;
1996 int status = 0;
2002 status = ocfs2_read_inode_block(orphan_dir_inode, &orphan_dir_bh);
2003 if (status < 0) {
2004 mlog_errno(status);
2008 status = ocfs2_journal_access_di(handle,
2012 if (status < 0) {
2013 mlog_errno(status);
2025 status = __ocfs2_add_entry(handle, orphan_dir_inode, name,
2029 if (status < 0) {
2030 mlog_errno(status);
2040 status = ocfs2_journal_access_di(handle,
2044 if (status < 0) {
2045 mlog_errno(status);
2065 mlog_exit(status);
2066 return status;
2078 int status = 0;
2083 status = ocfs2_blkno_stringify(OCFS2_I(inode)->ip_blkno, name);
2084 if (status < 0) {
2085 mlog_errno(status);
2094 status = ocfs2_find_entry(name, OCFS2_ORPHAN_NAMELEN, orphan_dir_inode,
2096 if (status) {
2097 mlog_errno(status);
2102 status = ocfs2_delete_entry(handle, orphan_dir_inode, &lookup);
2103 if (status < 0) {
2104 mlog_errno(status);
2108 status = ocfs2_journal_access_di(handle,
2112 if (status < 0) {
2113 mlog_errno(status);
2127 mlog_exit(status);
2128 return status;
2228 int status, did_quota_inode = 0;
2242 status = ocfs2_inode_lock(dir, &parent_di_bh, 1);
2243 if (status < 0) {
2244 if (status != -ENOENT)
2245 mlog_errno(status);
2246 return status;
2249 status = ocfs2_prep_new_orphaned_file(dir, parent_di_bh,
2252 if (status < 0) {
2253 if (status != -ENOSPC)
2254 mlog_errno(status);
2260 status = -ENOMEM;
2261 mlog_errno(status);
2267 status = PTR_ERR(handle);
2269 mlog_errno(status);
2273 status = dquot_alloc_inode(inode);
2274 if (status)
2278 status = ocfs2_claim_new_inode_at_loc(handle, dir, inode_ac,
2281 if (status < 0) {
2282 mlog_errno(status);
2288 status = __ocfs2_mknod_locked(dir, inode,
2292 if (status < 0) {
2293 mlog_errno(status);
2298 status = ocfs2_orphan_add(osb, handle, inode, new_di_bh, orphan_name,
2300 if (status < 0) {
2301 mlog_errno(status);
2306 status = ocfs2_open_lock(inode);
2307 if (status < 0)
2308 mlog_errno(status);
2312 if (status < 0 && did_quota_inode)
2324 if (status == -ENOSPC)
2327 if ((status < 0) && inode) {
2337 if (!status)
2344 return status;
2351 int status = 0;
2364 status = ocfs2_inode_lock(dir, &parent_di_bh, 1);
2365 if (status < 0) {
2366 if (status != -ENOENT)
2367 mlog_errno(status);
2368 return status;
2374 status = -ENOENT;
2378 status = ocfs2_check_dir_for_entry(dir, dentry->d_name.name,
2380 if (status)
2384 status = ocfs2_prepare_dir_for_insert(osb, dir, parent_di_bh,
2387 if (status < 0) {
2388 mlog_errno(status);
2396 status = -EEXIST;
2397 mlog_errno(status);
2403 status = ocfs2_inode_lock(orphan_dir_inode, &orphan_dir_bh, 1);
2404 if (status < 0) {
2405 mlog_errno(status);
2411 status = ocfs2_read_inode_block(inode, &di_bh);
2412 if (status < 0) {
2413 mlog_errno(status);
2419 status = PTR_ERR(handle);
2421 mlog_errno(status);
2425 status = ocfs2_journal_access_di(handle, INODE_CACHE(inode),
2427 if (status < 0) {
2428 mlog_errno(status);
2432 status = ocfs2_orphan_del(osb, handle, orphan_dir_inode, inode,
2434 if (status < 0) {
2435 mlog_errno(status);
2446 status = ocfs2_add_entry(handle, dentry, inode,
2449 if (status < 0) {
2450 mlog_errno(status);
2454 status = ocfs2_dentry_attach_lock(dentry, inode,
2456 if (status) {
2457 mlog_errno(status);
2463 status = 0;
2480 mlog_exit(status);
2482 return status;