Lines Matching refs: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()
946 int status = 0; in ocfs2_sync_local_to_main() local
989 status = ocfs2_release_clusters(handle, in ocfs2_sync_local_to_main()
993 if (status < 0) { in ocfs2_sync_local_to_main()
994 mlog_errno(status); in ocfs2_sync_local_to_main()
1006 if (status) in ocfs2_sync_local_to_main()
1007 mlog_errno(status); in ocfs2_sync_local_to_main()
1008 return status; in ocfs2_sync_local_to_main()
1095 int status; in ocfs2_local_alloc_reserve_for_window() local
1099 status = -ENOMEM; in ocfs2_local_alloc_reserve_for_window()
1100 mlog_errno(status); in ocfs2_local_alloc_reserve_for_window()
1106 status = ocfs2_reserve_cluster_bitmap_bits(osb, *ac); in ocfs2_local_alloc_reserve_for_window()
1107 if (status == -ENOSPC) { in ocfs2_local_alloc_reserve_for_window()
1116 if (status < 0) { in ocfs2_local_alloc_reserve_for_window()
1117 mlog_errno(status); in ocfs2_local_alloc_reserve_for_window()
1125 status = 0; in ocfs2_local_alloc_reserve_for_window()
1127 if ((status < 0) && *ac) { in ocfs2_local_alloc_reserve_for_window()
1132 if (status) in ocfs2_local_alloc_reserve_for_window()
1133 mlog_errno(status); in ocfs2_local_alloc_reserve_for_window()
1134 return status; in ocfs2_local_alloc_reserve_for_window()
1144 int status = 0; in ocfs2_local_alloc_new_window() local
1164 status = ocfs2_claim_clusters(handle, ac, osb->local_alloc_bits, in ocfs2_local_alloc_new_window()
1166 if (status == -ENOSPC) { in ocfs2_local_alloc_new_window()
1178 status = ocfs2_claim_clusters(handle, ac, in ocfs2_local_alloc_new_window()
1182 if (status == -ENOSPC) in ocfs2_local_alloc_new_window()
1189 if (status == 0) { in ocfs2_local_alloc_new_window()
1195 if (status < 0) { in ocfs2_local_alloc_new_window()
1196 if (status != -ENOSPC) in ocfs2_local_alloc_new_window()
1197 mlog_errno(status); in ocfs2_local_alloc_new_window()
1221 if (status) in ocfs2_local_alloc_new_window()
1222 mlog_errno(status); in ocfs2_local_alloc_new_window()
1223 return status; in ocfs2_local_alloc_new_window()
1231 int status = 0; in ocfs2_local_alloc_slide_window() local
1242 status = ocfs2_local_alloc_reserve_for_window(osb, in ocfs2_local_alloc_slide_window()
1246 if (status < 0) { in ocfs2_local_alloc_slide_window()
1247 if (status != -ENOSPC) in ocfs2_local_alloc_slide_window()
1248 mlog_errno(status); in ocfs2_local_alloc_slide_window()
1254 status = PTR_ERR(handle); in ocfs2_local_alloc_slide_window()
1256 mlog_errno(status); in ocfs2_local_alloc_slide_window()
1269 status = -ENOMEM; in ocfs2_local_alloc_slide_window()
1270 mlog_errno(status); in ocfs2_local_alloc_slide_window()
1274 status = ocfs2_journal_access_di(handle, in ocfs2_local_alloc_slide_window()
1278 if (status < 0) { in ocfs2_local_alloc_slide_window()
1279 mlog_errno(status); in ocfs2_local_alloc_slide_window()
1286 status = ocfs2_sync_local_to_main(osb, handle, alloc_copy, in ocfs2_local_alloc_slide_window()
1288 if (status < 0) { in ocfs2_local_alloc_slide_window()
1289 mlog_errno(status); in ocfs2_local_alloc_slide_window()
1293 status = ocfs2_local_alloc_new_window(osb, handle, ac); in ocfs2_local_alloc_slide_window()
1294 if (status < 0) { in ocfs2_local_alloc_slide_window()
1295 if (status != -ENOSPC) in ocfs2_local_alloc_slide_window()
1296 mlog_errno(status); in ocfs2_local_alloc_slide_window()
1314 if (status) in ocfs2_local_alloc_slide_window()
1315 mlog_errno(status); in ocfs2_local_alloc_slide_window()
1316 return status; in ocfs2_local_alloc_slide_window()