Lines Matching refs:status
398 int status; in ocfs2_sync_fs() local
406 status = ocfs2_flush_truncate_log(osb); in ocfs2_sync_fs()
407 if (status < 0) in ocfs2_sync_fs()
408 mlog_errno(status); in ocfs2_sync_fs()
438 int status = 0; in ocfs2_init_global_system_inodes() local
443 status = PTR_ERR(new); in ocfs2_init_global_system_inodes()
444 mlog_errno(status); in ocfs2_init_global_system_inodes()
451 status = PTR_ERR(new); in ocfs2_init_global_system_inodes()
452 mlog_errno(status); in ocfs2_init_global_system_inodes()
464 status = ocfs2_is_soft_readonly(osb) ? -EROFS : -EINVAL; in ocfs2_init_global_system_inodes()
465 mlog_errno(status); in ocfs2_init_global_system_inodes()
475 if (status) in ocfs2_init_global_system_inodes()
476 mlog_errno(status); in ocfs2_init_global_system_inodes()
477 return status; in ocfs2_init_global_system_inodes()
483 int status = 0; in ocfs2_init_local_system_inodes() local
494 status = ocfs2_is_soft_readonly(osb) ? -EROFS : -EINVAL; in ocfs2_init_local_system_inodes()
496 status, i, osb->slot_num); in ocfs2_init_local_system_inodes()
504 if (status) in ocfs2_init_local_system_inodes()
505 mlog_errno(status); in ocfs2_init_local_system_inodes()
506 return status; in ocfs2_init_local_system_inodes()
730 int status, tmpstat; in ocfs2_sb_probe() local
742 status = -EINVAL; in ocfs2_sb_probe()
751 status = ocfs2_get_sector(sb, bh, 0, *sector_size); in ocfs2_sb_probe()
752 if (status < 0) { in ocfs2_sb_probe()
753 mlog_errno(status); in ocfs2_sb_probe()
760 status = -EINVAL; in ocfs2_sb_probe()
766 status = -EINVAL; in ocfs2_sb_probe()
770 if (status < 0) { in ocfs2_sb_probe()
781 status = -EINVAL; in ocfs2_sb_probe()
789 status = tmpstat; in ocfs2_sb_probe()
790 mlog_errno(status); in ocfs2_sb_probe()
802 status = tmpstat; in ocfs2_sb_probe()
808 return status; in ocfs2_sb_probe()
883 int status = 0; in ocfs2_susp_quotas() local
889 status = dquot_resume(sb, type); in ocfs2_susp_quotas()
896 status = dquot_suspend(sb, type); in ocfs2_susp_quotas()
898 if (status < 0) in ocfs2_susp_quotas()
901 if (status < 0) in ocfs2_susp_quotas()
903 "remount (error = %d).\n", status); in ocfs2_susp_quotas()
904 return status; in ocfs2_susp_quotas()
917 int status; in ocfs2_enable_quotas() local
927 status = -ENOENT; in ocfs2_enable_quotas()
930 status = dquot_load_quota_inode(inode[type], type, QFMT_OCFS2, in ocfs2_enable_quotas()
932 if (status < 0) in ocfs2_enable_quotas()
943 mlog_errno(status); in ocfs2_enable_quotas()
944 return status; in ocfs2_enable_quotas()
976 int status, sector_size; in ocfs2_fill_super() local
987 status = -EINVAL; in ocfs2_fill_super()
992 status = ocfs2_sb_probe(sb, &bh, §or_size, &stats); in ocfs2_fill_super()
993 if (status < 0) { in ocfs2_fill_super()
998 status = ocfs2_initialize_super(sb, bh, sector_size, &stats); in ocfs2_fill_super()
1000 if (status < 0) { in ocfs2_fill_super()
1001 mlog_errno(status); in ocfs2_fill_super()
1008 status = -EINVAL; in ocfs2_fill_super()
1024 status = ocfs2_verify_userspace_stack(osb, &parsed_options); in ocfs2_fill_super()
1025 if (status) in ocfs2_fill_super()
1037 status = -EACCES; in ocfs2_fill_super()
1046 status = -EROFS; in ocfs2_fill_super()
1052 status = ocfs2_check_journals_nolocks(osb); in ocfs2_fill_super()
1053 if (status < 0) { in ocfs2_fill_super()
1054 if (status == -EROFS) in ocfs2_fill_super()
1059 mlog_errno(status); in ocfs2_fill_super()
1075 status = ocfs2_verify_heartbeat(osb); in ocfs2_fill_super()
1076 if (status < 0) { in ocfs2_fill_super()
1077 mlog_errno(status); in ocfs2_fill_super()
1091 status = ocfs2_mount_volume(sb); in ocfs2_fill_super()
1092 if (status < 0) in ocfs2_fill_super()
1099 status = -EIO; in ocfs2_fill_super()
1100 mlog_errno(status); in ocfs2_fill_super()
1107 status = -ENOMEM; in ocfs2_fill_super()
1115 status = -ENOMEM; in ocfs2_fill_super()
1123 status = -ENOMEM; in ocfs2_fill_super()
1124 mlog_errno(status); in ocfs2_fill_super()
1150 status = ocfs2_enable_quotas(osb); in ocfs2_fill_super()
1151 if (status < 0) { in ocfs2_fill_super()
1154 mlog_errno(status); in ocfs2_fill_super()
1157 return status; in ocfs2_fill_super()
1170 return status; in ocfs2_fill_super()
1175 if (status) in ocfs2_fill_super()
1176 mlog_errno(status); in ocfs2_fill_super()
1184 return status; in ocfs2_fill_super()
1244 int status, user_stack = 0; in ocfs2_parse_options() local
1262 status = 1; in ocfs2_parse_options()
1283 status = 0; in ocfs2_parse_options()
1326 status = 0; in ocfs2_parse_options()
1334 status = 0; in ocfs2_parse_options()
1342 status = 0; in ocfs2_parse_options()
1353 status = 0; in ocfs2_parse_options()
1385 status = 0; in ocfs2_parse_options()
1428 status = 0; in ocfs2_parse_options()
1439 status = 0; in ocfs2_parse_options()
1453 status = 0; in ocfs2_parse_options()
1465 status = 0; in ocfs2_parse_options()
1470 status = 1; in ocfs2_parse_options()
1473 return status; in ocfs2_parse_options()
1565 int status; in ocfs2_init() local
1567 status = init_ocfs2_uptodate_cache(); in ocfs2_init()
1568 if (status < 0) in ocfs2_init()
1571 status = ocfs2_initialize_mem_caches(); in ocfs2_init()
1572 if (status < 0) in ocfs2_init()
1579 status = register_quota_format(&ocfs2_quota_format); in ocfs2_init()
1580 if (status < 0) in ocfs2_init()
1582 status = register_filesystem(&ocfs2_fs_type); in ocfs2_init()
1583 if (!status) in ocfs2_init()
1593 mlog_errno(status); in ocfs2_init()
1594 return status; in ocfs2_init()
1622 int status; in ocfs2_statfs() local
1636 status = -EIO; in ocfs2_statfs()
1640 status = ocfs2_inode_lock(inode, &bh, 0); in ocfs2_statfs()
1641 if (status < 0) { in ocfs2_statfs()
1642 mlog_errno(status); in ocfs2_statfs()
1669 status = 0; in ocfs2_statfs()
1673 if (status) in ocfs2_statfs()
1674 mlog_errno(status); in ocfs2_statfs()
1676 return status; in ocfs2_statfs()
1790 int status = 0; in ocfs2_mount_volume() local
1799 status = ocfs2_dlm_init(osb); in ocfs2_mount_volume()
1800 if (status < 0) { in ocfs2_mount_volume()
1801 mlog_errno(status); in ocfs2_mount_volume()
1802 if (status == -EBADR && ocfs2_userspace_stack(osb)) in ocfs2_mount_volume()
1808 status = ocfs2_super_lock(osb, 1); in ocfs2_mount_volume()
1809 if (status < 0) { in ocfs2_mount_volume()
1810 mlog_errno(status); in ocfs2_mount_volume()
1816 status = ocfs2_find_slot(osb); in ocfs2_mount_volume()
1817 if (status < 0) { in ocfs2_mount_volume()
1818 mlog_errno(status); in ocfs2_mount_volume()
1823 status = ocfs2_init_local_system_inodes(osb); in ocfs2_mount_volume()
1824 if (status < 0) { in ocfs2_mount_volume()
1825 mlog_errno(status); in ocfs2_mount_volume()
1829 status = ocfs2_check_volume(osb); in ocfs2_mount_volume()
1830 if (status < 0) { in ocfs2_mount_volume()
1831 mlog_errno(status); in ocfs2_mount_volume()
1835 status = ocfs2_truncate_log_init(osb); in ocfs2_mount_volume()
1836 if (status < 0) in ocfs2_mount_volume()
1837 mlog_errno(status); in ocfs2_mount_volume()
1843 return status; in ocfs2_mount_volume()
1969 int status = 0; in ocfs2_journal_addressable() local
1986 status = -EFBIG; in ocfs2_journal_addressable()
1991 return status; in ocfs2_journal_addressable()
1999 int status; in ocfs2_initialize_super() local
2009 status = -ENOMEM; in ocfs2_initialize_super()
2010 mlog_errno(status); in ocfs2_initialize_super()
2071 status = -EINVAL; in ocfs2_initialize_super()
2077 status = ocfs2_recovery_init(osb); in ocfs2_initialize_super()
2078 if (status) { in ocfs2_initialize_super()
2080 mlog_errno(status); in ocfs2_initialize_super()
2099 status = ocfs2_resmap_init(osb, &osb->osb_la_resmap); in ocfs2_initialize_super()
2100 if (status) { in ocfs2_initialize_super()
2101 mlog_errno(status); in ocfs2_initialize_super()
2108 status = -ENOMEM; in ocfs2_initialize_super()
2116 status = -ENOMEM; in ocfs2_initialize_super()
2117 mlog_errno(status); in ocfs2_initialize_super()
2126 status = -ENOMEM; in ocfs2_initialize_super()
2127 mlog_errno(status); in ocfs2_initialize_super()
2143 status = -EINVAL; in ocfs2_initialize_super()
2149 status = -EINVAL; in ocfs2_initialize_super()
2170 status = -EINVAL; in ocfs2_initialize_super()
2196 status = -ENOMEM; in ocfs2_initialize_super()
2223 status = -EINVAL; in ocfs2_initialize_super()
2230 status = generic_check_addressable(osb->sb->s_blocksize_bits, in ocfs2_initialize_super()
2232 if (status) { in ocfs2_initialize_super()
2235 status = -EFBIG; in ocfs2_initialize_super()
2242 status = -ENOMEM; in ocfs2_initialize_super()
2261 status = -ENOMEM; in ocfs2_initialize_super()
2262 mlog_errno(status); in ocfs2_initialize_super()
2269 status = ocfs2_init_global_system_inodes(osb); in ocfs2_initialize_super()
2270 if (status < 0) { in ocfs2_initialize_super()
2271 mlog_errno(status); in ocfs2_initialize_super()
2281 status = -EINVAL; in ocfs2_initialize_super()
2282 mlog_errno(status); in ocfs2_initialize_super()
2293 status = ocfs2_init_slot_info(osb); in ocfs2_initialize_super()
2294 if (status < 0) { in ocfs2_initialize_super()
2295 mlog_errno(status); in ocfs2_initialize_super()
2302 status = -ENOMEM; in ocfs2_initialize_super()
2303 mlog_errno(status); in ocfs2_initialize_super()
2307 return status; in ocfs2_initialize_super()
2320 int status = -EAGAIN; in ocfs2_verify_volume() local
2327 status = ocfs2_block_check_validate(bh->b_data, in ocfs2_verify_volume()
2331 if (status) in ocfs2_verify_volume()
2334 status = -EINVAL; in ocfs2_verify_volume()
2371 status = 0; in ocfs2_verify_volume()
2376 if (status && status != -EAGAIN) in ocfs2_verify_volume()
2377 mlog_errno(status); in ocfs2_verify_volume()
2378 return status; in ocfs2_verify_volume()
2383 int status; in ocfs2_check_volume() local
2391 status = ocfs2_journal_init(osb->journal, &dirty); in ocfs2_check_volume()
2392 if (status < 0) { in ocfs2_check_volume()
2399 status = ocfs2_journal_addressable(osb); in ocfs2_check_volume()
2400 if (status) in ocfs2_check_volume()
2407 status = ocfs2_journal_wipe(osb->journal, 0); in ocfs2_check_volume()
2408 if (status < 0) { in ocfs2_check_volume()
2409 mlog_errno(status); in ocfs2_check_volume()
2420 status = ocfs2_journal_load(osb->journal, local, dirty); in ocfs2_check_volume()
2421 if (status < 0) { in ocfs2_check_volume()
2422 mlog(ML_ERROR, "ocfs2 journal load failed! %d\n", status); in ocfs2_check_volume()
2437 status = ocfs2_begin_local_alloc_recovery(osb, in ocfs2_check_volume()
2440 if (status < 0) { in ocfs2_check_volume()
2441 mlog_errno(status); in ocfs2_check_volume()
2448 status = ocfs2_load_local_alloc(osb); in ocfs2_check_volume()
2449 if (status < 0) { in ocfs2_check_volume()
2450 mlog_errno(status); in ocfs2_check_volume()
2464 status = ocfs2_mark_dead_nodes(osb); in ocfs2_check_volume()
2465 if (status < 0) { in ocfs2_check_volume()
2466 mlog_errno(status); in ocfs2_check_volume()
2470 status = ocfs2_compute_replay_slots(osb); in ocfs2_check_volume()
2471 if (status < 0) in ocfs2_check_volume()
2472 mlog_errno(status); in ocfs2_check_volume()
2477 if (status) in ocfs2_check_volume()
2478 mlog_errno(status); in ocfs2_check_volume()
2479 return status; in ocfs2_check_volume()