Lines Matching refs:status
397 int status; in ocfs2_sync_fs() local
405 status = ocfs2_flush_truncate_log(osb); in ocfs2_sync_fs()
406 if (status < 0) in ocfs2_sync_fs()
407 mlog_errno(status); in ocfs2_sync_fs()
437 int status = 0; in ocfs2_init_global_system_inodes() local
442 status = PTR_ERR(new); in ocfs2_init_global_system_inodes()
443 mlog_errno(status); in ocfs2_init_global_system_inodes()
450 status = PTR_ERR(new); in ocfs2_init_global_system_inodes()
451 mlog_errno(status); in ocfs2_init_global_system_inodes()
463 status = ocfs2_is_soft_readonly(osb) ? -EROFS : -EINVAL; in ocfs2_init_global_system_inodes()
464 mlog_errno(status); in ocfs2_init_global_system_inodes()
474 if (status) in ocfs2_init_global_system_inodes()
475 mlog_errno(status); in ocfs2_init_global_system_inodes()
476 return status; in ocfs2_init_global_system_inodes()
482 int status = 0; in ocfs2_init_local_system_inodes() local
493 status = ocfs2_is_soft_readonly(osb) ? -EROFS : -EINVAL; in ocfs2_init_local_system_inodes()
495 status, i, osb->slot_num); in ocfs2_init_local_system_inodes()
503 if (status) in ocfs2_init_local_system_inodes()
504 mlog_errno(status); in ocfs2_init_local_system_inodes()
505 return status; in ocfs2_init_local_system_inodes()
729 int status, tmpstat; in ocfs2_sb_probe() local
741 status = -EINVAL; in ocfs2_sb_probe()
750 status = ocfs2_get_sector(sb, bh, 0, *sector_size); in ocfs2_sb_probe()
751 if (status < 0) { in ocfs2_sb_probe()
752 mlog_errno(status); in ocfs2_sb_probe()
759 status = -EINVAL; in ocfs2_sb_probe()
765 status = -EINVAL; in ocfs2_sb_probe()
769 if (status < 0) { in ocfs2_sb_probe()
780 status = -EINVAL; in ocfs2_sb_probe()
788 status = tmpstat; in ocfs2_sb_probe()
789 mlog_errno(status); in ocfs2_sb_probe()
801 status = tmpstat; in ocfs2_sb_probe()
807 return status; in ocfs2_sb_probe()
882 int status = 0; in ocfs2_susp_quotas() local
888 status = dquot_resume(sb, type); in ocfs2_susp_quotas()
895 status = dquot_suspend(sb, type); in ocfs2_susp_quotas()
897 if (status < 0) in ocfs2_susp_quotas()
900 if (status < 0) in ocfs2_susp_quotas()
902 "remount (error = %d).\n", status); in ocfs2_susp_quotas()
903 return status; in ocfs2_susp_quotas()
916 int status; in ocfs2_enable_quotas() local
926 status = -ENOENT; in ocfs2_enable_quotas()
929 status = dquot_enable(inode[type], type, QFMT_OCFS2, in ocfs2_enable_quotas()
931 if (status < 0) in ocfs2_enable_quotas()
942 mlog_errno(status); in ocfs2_enable_quotas()
943 return status; in ocfs2_enable_quotas()
975 int status, sector_size; in ocfs2_fill_super() local
986 status = -EINVAL; in ocfs2_fill_super()
991 status = ocfs2_sb_probe(sb, &bh, §or_size, &stats); in ocfs2_fill_super()
992 if (status < 0) { in ocfs2_fill_super()
997 status = ocfs2_initialize_super(sb, bh, sector_size, &stats); in ocfs2_fill_super()
999 if (status < 0) { in ocfs2_fill_super()
1000 mlog_errno(status); in ocfs2_fill_super()
1007 status = -EINVAL; in ocfs2_fill_super()
1023 status = ocfs2_verify_userspace_stack(osb, &parsed_options); in ocfs2_fill_super()
1024 if (status) in ocfs2_fill_super()
1036 status = -EACCES; in ocfs2_fill_super()
1045 status = -EROFS; in ocfs2_fill_super()
1051 status = ocfs2_check_journals_nolocks(osb); in ocfs2_fill_super()
1052 if (status < 0) { in ocfs2_fill_super()
1053 if (status == -EROFS) in ocfs2_fill_super()
1058 mlog_errno(status); in ocfs2_fill_super()
1074 status = ocfs2_verify_heartbeat(osb); in ocfs2_fill_super()
1075 if (status < 0) { in ocfs2_fill_super()
1076 mlog_errno(status); in ocfs2_fill_super()
1090 status = ocfs2_mount_volume(sb); in ocfs2_fill_super()
1091 if (status < 0) in ocfs2_fill_super()
1098 status = -EIO; in ocfs2_fill_super()
1099 mlog_errno(status); in ocfs2_fill_super()
1105 status = -ENOMEM; in ocfs2_fill_super()
1106 mlog_errno(status); in ocfs2_fill_super()
1117 status = -ENOMEM; in ocfs2_fill_super()
1125 status = -ENOMEM; in ocfs2_fill_super()
1149 status = ocfs2_enable_quotas(osb); in ocfs2_fill_super()
1150 if (status < 0) { in ocfs2_fill_super()
1153 mlog_errno(status); in ocfs2_fill_super()
1156 return status; in ocfs2_fill_super()
1169 return status; in ocfs2_fill_super()
1174 if (status) in ocfs2_fill_super()
1175 mlog_errno(status); in ocfs2_fill_super()
1183 return status; in ocfs2_fill_super()
1243 int status, user_stack = 0; in ocfs2_parse_options() local
1261 status = 1; in ocfs2_parse_options()
1282 status = 0; in ocfs2_parse_options()
1325 status = 0; in ocfs2_parse_options()
1333 status = 0; in ocfs2_parse_options()
1341 status = 0; in ocfs2_parse_options()
1352 status = 0; in ocfs2_parse_options()
1384 status = 0; in ocfs2_parse_options()
1427 status = 0; in ocfs2_parse_options()
1438 status = 0; in ocfs2_parse_options()
1452 status = 0; in ocfs2_parse_options()
1464 status = 0; in ocfs2_parse_options()
1469 status = 1; in ocfs2_parse_options()
1472 return status; in ocfs2_parse_options()
1564 int status; in ocfs2_init() local
1566 status = init_ocfs2_uptodate_cache(); in ocfs2_init()
1567 if (status < 0) in ocfs2_init()
1570 status = ocfs2_initialize_mem_caches(); in ocfs2_init()
1571 if (status < 0) in ocfs2_init()
1578 status = register_quota_format(&ocfs2_quota_format); in ocfs2_init()
1579 if (status < 0) in ocfs2_init()
1581 status = register_filesystem(&ocfs2_fs_type); in ocfs2_init()
1582 if (!status) in ocfs2_init()
1592 mlog_errno(status); in ocfs2_init()
1593 return status; in ocfs2_init()
1621 int status; in ocfs2_statfs() local
1635 status = -EIO; in ocfs2_statfs()
1639 status = ocfs2_inode_lock(inode, &bh, 0); in ocfs2_statfs()
1640 if (status < 0) { in ocfs2_statfs()
1641 mlog_errno(status); in ocfs2_statfs()
1668 status = 0; in ocfs2_statfs()
1672 if (status) in ocfs2_statfs()
1673 mlog_errno(status); in ocfs2_statfs()
1675 return status; in ocfs2_statfs()
1788 int status = 0; in ocfs2_mount_volume() local
1797 status = ocfs2_dlm_init(osb); in ocfs2_mount_volume()
1798 if (status < 0) { in ocfs2_mount_volume()
1799 mlog_errno(status); in ocfs2_mount_volume()
1800 if (status == -EBADR && ocfs2_userspace_stack(osb)) in ocfs2_mount_volume()
1806 status = ocfs2_super_lock(osb, 1); in ocfs2_mount_volume()
1807 if (status < 0) { in ocfs2_mount_volume()
1808 mlog_errno(status); in ocfs2_mount_volume()
1814 status = ocfs2_find_slot(osb); in ocfs2_mount_volume()
1815 if (status < 0) { in ocfs2_mount_volume()
1816 mlog_errno(status); in ocfs2_mount_volume()
1821 status = ocfs2_init_local_system_inodes(osb); in ocfs2_mount_volume()
1822 if (status < 0) { in ocfs2_mount_volume()
1823 mlog_errno(status); in ocfs2_mount_volume()
1827 status = ocfs2_check_volume(osb); in ocfs2_mount_volume()
1828 if (status < 0) { in ocfs2_mount_volume()
1829 mlog_errno(status); in ocfs2_mount_volume()
1833 status = ocfs2_truncate_log_init(osb); in ocfs2_mount_volume()
1834 if (status < 0) in ocfs2_mount_volume()
1835 mlog_errno(status); in ocfs2_mount_volume()
1841 return status; in ocfs2_mount_volume()
1967 int status = 0; in ocfs2_journal_addressable() local
1984 status = -EFBIG; in ocfs2_journal_addressable()
1989 return status; in ocfs2_journal_addressable()
1997 int status; in ocfs2_initialize_super() local
2007 status = -ENOMEM; in ocfs2_initialize_super()
2008 mlog_errno(status); in ocfs2_initialize_super()
2069 status = -EINVAL; in ocfs2_initialize_super()
2075 status = ocfs2_recovery_init(osb); in ocfs2_initialize_super()
2076 if (status) { in ocfs2_initialize_super()
2078 mlog_errno(status); in ocfs2_initialize_super()
2097 status = ocfs2_resmap_init(osb, &osb->osb_la_resmap); in ocfs2_initialize_super()
2098 if (status) { in ocfs2_initialize_super()
2099 mlog_errno(status); in ocfs2_initialize_super()
2106 status = -ENOMEM; in ocfs2_initialize_super()
2114 status = -ENOMEM; in ocfs2_initialize_super()
2115 mlog_errno(status); in ocfs2_initialize_super()
2124 status = -ENOMEM; in ocfs2_initialize_super()
2125 mlog_errno(status); in ocfs2_initialize_super()
2141 status = -EINVAL; in ocfs2_initialize_super()
2147 status = -EINVAL; in ocfs2_initialize_super()
2162 status = -EINVAL; in ocfs2_initialize_super()
2188 status = -ENOMEM; in ocfs2_initialize_super()
2215 status = -EINVAL; in ocfs2_initialize_super()
2222 status = generic_check_addressable(osb->sb->s_blocksize_bits, in ocfs2_initialize_super()
2224 if (status) { in ocfs2_initialize_super()
2227 status = -EFBIG; in ocfs2_initialize_super()
2234 status = -ENOMEM; in ocfs2_initialize_super()
2253 status = -ENOMEM; in ocfs2_initialize_super()
2254 mlog_errno(status); in ocfs2_initialize_super()
2261 status = ocfs2_init_global_system_inodes(osb); in ocfs2_initialize_super()
2262 if (status < 0) { in ocfs2_initialize_super()
2263 mlog_errno(status); in ocfs2_initialize_super()
2273 status = -EINVAL; in ocfs2_initialize_super()
2274 mlog_errno(status); in ocfs2_initialize_super()
2285 status = ocfs2_init_slot_info(osb); in ocfs2_initialize_super()
2286 if (status < 0) { in ocfs2_initialize_super()
2287 mlog_errno(status); in ocfs2_initialize_super()
2294 status = -ENOMEM; in ocfs2_initialize_super()
2295 mlog_errno(status); in ocfs2_initialize_super()
2299 return status; in ocfs2_initialize_super()
2312 int status = -EAGAIN; in ocfs2_verify_volume() local
2319 status = ocfs2_block_check_validate(bh->b_data, in ocfs2_verify_volume()
2323 if (status) in ocfs2_verify_volume()
2326 status = -EINVAL; in ocfs2_verify_volume()
2363 status = 0; in ocfs2_verify_volume()
2368 if (status && status != -EAGAIN) in ocfs2_verify_volume()
2369 mlog_errno(status); in ocfs2_verify_volume()
2370 return status; in ocfs2_verify_volume()
2375 int status; in ocfs2_check_volume() local
2383 status = ocfs2_journal_init(osb->journal, &dirty); in ocfs2_check_volume()
2384 if (status < 0) { in ocfs2_check_volume()
2391 status = ocfs2_journal_addressable(osb); in ocfs2_check_volume()
2392 if (status) in ocfs2_check_volume()
2399 status = ocfs2_journal_wipe(osb->journal, 0); in ocfs2_check_volume()
2400 if (status < 0) { in ocfs2_check_volume()
2401 mlog_errno(status); in ocfs2_check_volume()
2412 status = ocfs2_journal_load(osb->journal, local, dirty); in ocfs2_check_volume()
2413 if (status < 0) { in ocfs2_check_volume()
2414 mlog(ML_ERROR, "ocfs2 journal load failed! %d\n", status); in ocfs2_check_volume()
2429 status = ocfs2_begin_local_alloc_recovery(osb, in ocfs2_check_volume()
2432 if (status < 0) { in ocfs2_check_volume()
2433 mlog_errno(status); in ocfs2_check_volume()
2440 status = ocfs2_load_local_alloc(osb); in ocfs2_check_volume()
2441 if (status < 0) { in ocfs2_check_volume()
2442 mlog_errno(status); in ocfs2_check_volume()
2456 status = ocfs2_mark_dead_nodes(osb); in ocfs2_check_volume()
2457 if (status < 0) { in ocfs2_check_volume()
2458 mlog_errno(status); in ocfs2_check_volume()
2462 status = ocfs2_compute_replay_slots(osb); in ocfs2_check_volume()
2463 if (status < 0) in ocfs2_check_volume()
2464 mlog_errno(status); in ocfs2_check_volume()
2469 if (status) in ocfs2_check_volume()
2470 mlog_errno(status); in ocfs2_check_volume()
2471 return status; in ocfs2_check_volume()