• 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

299 	int status = 0;
318 status = jbd2_journal_flush(journal->j_journal);
320 if (status < 0) {
322 mlog_errno(status);
338 mlog_exit(status);
339 return status;
420 int status, old_nblocks;
434 status = 1;
436 status = jbd2_journal_extend(handle, nblocks);
437 if (status < 0) {
438 mlog_errno(status);
443 if (status > 0) {
447 status = jbd2_journal_restart(handle,
449 if (status < 0) {
450 mlog_errno(status);
455 status = 0;
458 mlog_exit(status);
459 return status;
618 int status;
653 status = jbd2_journal_get_write_access(handle, bh);
657 status = jbd2_journal_get_undo_access(handle, bh);
661 status = -EINVAL;
664 if (!status && ocfs2_meta_ecc(osb) && triggers)
668 if (status < 0)
670 status, type);
672 mlog_exit(status);
673 return status;
739 int status;
744 status = jbd2_journal_dirty_metadata(handle, bh);
745 BUG_ON(status);
771 int status = -1;
789 status = -EACCES;
790 mlog_errno(status);
797 status = -EACCES;
807 status = ocfs2_inode_lock_full(inode, &bh, 1, OCFS2_META_LOCK_RECOVERY);
808 if (status < 0) {
809 if (status != -ERESTARTSYS)
820 status = -EINVAL;
833 status = -EINVAL;
851 status = 0;
853 if (status < 0) {
863 mlog_exit(status);
864 return status;
880 int status;
906 status = ocfs2_write_block(osb, bh, INODE_CACHE(journal->j_inode));
907 if (status < 0)
908 mlog_errno(status);
910 mlog_exit(status);
911 return status;
921 int status = 0;
968 status = jbd2_journal_flush(journal->j_journal);
970 if (status < 0)
971 mlog_errno(status);
974 if (status == 0) {
979 status = ocfs2_journal_toggle_dirty(osb, 0, 0);
980 if (status < 0)
981 mlog_errno(status);
1025 int status = 0;
1034 status = jbd2_journal_load(journal->j_journal);
1035 if (status < 0) {
1042 status = ocfs2_journal_toggle_dirty(osb, 1, replayed);
1043 if (status < 0) {
1044 mlog_errno(status);
1053 status = PTR_ERR(osb->commit_task);
1056 "error=%d", status);
1063 mlog_exit(status);
1064 return status;
1072 int status;
1078 status = jbd2_journal_wipe(journal->j_journal, full);
1079 if (status < 0) {
1080 mlog_errno(status);
1084 status = ocfs2_journal_toggle_dirty(journal->j_osb, 0, 0);
1085 if (status < 0)
1086 mlog_errno(status);
1089 mlog_exit(status);
1090 return status;
1122 int status = 0;
1135 status = ocfs2_extent_map_get_blocks(inode, v_blkno,
1137 if (status < 0) {
1138 mlog_errno(status);
1147 status = ocfs2_read_blocks_sync(OCFS2_SB(inode->i_sb),
1149 if (status < 0) {
1150 mlog_errno(status);
1165 mlog_exit(status);
1166 return status;
1336 int status, node_num, slot_num;
1345 status = ocfs2_wait_on_mount(osb);
1346 if (status < 0) {
1352 status = -ENOMEM;
1356 status = ocfs2_super_lock(osb, 1);
1357 if (status < 0) {
1358 mlog_errno(status);
1362 status = ocfs2_compute_replay_slots(osb);
1363 if (status < 0)
1364 mlog_errno(status);
1379 status = 0;
1396 status = ocfs2_recover_node(osb, node_num, slot_num);
1398 if (!status) {
1403 status, node_num,
1414 status = ocfs2_check_journals_nolocks(osb);
1415 status = (status == -EROFS) ? 0 : status;
1416 if (status < 0)
1417 mlog_errno(status);
1425 status = PTR_ERR(qrec);
1426 mlog_errno(status);
1440 if (!status && !ocfs2_recovery_completed(osb)) {
1455 mlog_exit(status);
1459 complete_and_exit(NULL, status);
1460 return status;
1501 int status = -EACCES;
1509 mlog_errno(status);
1514 status = ocfs2_read_inode_block_full(inode, bh, OCFS2_BH_IGNORE_CACHE);
1515 if (status < 0) {
1516 mlog_errno(status);
1520 status = 0;
1524 if (status || !ret_inode)
1529 return status;
1538 int status;
1547 status = ocfs2_read_journal_inode(osb, slot_num, &bh, &inode);
1548 if (status) {
1549 mlog_errno(status);
1570 status = -EBUSY;
1576 status = ocfs2_inode_lock_full(inode, &bh, 1, OCFS2_META_LOCK_RECOVERY);
1577 if (status < 0) {
1578 mlog(0, "status returned from ocfs2_inode_lock=%d\n", status);
1579 if (status != -ERESTARTSYS)
1606 status = ocfs2_force_read_journal(inode);
1607 if (status < 0) {
1608 mlog_errno(status);
1616 status = -EIO;
1620 status = jbd2_journal_load(journal);
1621 if (status < 0) {
1622 mlog_errno(status);
1634 status = jbd2_journal_flush(journal);
1636 if (status < 0)
1637 mlog_errno(status);
1650 status = ocfs2_write_block(osb, bh, INODE_CACHE(inode));
1651 if (status < 0)
1652 mlog_errno(status);
1669 mlog_exit(status);
1670 return status;
1688 int status = 0;
1699 status = ocfs2_replay_journal(osb, node_num, slot_num);
1700 if (status < 0) {
1701 if (status == -EBUSY) {
1705 status = 0;
1708 mlog_errno(status);
1713 status = ocfs2_begin_local_alloc_recovery(osb, slot_num, &la_copy);
1714 if (status < 0) {
1715 mlog_errno(status);
1722 status = ocfs2_begin_truncate_log_recovery(osb, slot_num, &tl_copy);
1723 if (status < 0)
1724 mlog_errno(status);
1728 status = ocfs2_clear_slot(osb, slot_num);
1729 if (status < 0)
1730 mlog_errno(status);
1736 status = 0;
1739 mlog_exit(status);
1740 return status;
1749 int status, flags;
1756 status = -EACCES;
1763 status = -EACCES;
1769 status = ocfs2_inode_lock_full(inode, NULL, 1, flags);
1770 if (status < 0) {
1771 if (status != -EAGAIN)
1772 mlog_errno(status);
1781 return status;
1789 int status, i;
1799 status = ocfs2_read_journal_inode(osb, i, &bh, NULL);
1800 if (status) {
1801 mlog_errno(status);
1820 status = ocfs2_slot_to_node_num_locked(osb, i, &node_num);
1821 if (status == -ENOENT) {
1835 status = ocfs2_trylock_journal(osb, i);
1836 if (!status) {
1841 } else if ((status < 0) && (status != -EAGAIN)) {
1842 mlog_errno(status);
1847 status = 0;
1849 mlog_exit(status);
1850 return status;
1883 int status, i;
1891 status = ocfs2_orphan_scan_lock(osb, &seqno);
1892 if (status < 0) {
1893 if (status != -EAGAIN)
1894 mlog_errno(status);
2017 int status;
2029 status = -ENOENT;
2030 mlog_errno(status);
2031 return status;
2035 status = ocfs2_inode_lock(orphan_dir_inode, NULL, 0);
2036 if (status < 0) {
2037 mlog_errno(status);
2041 status = ocfs2_dir_foreach(orphan_dir_inode, &pos, &priv,
2043 if (status) {
2044 mlog_errno(status);
2055 return status;
2180 int status;
2195 status = ocfs2_commit_cache(osb);
2196 if (status < 0)
2197 mlog_errno(status);