Lines Matching refs:status
286 int status = 0; in ocfs2_load_local_alloc() local
309 status = -EINVAL; in ocfs2_load_local_alloc()
310 mlog_errno(status); in ocfs2_load_local_alloc()
314 status = ocfs2_read_inode_block_full(inode, &alloc_bh, in ocfs2_load_local_alloc()
316 if (status < 0) { in ocfs2_load_local_alloc()
317 mlog_errno(status); in ocfs2_load_local_alloc()
328 status = -EINVAL; in ocfs2_load_local_alloc()
336 status = -EINVAL; in ocfs2_load_local_alloc()
359 if (status < 0) in ocfs2_load_local_alloc()
366 if (status) in ocfs2_load_local_alloc()
367 mlog_errno(status); in ocfs2_load_local_alloc()
368 return status; in ocfs2_load_local_alloc()
380 int status; in ocfs2_shutdown_local_alloc() local
400 status = -ENOENT; in ocfs2_shutdown_local_alloc()
401 mlog_errno(status); in ocfs2_shutdown_local_alloc()
413 status = -EINVAL; in ocfs2_shutdown_local_alloc()
414 mlog_errno(status); in ocfs2_shutdown_local_alloc()
420 status = ocfs2_inode_lock(main_bm_inode, &main_bm_bh, 1); in ocfs2_shutdown_local_alloc()
421 if (status < 0) { in ocfs2_shutdown_local_alloc()
422 mlog_errno(status); in ocfs2_shutdown_local_alloc()
439 status = -ENOMEM; in ocfs2_shutdown_local_alloc()
444 status = ocfs2_journal_access_di(handle, INODE_CACHE(local_alloc_inode), in ocfs2_shutdown_local_alloc()
446 if (status < 0) { in ocfs2_shutdown_local_alloc()
447 mlog_errno(status); in ocfs2_shutdown_local_alloc()
458 status = ocfs2_sync_local_to_main(osb, handle, alloc_copy, in ocfs2_shutdown_local_alloc()
460 if (status < 0) in ocfs2_shutdown_local_alloc()
461 mlog_errno(status); in ocfs2_shutdown_local_alloc()
493 int status = 0; in ocfs2_begin_local_alloc_recovery() local
506 status = -EINVAL; in ocfs2_begin_local_alloc_recovery()
507 mlog_errno(status); in ocfs2_begin_local_alloc_recovery()
513 status = ocfs2_read_inode_block_full(inode, &alloc_bh, in ocfs2_begin_local_alloc_recovery()
515 if (status < 0) { in ocfs2_begin_local_alloc_recovery()
516 mlog_errno(status); in ocfs2_begin_local_alloc_recovery()
522 status = -ENOMEM; in ocfs2_begin_local_alloc_recovery()
531 status = ocfs2_write_block(osb, alloc_bh, INODE_CACHE(inode)); in ocfs2_begin_local_alloc_recovery()
532 if (status < 0) in ocfs2_begin_local_alloc_recovery()
533 mlog_errno(status); in ocfs2_begin_local_alloc_recovery()
536 if (status < 0) { in ocfs2_begin_local_alloc_recovery()
548 if (status) in ocfs2_begin_local_alloc_recovery()
549 mlog_errno(status); in ocfs2_begin_local_alloc_recovery()
550 return status; in ocfs2_begin_local_alloc_recovery()
562 int status; in ocfs2_complete_local_alloc_recovery() local
571 status = -EINVAL; in ocfs2_complete_local_alloc_recovery()
572 mlog_errno(status); in ocfs2_complete_local_alloc_recovery()
578 status = ocfs2_inode_lock(main_bm_inode, &main_bm_bh, 1); in ocfs2_complete_local_alloc_recovery()
579 if (status < 0) { in ocfs2_complete_local_alloc_recovery()
580 mlog_errno(status); in ocfs2_complete_local_alloc_recovery()
586 status = PTR_ERR(handle); in ocfs2_complete_local_alloc_recovery()
588 mlog_errno(status); in ocfs2_complete_local_alloc_recovery()
595 status = ocfs2_sync_local_to_main(osb, handle, alloc, in ocfs2_complete_local_alloc_recovery()
597 if (status < 0) in ocfs2_complete_local_alloc_recovery()
598 mlog_errno(status); in ocfs2_complete_local_alloc_recovery()
613 if (!status) in ocfs2_complete_local_alloc_recovery()
615 if (status) in ocfs2_complete_local_alloc_recovery()
616 mlog_errno(status); in ocfs2_complete_local_alloc_recovery()
617 return status; in ocfs2_complete_local_alloc_recovery()
631 int status; in ocfs2_reserve_local_alloc_bits() local
643 status = -ENOENT; in ocfs2_reserve_local_alloc_bits()
644 mlog_errno(status); in ocfs2_reserve_local_alloc_bits()
658 status = -ENOSPC; in ocfs2_reserve_local_alloc_bits()
672 status = -EIO; in ocfs2_reserve_local_alloc_bits()
681 status = in ocfs2_reserve_local_alloc_bits()
683 if (status < 0) { in ocfs2_reserve_local_alloc_bits()
684 if (status != -ENOSPC) in ocfs2_reserve_local_alloc_bits()
685 mlog_errno(status); in ocfs2_reserve_local_alloc_bits()
695 status = -ENOSPC; in ocfs2_reserve_local_alloc_bits()
711 status = 0; in ocfs2_reserve_local_alloc_bits()
713 if (status < 0 && local_alloc_inode) { in ocfs2_reserve_local_alloc_bits()
720 bits_wanted, osb->slot_num, status); in ocfs2_reserve_local_alloc_bits()
722 if (status) in ocfs2_reserve_local_alloc_bits()
723 mlog_errno(status); in ocfs2_reserve_local_alloc_bits()
724 return status; in ocfs2_reserve_local_alloc_bits()
734 int status, start; in ocfs2_claim_local_alloc_bits() local
750 status = -ENOSPC; in ocfs2_claim_local_alloc_bits()
751 mlog_errno(status); in ocfs2_claim_local_alloc_bits()
759 status = ocfs2_journal_access_di(handle, in ocfs2_claim_local_alloc_bits()
763 if (status < 0) { in ocfs2_claim_local_alloc_bits()
764 mlog_errno(status); in ocfs2_claim_local_alloc_bits()
778 if (status) in ocfs2_claim_local_alloc_bits()
779 mlog_errno(status); in ocfs2_claim_local_alloc_bits()
780 return status; in ocfs2_claim_local_alloc_bits()
789 int status, start; in ocfs2_free_local_alloc_bits() local
806 status = ocfs2_journal_access_di(handle, in ocfs2_free_local_alloc_bits()
810 if (status < 0) { in ocfs2_free_local_alloc_bits()
811 mlog_errno(status); in ocfs2_free_local_alloc_bits()
822 return status; in ocfs2_free_local_alloc_bits()
968 int status = 0; in ocfs2_sync_local_to_main() local
1011 status = ocfs2_release_clusters(handle, in ocfs2_sync_local_to_main()
1015 if (status < 0) { in ocfs2_sync_local_to_main()
1016 mlog_errno(status); in ocfs2_sync_local_to_main()
1027 if (status) in ocfs2_sync_local_to_main()
1028 mlog_errno(status); in ocfs2_sync_local_to_main()
1029 return status; in ocfs2_sync_local_to_main()
1116 int status; in ocfs2_local_alloc_reserve_for_window() local
1120 status = -ENOMEM; in ocfs2_local_alloc_reserve_for_window()
1121 mlog_errno(status); in ocfs2_local_alloc_reserve_for_window()
1127 status = ocfs2_reserve_cluster_bitmap_bits(osb, *ac); in ocfs2_local_alloc_reserve_for_window()
1128 if (status == -ENOSPC) { in ocfs2_local_alloc_reserve_for_window()
1137 if (status < 0) { in ocfs2_local_alloc_reserve_for_window()
1138 mlog_errno(status); in ocfs2_local_alloc_reserve_for_window()
1146 status = 0; in ocfs2_local_alloc_reserve_for_window()
1148 if ((status < 0) && *ac) { in ocfs2_local_alloc_reserve_for_window()
1153 if (status) in ocfs2_local_alloc_reserve_for_window()
1154 mlog_errno(status); in ocfs2_local_alloc_reserve_for_window()
1155 return status; in ocfs2_local_alloc_reserve_for_window()
1165 int status = 0; in ocfs2_local_alloc_new_window() local
1185 status = ocfs2_claim_clusters(handle, ac, osb->local_alloc_bits, in ocfs2_local_alloc_new_window()
1187 if (status == -ENOSPC) { in ocfs2_local_alloc_new_window()
1199 status = ocfs2_claim_clusters(handle, ac, in ocfs2_local_alloc_new_window()
1203 if (status == -ENOSPC) in ocfs2_local_alloc_new_window()
1210 if (status == 0) { in ocfs2_local_alloc_new_window()
1216 if (status < 0) { in ocfs2_local_alloc_new_window()
1217 if (status != -ENOSPC) in ocfs2_local_alloc_new_window()
1218 mlog_errno(status); in ocfs2_local_alloc_new_window()
1242 if (status) in ocfs2_local_alloc_new_window()
1243 mlog_errno(status); in ocfs2_local_alloc_new_window()
1244 return status; in ocfs2_local_alloc_new_window()
1252 int status = 0; in ocfs2_local_alloc_slide_window() local
1263 status = ocfs2_local_alloc_reserve_for_window(osb, in ocfs2_local_alloc_slide_window()
1267 if (status < 0) { in ocfs2_local_alloc_slide_window()
1268 if (status != -ENOSPC) in ocfs2_local_alloc_slide_window()
1269 mlog_errno(status); in ocfs2_local_alloc_slide_window()
1275 status = PTR_ERR(handle); in ocfs2_local_alloc_slide_window()
1277 mlog_errno(status); in ocfs2_local_alloc_slide_window()
1290 status = -ENOMEM; in ocfs2_local_alloc_slide_window()
1291 mlog_errno(status); in ocfs2_local_alloc_slide_window()
1296 status = ocfs2_journal_access_di(handle, in ocfs2_local_alloc_slide_window()
1300 if (status < 0) { in ocfs2_local_alloc_slide_window()
1301 mlog_errno(status); in ocfs2_local_alloc_slide_window()
1308 status = ocfs2_sync_local_to_main(osb, handle, alloc_copy, in ocfs2_local_alloc_slide_window()
1310 if (status < 0) { in ocfs2_local_alloc_slide_window()
1311 mlog_errno(status); in ocfs2_local_alloc_slide_window()
1315 status = ocfs2_local_alloc_new_window(osb, handle, ac); in ocfs2_local_alloc_slide_window()
1316 if (status < 0) { in ocfs2_local_alloc_slide_window()
1317 if (status != -ENOSPC) in ocfs2_local_alloc_slide_window()
1318 mlog_errno(status); in ocfs2_local_alloc_slide_window()
1338 if (status) in ocfs2_local_alloc_slide_window()
1339 mlog_errno(status); in ocfs2_local_alloc_slide_window()
1340 return status; in ocfs2_local_alloc_slide_window()