Lines Matching refs:status
414 int status; in ocfs2_sync_fs() local
422 status = ocfs2_flush_truncate_log(osb); in ocfs2_sync_fs()
423 if (status < 0) in ocfs2_sync_fs()
424 mlog_errno(status); in ocfs2_sync_fs()
454 int status = 0; in ocfs2_init_global_system_inodes() local
459 status = PTR_ERR(new); in ocfs2_init_global_system_inodes()
460 mlog_errno(status); in ocfs2_init_global_system_inodes()
467 status = PTR_ERR(new); in ocfs2_init_global_system_inodes()
468 mlog_errno(status); in ocfs2_init_global_system_inodes()
480 status = -EINVAL; in ocfs2_init_global_system_inodes()
481 mlog_errno(status); in ocfs2_init_global_system_inodes()
492 if (status) in ocfs2_init_global_system_inodes()
493 mlog_errno(status); in ocfs2_init_global_system_inodes()
494 return status; in ocfs2_init_global_system_inodes()
500 int status = 0; in ocfs2_init_local_system_inodes() local
511 status = -EINVAL; in ocfs2_init_local_system_inodes()
513 status, i, osb->slot_num); in ocfs2_init_local_system_inodes()
521 if (status) in ocfs2_init_local_system_inodes()
522 mlog_errno(status); in ocfs2_init_local_system_inodes()
523 return status; in ocfs2_init_local_system_inodes()
763 int status, tmpstat; in ocfs2_sb_probe() local
775 status = -EINVAL; in ocfs2_sb_probe()
784 status = ocfs2_get_sector(sb, bh, 0, *sector_size); in ocfs2_sb_probe()
785 if (status < 0) { in ocfs2_sb_probe()
786 mlog_errno(status); in ocfs2_sb_probe()
793 status = -EINVAL; in ocfs2_sb_probe()
799 status = -EINVAL; in ocfs2_sb_probe()
803 if (status < 0) { in ocfs2_sb_probe()
814 status = -EINVAL; in ocfs2_sb_probe()
822 status = tmpstat; in ocfs2_sb_probe()
823 mlog_errno(status); in ocfs2_sb_probe()
835 status = tmpstat; in ocfs2_sb_probe()
841 return status; in ocfs2_sb_probe()
916 int status = 0; in ocfs2_susp_quotas() local
922 status = dquot_resume(sb, type); in ocfs2_susp_quotas()
929 status = dquot_suspend(sb, type); in ocfs2_susp_quotas()
931 if (status < 0) in ocfs2_susp_quotas()
934 if (status < 0) in ocfs2_susp_quotas()
936 "remount (error = %d).\n", status); in ocfs2_susp_quotas()
937 return status; in ocfs2_susp_quotas()
950 int status; in ocfs2_enable_quotas() local
960 status = -ENOENT; in ocfs2_enable_quotas()
963 status = dquot_enable(inode[type], type, QFMT_OCFS2, in ocfs2_enable_quotas()
965 if (status < 0) in ocfs2_enable_quotas()
976 mlog_errno(status); in ocfs2_enable_quotas()
977 return status; in ocfs2_enable_quotas()
1010 int status, sector_size; in ocfs2_fill_super() local
1021 status = -EINVAL; in ocfs2_fill_super()
1026 status = ocfs2_sb_probe(sb, &bh, §or_size, &stats); in ocfs2_fill_super()
1027 if (status < 0) { in ocfs2_fill_super()
1032 status = ocfs2_initialize_super(sb, bh, sector_size, &stats); in ocfs2_fill_super()
1034 if (status < 0) { in ocfs2_fill_super()
1035 mlog_errno(status); in ocfs2_fill_super()
1042 status = -EINVAL; in ocfs2_fill_super()
1058 status = ocfs2_verify_userspace_stack(osb, &parsed_options); in ocfs2_fill_super()
1059 if (status) in ocfs2_fill_super()
1071 status = -EACCES; in ocfs2_fill_super()
1080 status = -EROFS; in ocfs2_fill_super()
1086 status = ocfs2_check_journals_nolocks(osb); in ocfs2_fill_super()
1087 if (status < 0) { in ocfs2_fill_super()
1088 if (status == -EROFS) in ocfs2_fill_super()
1093 mlog_errno(status); in ocfs2_fill_super()
1109 status = ocfs2_verify_heartbeat(osb); in ocfs2_fill_super()
1110 if (status < 0) { in ocfs2_fill_super()
1111 mlog_errno(status); in ocfs2_fill_super()
1118 status = -EINVAL; in ocfs2_fill_super()
1128 status = -EINVAL; in ocfs2_fill_super()
1129 mlog_errno(status); in ocfs2_fill_super()
1134 status = ocfs2_blockcheck_stats_debugfs_install( in ocfs2_fill_super()
1137 if (status) { in ocfs2_fill_super()
1145 status = ocfs2_mount_volume(sb); in ocfs2_fill_super()
1146 if (status < 0) in ocfs2_fill_super()
1153 status = -EIO; in ocfs2_fill_super()
1154 mlog_errno(status); in ocfs2_fill_super()
1160 status = -ENOMEM; in ocfs2_fill_super()
1161 mlog_errno(status); in ocfs2_fill_super()
1187 status = ocfs2_enable_quotas(osb); in ocfs2_fill_super()
1188 if (status < 0) { in ocfs2_fill_super()
1191 mlog_errno(status); in ocfs2_fill_super()
1194 return status; in ocfs2_fill_super()
1207 return status; in ocfs2_fill_super()
1218 if (status) in ocfs2_fill_super()
1219 mlog_errno(status); in ocfs2_fill_super()
1220 return status; in ocfs2_fill_super()
1280 int status, user_stack = 0; in ocfs2_parse_options() local
1296 status = 1; in ocfs2_parse_options()
1320 status = 0; in ocfs2_parse_options()
1363 status = 0; in ocfs2_parse_options()
1372 status = 0; in ocfs2_parse_options()
1381 status = 0; in ocfs2_parse_options()
1393 status = 0; in ocfs2_parse_options()
1425 status = 0; in ocfs2_parse_options()
1468 status = 0; in ocfs2_parse_options()
1479 status = 0; in ocfs2_parse_options()
1493 status = 0; in ocfs2_parse_options()
1505 status = 0; in ocfs2_parse_options()
1510 status = 1; in ocfs2_parse_options()
1513 return status; in ocfs2_parse_options()
1605 int status; in ocfs2_init() local
1607 status = init_ocfs2_uptodate_cache(); in ocfs2_init()
1608 if (status < 0) in ocfs2_init()
1611 status = ocfs2_initialize_mem_caches(); in ocfs2_init()
1612 if (status < 0) in ocfs2_init()
1617 status = -ENOMEM; in ocfs2_init()
1623 status = -ENOMEM; in ocfs2_init()
1630 status = register_quota_format(&ocfs2_quota_format); in ocfs2_init()
1631 if (status < 0) in ocfs2_init()
1633 status = register_filesystem(&ocfs2_fs_type); in ocfs2_init()
1634 if (!status) in ocfs2_init()
1646 mlog_errno(status); in ocfs2_init()
1647 return status; in ocfs2_init()
1680 int status; in ocfs2_statfs() local
1694 status = -EIO; in ocfs2_statfs()
1698 status = ocfs2_inode_lock(inode, &bh, 0); in ocfs2_statfs()
1699 if (status < 0) { in ocfs2_statfs()
1700 mlog_errno(status); in ocfs2_statfs()
1727 status = 0; in ocfs2_statfs()
1732 if (status) in ocfs2_statfs()
1733 mlog_errno(status); in ocfs2_statfs()
1735 return status; in ocfs2_statfs()
1854 int status = 0; in ocfs2_mount_volume() local
1861 status = ocfs2_dlm_init(osb); in ocfs2_mount_volume()
1862 if (status < 0) { in ocfs2_mount_volume()
1863 mlog_errno(status); in ocfs2_mount_volume()
1867 status = ocfs2_super_lock(osb, 1); in ocfs2_mount_volume()
1868 if (status < 0) { in ocfs2_mount_volume()
1869 mlog_errno(status); in ocfs2_mount_volume()
1875 status = ocfs2_find_slot(osb); in ocfs2_mount_volume()
1876 if (status < 0) { in ocfs2_mount_volume()
1877 mlog_errno(status); in ocfs2_mount_volume()
1882 status = ocfs2_init_local_system_inodes(osb); in ocfs2_mount_volume()
1883 if (status < 0) { in ocfs2_mount_volume()
1884 mlog_errno(status); in ocfs2_mount_volume()
1888 status = ocfs2_check_volume(osb); in ocfs2_mount_volume()
1889 if (status < 0) { in ocfs2_mount_volume()
1890 mlog_errno(status); in ocfs2_mount_volume()
1894 status = ocfs2_truncate_log_init(osb); in ocfs2_mount_volume()
1895 if (status < 0) in ocfs2_mount_volume()
1896 mlog_errno(status); in ocfs2_mount_volume()
1902 return status; in ocfs2_mount_volume()
2024 int status = 0; in ocfs2_journal_addressable() local
2041 status = -EFBIG; in ocfs2_journal_addressable()
2046 return status; in ocfs2_journal_addressable()
2054 int status; in ocfs2_initialize_super() local
2064 status = -ENOMEM; in ocfs2_initialize_super()
2065 mlog_errno(status); in ocfs2_initialize_super()
2127 status = -EINVAL; in ocfs2_initialize_super()
2133 status = ocfs2_recovery_init(osb); in ocfs2_initialize_super()
2134 if (status) { in ocfs2_initialize_super()
2136 mlog_errno(status); in ocfs2_initialize_super()
2155 status = ocfs2_resmap_init(osb, &osb->osb_la_resmap); in ocfs2_initialize_super()
2156 if (status) { in ocfs2_initialize_super()
2157 mlog_errno(status); in ocfs2_initialize_super()
2164 status = -ENOMEM; in ocfs2_initialize_super()
2172 status = -ENOMEM; in ocfs2_initialize_super()
2173 mlog_errno(status); in ocfs2_initialize_super()
2182 status = -ENOMEM; in ocfs2_initialize_super()
2183 mlog_errno(status); in ocfs2_initialize_super()
2199 status = -EINVAL; in ocfs2_initialize_super()
2206 status = -EINVAL; in ocfs2_initialize_super()
2221 status = -EINVAL; in ocfs2_initialize_super()
2247 status = -ENOMEM; in ocfs2_initialize_super()
2274 status = -EINVAL; in ocfs2_initialize_super()
2281 status = generic_check_addressable(osb->sb->s_blocksize_bits, in ocfs2_initialize_super()
2283 if (status) { in ocfs2_initialize_super()
2286 status = -EFBIG; in ocfs2_initialize_super()
2293 status = -ENOMEM; in ocfs2_initialize_super()
2312 status = -ENOMEM; in ocfs2_initialize_super()
2313 mlog_errno(status); in ocfs2_initialize_super()
2320 status = ocfs2_init_global_system_inodes(osb); in ocfs2_initialize_super()
2321 if (status < 0) { in ocfs2_initialize_super()
2322 mlog_errno(status); in ocfs2_initialize_super()
2332 status = -EINVAL; in ocfs2_initialize_super()
2333 mlog_errno(status); in ocfs2_initialize_super()
2344 status = ocfs2_init_slot_info(osb); in ocfs2_initialize_super()
2345 if (status < 0) { in ocfs2_initialize_super()
2346 mlog_errno(status); in ocfs2_initialize_super()
2352 return status; in ocfs2_initialize_super()
2365 int status = -EAGAIN; in ocfs2_verify_volume() local
2372 status = ocfs2_block_check_validate(bh->b_data, in ocfs2_verify_volume()
2376 if (status) in ocfs2_verify_volume()
2379 status = -EINVAL; in ocfs2_verify_volume()
2416 status = 0; in ocfs2_verify_volume()
2421 if (status && status != -EAGAIN) in ocfs2_verify_volume()
2422 mlog_errno(status); in ocfs2_verify_volume()
2423 return status; in ocfs2_verify_volume()
2428 int status; in ocfs2_check_volume() local
2436 status = ocfs2_journal_init(osb->journal, &dirty); in ocfs2_check_volume()
2437 if (status < 0) { in ocfs2_check_volume()
2444 status = ocfs2_journal_addressable(osb); in ocfs2_check_volume()
2445 if (status) in ocfs2_check_volume()
2452 status = ocfs2_journal_wipe(osb->journal, 0); in ocfs2_check_volume()
2453 if (status < 0) { in ocfs2_check_volume()
2454 mlog_errno(status); in ocfs2_check_volume()
2465 status = ocfs2_journal_load(osb->journal, local, dirty); in ocfs2_check_volume()
2466 if (status < 0) { in ocfs2_check_volume()
2467 mlog(ML_ERROR, "ocfs2 journal load failed! %d\n", status); in ocfs2_check_volume()
2482 status = ocfs2_begin_local_alloc_recovery(osb, in ocfs2_check_volume()
2485 if (status < 0) { in ocfs2_check_volume()
2486 mlog_errno(status); in ocfs2_check_volume()
2493 status = ocfs2_load_local_alloc(osb); in ocfs2_check_volume()
2494 if (status < 0) { in ocfs2_check_volume()
2495 mlog_errno(status); in ocfs2_check_volume()
2510 status = ocfs2_mark_dead_nodes(osb); in ocfs2_check_volume()
2511 if (status < 0) { in ocfs2_check_volume()
2512 mlog_errno(status); in ocfs2_check_volume()
2516 status = ocfs2_compute_replay_slots(osb); in ocfs2_check_volume()
2517 if (status < 0) in ocfs2_check_volume()
2518 mlog_errno(status); in ocfs2_check_volume()
2523 if (status) in ocfs2_check_volume()
2524 mlog_errno(status); in ocfs2_check_volume()
2525 return status; in ocfs2_check_volume()