Lines Matching full:status
271 int status = 0; in ocfs2_load_local_alloc() local
294 status = -EINVAL; in ocfs2_load_local_alloc()
295 mlog_errno(status); in ocfs2_load_local_alloc()
299 status = ocfs2_read_inode_block_full(inode, &alloc_bh, in ocfs2_load_local_alloc()
301 if (status < 0) { in ocfs2_load_local_alloc()
302 mlog_errno(status); in ocfs2_load_local_alloc()
313 status = -EINVAL; in ocfs2_load_local_alloc()
321 status = -EINVAL; in ocfs2_load_local_alloc()
341 status = -EINVAL; in ocfs2_load_local_alloc()
349 if (status < 0) in ocfs2_load_local_alloc()
355 if (status) in ocfs2_load_local_alloc()
356 mlog_errno(status); in ocfs2_load_local_alloc()
357 return status; in ocfs2_load_local_alloc()
369 int status; in ocfs2_shutdown_local_alloc() local
390 status = -ENOENT; in ocfs2_shutdown_local_alloc()
391 mlog_errno(status); in ocfs2_shutdown_local_alloc()
403 status = -EINVAL; in ocfs2_shutdown_local_alloc()
404 mlog_errno(status); in ocfs2_shutdown_local_alloc()
410 status = ocfs2_inode_lock(main_bm_inode, &main_bm_bh, 1); in ocfs2_shutdown_local_alloc()
411 if (status < 0) { in ocfs2_shutdown_local_alloc()
412 mlog_errno(status); in ocfs2_shutdown_local_alloc()
429 status = -ENOMEM; in ocfs2_shutdown_local_alloc()
433 status = ocfs2_journal_access_di(handle, INODE_CACHE(local_alloc_inode), in ocfs2_shutdown_local_alloc()
435 if (status < 0) { in ocfs2_shutdown_local_alloc()
436 mlog_errno(status); in ocfs2_shutdown_local_alloc()
447 status = ocfs2_sync_local_to_main(osb, handle, alloc_copy, in ocfs2_shutdown_local_alloc()
449 if (status < 0) in ocfs2_shutdown_local_alloc()
450 mlog_errno(status); in ocfs2_shutdown_local_alloc()
481 int status = 0; in ocfs2_begin_local_alloc_recovery() local
494 status = -EINVAL; in ocfs2_begin_local_alloc_recovery()
495 mlog_errno(status); in ocfs2_begin_local_alloc_recovery()
501 status = ocfs2_read_inode_block_full(inode, &alloc_bh, in ocfs2_begin_local_alloc_recovery()
503 if (status < 0) { in ocfs2_begin_local_alloc_recovery()
504 mlog_errno(status); in ocfs2_begin_local_alloc_recovery()
510 status = -ENOMEM; in ocfs2_begin_local_alloc_recovery()
519 status = ocfs2_write_block(osb, alloc_bh, INODE_CACHE(inode)); in ocfs2_begin_local_alloc_recovery()
520 if (status < 0) in ocfs2_begin_local_alloc_recovery()
521 mlog_errno(status); in ocfs2_begin_local_alloc_recovery()
524 if (status < 0) { in ocfs2_begin_local_alloc_recovery()
536 if (status) in ocfs2_begin_local_alloc_recovery()
537 mlog_errno(status); in ocfs2_begin_local_alloc_recovery()
538 return status; in ocfs2_begin_local_alloc_recovery()
550 int status; in ocfs2_complete_local_alloc_recovery() local
559 status = -EINVAL; in ocfs2_complete_local_alloc_recovery()
560 mlog_errno(status); in ocfs2_complete_local_alloc_recovery()
566 status = ocfs2_inode_lock(main_bm_inode, &main_bm_bh, 1); in ocfs2_complete_local_alloc_recovery()
567 if (status < 0) { in ocfs2_complete_local_alloc_recovery()
568 mlog_errno(status); in ocfs2_complete_local_alloc_recovery()
574 status = PTR_ERR(handle); in ocfs2_complete_local_alloc_recovery()
576 mlog_errno(status); in ocfs2_complete_local_alloc_recovery()
583 status = ocfs2_sync_local_to_main(osb, handle, alloc, in ocfs2_complete_local_alloc_recovery()
585 if (status < 0) in ocfs2_complete_local_alloc_recovery()
586 mlog_errno(status); in ocfs2_complete_local_alloc_recovery()
601 if (!status) in ocfs2_complete_local_alloc_recovery()
603 if (status) in ocfs2_complete_local_alloc_recovery()
604 mlog_errno(status); in ocfs2_complete_local_alloc_recovery()
605 return status; in ocfs2_complete_local_alloc_recovery()
619 int status; in ocfs2_reserve_local_alloc_bits() local
631 status = -ENOENT; in ocfs2_reserve_local_alloc_bits()
632 mlog_errno(status); in ocfs2_reserve_local_alloc_bits()
646 status = -ENOSPC; in ocfs2_reserve_local_alloc_bits()
656 …status = ocfs2_error(osb->sb, "local alloc inode %llu says it has %u used bits, but a count shows … in ocfs2_reserve_local_alloc_bits()
668 status = in ocfs2_reserve_local_alloc_bits()
670 if (status < 0) { in ocfs2_reserve_local_alloc_bits()
671 if (status != -ENOSPC) in ocfs2_reserve_local_alloc_bits()
672 mlog_errno(status); in ocfs2_reserve_local_alloc_bits()
682 status = -ENOSPC; in ocfs2_reserve_local_alloc_bits()
698 status = 0; in ocfs2_reserve_local_alloc_bits()
700 if (status < 0 && local_alloc_inode) { in ocfs2_reserve_local_alloc_bits()
707 bits_wanted, osb->slot_num, status); in ocfs2_reserve_local_alloc_bits()
709 if (status) in ocfs2_reserve_local_alloc_bits()
710 mlog_errno(status); in ocfs2_reserve_local_alloc_bits()
711 return status; in ocfs2_reserve_local_alloc_bits()
721 int status, start; in ocfs2_claim_local_alloc_bits() local
737 status = -ENOSPC; in ocfs2_claim_local_alloc_bits()
738 mlog_errno(status); in ocfs2_claim_local_alloc_bits()
746 status = ocfs2_journal_access_di(handle, in ocfs2_claim_local_alloc_bits()
750 if (status < 0) { in ocfs2_claim_local_alloc_bits()
751 mlog_errno(status); in ocfs2_claim_local_alloc_bits()
765 if (status) in ocfs2_claim_local_alloc_bits()
766 mlog_errno(status); in ocfs2_claim_local_alloc_bits()
767 return status; in ocfs2_claim_local_alloc_bits()
776 int status, start; in ocfs2_free_local_alloc_bits() local
793 status = ocfs2_journal_access_di(handle, in ocfs2_free_local_alloc_bits()
797 if (status < 0) { in ocfs2_free_local_alloc_bits()
798 mlog_errno(status); in ocfs2_free_local_alloc_bits()
809 return status; in ocfs2_free_local_alloc_bits()
948 int status = 0; in ocfs2_sync_local_to_main() local
991 status = ocfs2_release_clusters(handle, in ocfs2_sync_local_to_main()
995 if (status < 0) { in ocfs2_sync_local_to_main()
996 mlog_errno(status); in ocfs2_sync_local_to_main()
1008 if (status) in ocfs2_sync_local_to_main()
1009 mlog_errno(status); in ocfs2_sync_local_to_main()
1010 return status; in ocfs2_sync_local_to_main()
1097 int status; in ocfs2_local_alloc_reserve_for_window() local
1101 status = -ENOMEM; in ocfs2_local_alloc_reserve_for_window()
1102 mlog_errno(status); in ocfs2_local_alloc_reserve_for_window()
1108 status = ocfs2_reserve_cluster_bitmap_bits(osb, *ac); in ocfs2_local_alloc_reserve_for_window()
1109 if (status == -ENOSPC) { in ocfs2_local_alloc_reserve_for_window()
1118 if (status < 0) { in ocfs2_local_alloc_reserve_for_window()
1119 mlog_errno(status); in ocfs2_local_alloc_reserve_for_window()
1127 status = 0; in ocfs2_local_alloc_reserve_for_window()
1129 if ((status < 0) && *ac) { in ocfs2_local_alloc_reserve_for_window()
1134 if (status) in ocfs2_local_alloc_reserve_for_window()
1135 mlog_errno(status); in ocfs2_local_alloc_reserve_for_window()
1136 return status; in ocfs2_local_alloc_reserve_for_window()
1146 int status = 0; in ocfs2_local_alloc_new_window() local
1166 status = ocfs2_claim_clusters(handle, ac, osb->local_alloc_bits, in ocfs2_local_alloc_new_window()
1168 if (status == -ENOSPC) { in ocfs2_local_alloc_new_window()
1180 status = ocfs2_claim_clusters(handle, ac, in ocfs2_local_alloc_new_window()
1184 if (status == -ENOSPC) in ocfs2_local_alloc_new_window()
1191 if (status == 0) { in ocfs2_local_alloc_new_window()
1197 if (status < 0) { in ocfs2_local_alloc_new_window()
1198 if (status != -ENOSPC) in ocfs2_local_alloc_new_window()
1199 mlog_errno(status); in ocfs2_local_alloc_new_window()
1223 if (status) in ocfs2_local_alloc_new_window()
1224 mlog_errno(status); in ocfs2_local_alloc_new_window()
1225 return status; in ocfs2_local_alloc_new_window()
1233 int status = 0; in ocfs2_local_alloc_slide_window() local
1244 status = ocfs2_local_alloc_reserve_for_window(osb, in ocfs2_local_alloc_slide_window()
1248 if (status < 0) { in ocfs2_local_alloc_slide_window()
1249 if (status != -ENOSPC) in ocfs2_local_alloc_slide_window()
1250 mlog_errno(status); in ocfs2_local_alloc_slide_window()
1256 status = PTR_ERR(handle); in ocfs2_local_alloc_slide_window()
1258 mlog_errno(status); in ocfs2_local_alloc_slide_window()
1271 status = -ENOMEM; in ocfs2_local_alloc_slide_window()
1272 mlog_errno(status); in ocfs2_local_alloc_slide_window()
1276 status = ocfs2_journal_access_di(handle, in ocfs2_local_alloc_slide_window()
1280 if (status < 0) { in ocfs2_local_alloc_slide_window()
1281 mlog_errno(status); in ocfs2_local_alloc_slide_window()
1288 status = ocfs2_sync_local_to_main(osb, handle, alloc_copy, in ocfs2_local_alloc_slide_window()
1290 if (status < 0) { in ocfs2_local_alloc_slide_window()
1291 mlog_errno(status); in ocfs2_local_alloc_slide_window()
1295 status = ocfs2_local_alloc_new_window(osb, handle, ac); in ocfs2_local_alloc_slide_window()
1296 if (status < 0) { in ocfs2_local_alloc_slide_window()
1297 if (status != -ENOSPC) in ocfs2_local_alloc_slide_window()
1298 mlog_errno(status); in ocfs2_local_alloc_slide_window()
1316 if (status) in ocfs2_local_alloc_slide_window()
1317 mlog_errno(status); in ocfs2_local_alloc_slide_window()
1318 return status; in ocfs2_local_alloc_slide_window()