Lines Matching refs:status

412 	int status;  in ocfs2_sync_fs()  local
420 status = ocfs2_flush_truncate_log(osb); in ocfs2_sync_fs()
421 if (status < 0) in ocfs2_sync_fs()
422 mlog_errno(status); in ocfs2_sync_fs()
452 int status = 0; in ocfs2_init_global_system_inodes() local
457 status = PTR_ERR(new); in ocfs2_init_global_system_inodes()
458 mlog_errno(status); in ocfs2_init_global_system_inodes()
465 status = PTR_ERR(new); in ocfs2_init_global_system_inodes()
466 mlog_errno(status); in ocfs2_init_global_system_inodes()
478 status = -EINVAL; in ocfs2_init_global_system_inodes()
479 mlog_errno(status); in ocfs2_init_global_system_inodes()
490 if (status) in ocfs2_init_global_system_inodes()
491 mlog_errno(status); in ocfs2_init_global_system_inodes()
492 return status; in ocfs2_init_global_system_inodes()
498 int status = 0; in ocfs2_init_local_system_inodes() local
509 status = -EINVAL; in ocfs2_init_local_system_inodes()
511 status, i, osb->slot_num); in ocfs2_init_local_system_inodes()
519 if (status) in ocfs2_init_local_system_inodes()
520 mlog_errno(status); in ocfs2_init_local_system_inodes()
521 return status; in ocfs2_init_local_system_inodes()
761 int status, tmpstat; in ocfs2_sb_probe() local
773 status = -EINVAL; in ocfs2_sb_probe()
782 status = ocfs2_get_sector(sb, bh, 0, *sector_size); in ocfs2_sb_probe()
783 if (status < 0) { in ocfs2_sb_probe()
784 mlog_errno(status); in ocfs2_sb_probe()
791 status = -EINVAL; in ocfs2_sb_probe()
797 status = -EINVAL; in ocfs2_sb_probe()
801 if (status < 0) { in ocfs2_sb_probe()
812 status = -EINVAL; in ocfs2_sb_probe()
820 status = tmpstat; in ocfs2_sb_probe()
821 mlog_errno(status); in ocfs2_sb_probe()
833 status = tmpstat; in ocfs2_sb_probe()
839 return status; in ocfs2_sb_probe()
914 int status = 0; in ocfs2_susp_quotas() local
920 status = dquot_resume(sb, type); in ocfs2_susp_quotas()
927 status = dquot_suspend(sb, type); in ocfs2_susp_quotas()
929 if (status < 0) in ocfs2_susp_quotas()
932 if (status < 0) in ocfs2_susp_quotas()
934 "remount (error = %d).\n", status); in ocfs2_susp_quotas()
935 return status; in ocfs2_susp_quotas()
948 int status; in ocfs2_enable_quotas() local
958 status = -ENOENT; in ocfs2_enable_quotas()
961 status = dquot_enable(inode[type], type, QFMT_OCFS2, in ocfs2_enable_quotas()
963 if (status < 0) in ocfs2_enable_quotas()
974 mlog_errno(status); in ocfs2_enable_quotas()
975 return status; in ocfs2_enable_quotas()
1008 int status, sector_size; in ocfs2_fill_super() local
1019 status = -EINVAL; in ocfs2_fill_super()
1024 status = ocfs2_sb_probe(sb, &bh, &sector_size, &stats); in ocfs2_fill_super()
1025 if (status < 0) { in ocfs2_fill_super()
1030 status = ocfs2_initialize_super(sb, bh, sector_size, &stats); in ocfs2_fill_super()
1032 if (status < 0) { in ocfs2_fill_super()
1033 mlog_errno(status); in ocfs2_fill_super()
1040 status = -EINVAL; in ocfs2_fill_super()
1056 status = ocfs2_verify_userspace_stack(osb, &parsed_options); in ocfs2_fill_super()
1057 if (status) in ocfs2_fill_super()
1069 status = -EACCES; in ocfs2_fill_super()
1078 status = -EROFS; in ocfs2_fill_super()
1084 status = ocfs2_check_journals_nolocks(osb); in ocfs2_fill_super()
1085 if (status < 0) { in ocfs2_fill_super()
1086 if (status == -EROFS) in ocfs2_fill_super()
1091 mlog_errno(status); in ocfs2_fill_super()
1107 status = ocfs2_verify_heartbeat(osb); in ocfs2_fill_super()
1108 if (status < 0) { in ocfs2_fill_super()
1109 mlog_errno(status); in ocfs2_fill_super()
1116 status = -EINVAL; in ocfs2_fill_super()
1126 status = -EINVAL; in ocfs2_fill_super()
1127 mlog_errno(status); in ocfs2_fill_super()
1132 status = ocfs2_blockcheck_stats_debugfs_install( in ocfs2_fill_super()
1135 if (status) { in ocfs2_fill_super()
1143 status = ocfs2_mount_volume(sb); in ocfs2_fill_super()
1144 if (status < 0) in ocfs2_fill_super()
1151 status = -EIO; in ocfs2_fill_super()
1152 mlog_errno(status); in ocfs2_fill_super()
1158 status = -ENOMEM; in ocfs2_fill_super()
1159 mlog_errno(status); in ocfs2_fill_super()
1185 status = ocfs2_enable_quotas(osb); in ocfs2_fill_super()
1186 if (status < 0) { in ocfs2_fill_super()
1189 mlog_errno(status); in ocfs2_fill_super()
1192 return status; in ocfs2_fill_super()
1205 return status; in ocfs2_fill_super()
1216 if (status) in ocfs2_fill_super()
1217 mlog_errno(status); in ocfs2_fill_super()
1218 return status; in ocfs2_fill_super()
1278 int status, user_stack = 0; in ocfs2_parse_options() local
1294 status = 1; in ocfs2_parse_options()
1318 status = 0; in ocfs2_parse_options()
1352 status = 0; in ocfs2_parse_options()
1361 status = 0; in ocfs2_parse_options()
1370 status = 0; in ocfs2_parse_options()
1382 status = 0; in ocfs2_parse_options()
1414 status = 0; in ocfs2_parse_options()
1457 status = 0; in ocfs2_parse_options()
1468 status = 0; in ocfs2_parse_options()
1482 status = 0; in ocfs2_parse_options()
1494 status = 0; in ocfs2_parse_options()
1499 status = 1; in ocfs2_parse_options()
1502 return status; in ocfs2_parse_options()
1592 int status; in ocfs2_init() local
1594 status = init_ocfs2_uptodate_cache(); in ocfs2_init()
1595 if (status < 0) in ocfs2_init()
1598 status = ocfs2_initialize_mem_caches(); in ocfs2_init()
1599 if (status < 0) in ocfs2_init()
1604 status = -ENOMEM; in ocfs2_init()
1610 status = -ENOMEM; in ocfs2_init()
1617 status = register_quota_format(&ocfs2_quota_format); in ocfs2_init()
1618 if (status < 0) in ocfs2_init()
1620 status = register_filesystem(&ocfs2_fs_type); in ocfs2_init()
1621 if (!status) in ocfs2_init()
1633 mlog_errno(status); in ocfs2_init()
1634 return status; in ocfs2_init()
1667 int status; in ocfs2_statfs() local
1681 status = -EIO; in ocfs2_statfs()
1685 status = ocfs2_inode_lock(inode, &bh, 0); in ocfs2_statfs()
1686 if (status < 0) { in ocfs2_statfs()
1687 mlog_errno(status); in ocfs2_statfs()
1714 status = 0; in ocfs2_statfs()
1719 if (status) in ocfs2_statfs()
1720 mlog_errno(status); in ocfs2_statfs()
1722 return status; in ocfs2_statfs()
1843 int status = 0; in ocfs2_mount_volume() local
1850 status = ocfs2_dlm_init(osb); in ocfs2_mount_volume()
1851 if (status < 0) { in ocfs2_mount_volume()
1852 mlog_errno(status); in ocfs2_mount_volume()
1856 status = ocfs2_super_lock(osb, 1); in ocfs2_mount_volume()
1857 if (status < 0) { in ocfs2_mount_volume()
1858 mlog_errno(status); in ocfs2_mount_volume()
1864 status = ocfs2_find_slot(osb); in ocfs2_mount_volume()
1865 if (status < 0) { in ocfs2_mount_volume()
1866 mlog_errno(status); in ocfs2_mount_volume()
1871 status = ocfs2_init_local_system_inodes(osb); in ocfs2_mount_volume()
1872 if (status < 0) { in ocfs2_mount_volume()
1873 mlog_errno(status); in ocfs2_mount_volume()
1877 status = ocfs2_check_volume(osb); in ocfs2_mount_volume()
1878 if (status < 0) { in ocfs2_mount_volume()
1879 mlog_errno(status); in ocfs2_mount_volume()
1883 status = ocfs2_truncate_log_init(osb); in ocfs2_mount_volume()
1884 if (status < 0) in ocfs2_mount_volume()
1885 mlog_errno(status); in ocfs2_mount_volume()
1891 return status; in ocfs2_mount_volume()
2013 int status = 0; in ocfs2_journal_addressable() local
2030 status = -EFBIG; in ocfs2_journal_addressable()
2035 return status; in ocfs2_journal_addressable()
2043 int status; in ocfs2_initialize_super() local
2053 status = -ENOMEM; in ocfs2_initialize_super()
2054 mlog_errno(status); in ocfs2_initialize_super()
2116 status = -EINVAL; in ocfs2_initialize_super()
2122 status = ocfs2_recovery_init(osb); in ocfs2_initialize_super()
2123 if (status) { in ocfs2_initialize_super()
2125 mlog_errno(status); in ocfs2_initialize_super()
2144 status = ocfs2_resmap_init(osb, &osb->osb_la_resmap); in ocfs2_initialize_super()
2145 if (status) { in ocfs2_initialize_super()
2146 mlog_errno(status); in ocfs2_initialize_super()
2153 status = -ENOMEM; in ocfs2_initialize_super()
2161 status = -ENOMEM; in ocfs2_initialize_super()
2162 mlog_errno(status); in ocfs2_initialize_super()
2171 status = -ENOMEM; in ocfs2_initialize_super()
2172 mlog_errno(status); in ocfs2_initialize_super()
2188 status = -EINVAL; in ocfs2_initialize_super()
2195 status = -EINVAL; in ocfs2_initialize_super()
2210 status = -EINVAL; in ocfs2_initialize_super()
2236 status = -ENOMEM; in ocfs2_initialize_super()
2263 status = -EINVAL; in ocfs2_initialize_super()
2270 status = generic_check_addressable(osb->sb->s_blocksize_bits, in ocfs2_initialize_super()
2272 if (status) { in ocfs2_initialize_super()
2275 status = -EFBIG; in ocfs2_initialize_super()
2282 status = -ENOMEM; in ocfs2_initialize_super()
2301 status = -ENOMEM; in ocfs2_initialize_super()
2302 mlog_errno(status); in ocfs2_initialize_super()
2309 status = ocfs2_init_global_system_inodes(osb); in ocfs2_initialize_super()
2310 if (status < 0) { in ocfs2_initialize_super()
2311 mlog_errno(status); in ocfs2_initialize_super()
2321 status = -EINVAL; in ocfs2_initialize_super()
2322 mlog_errno(status); in ocfs2_initialize_super()
2333 status = ocfs2_init_slot_info(osb); in ocfs2_initialize_super()
2334 if (status < 0) { in ocfs2_initialize_super()
2335 mlog_errno(status); in ocfs2_initialize_super()
2341 return status; in ocfs2_initialize_super()
2354 int status = -EAGAIN; in ocfs2_verify_volume() local
2361 status = ocfs2_block_check_validate(bh->b_data, in ocfs2_verify_volume()
2365 if (status) in ocfs2_verify_volume()
2368 status = -EINVAL; in ocfs2_verify_volume()
2405 status = 0; in ocfs2_verify_volume()
2410 if (status && status != -EAGAIN) in ocfs2_verify_volume()
2411 mlog_errno(status); in ocfs2_verify_volume()
2412 return status; in ocfs2_verify_volume()
2417 int status; in ocfs2_check_volume() local
2425 status = ocfs2_journal_init(osb->journal, &dirty); in ocfs2_check_volume()
2426 if (status < 0) { in ocfs2_check_volume()
2433 status = ocfs2_journal_addressable(osb); in ocfs2_check_volume()
2434 if (status) in ocfs2_check_volume()
2441 status = ocfs2_journal_wipe(osb->journal, 0); in ocfs2_check_volume()
2442 if (status < 0) { in ocfs2_check_volume()
2443 mlog_errno(status); in ocfs2_check_volume()
2454 status = ocfs2_journal_load(osb->journal, local, dirty); in ocfs2_check_volume()
2455 if (status < 0) { in ocfs2_check_volume()
2456 mlog(ML_ERROR, "ocfs2 journal load failed! %d\n", status); in ocfs2_check_volume()
2471 status = ocfs2_begin_local_alloc_recovery(osb, in ocfs2_check_volume()
2474 if (status < 0) { in ocfs2_check_volume()
2475 mlog_errno(status); in ocfs2_check_volume()
2482 status = ocfs2_load_local_alloc(osb); in ocfs2_check_volume()
2483 if (status < 0) { in ocfs2_check_volume()
2484 mlog_errno(status); in ocfs2_check_volume()
2499 status = ocfs2_mark_dead_nodes(osb); in ocfs2_check_volume()
2500 if (status < 0) { in ocfs2_check_volume()
2501 mlog_errno(status); in ocfs2_check_volume()
2505 status = ocfs2_compute_replay_slots(osb); in ocfs2_check_volume()
2506 if (status < 0) in ocfs2_check_volume()
2507 mlog_errno(status); in ocfs2_check_volume()
2512 if (status) in ocfs2_check_volume()
2513 mlog_errno(status); in ocfs2_check_volume()
2514 return status; in ocfs2_check_volume()