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()
673 status = -EIO; in ocfs2_reserve_local_alloc_bits()
682 status = in ocfs2_reserve_local_alloc_bits()
684 if (status < 0) { in ocfs2_reserve_local_alloc_bits()
685 if (status != -ENOSPC) in ocfs2_reserve_local_alloc_bits()
686 mlog_errno(status); in ocfs2_reserve_local_alloc_bits()
696 status = -ENOSPC; in ocfs2_reserve_local_alloc_bits()
712 status = 0; in ocfs2_reserve_local_alloc_bits()
714 if (status < 0 && local_alloc_inode) { in ocfs2_reserve_local_alloc_bits()
721 bits_wanted, osb->slot_num, status); in ocfs2_reserve_local_alloc_bits()
723 if (status) in ocfs2_reserve_local_alloc_bits()
724 mlog_errno(status); in ocfs2_reserve_local_alloc_bits()
725 return status; in ocfs2_reserve_local_alloc_bits()
735 int status, start; in ocfs2_claim_local_alloc_bits() local
751 status = -ENOSPC; in ocfs2_claim_local_alloc_bits()
752 mlog_errno(status); in ocfs2_claim_local_alloc_bits()
760 status = ocfs2_journal_access_di(handle, in ocfs2_claim_local_alloc_bits()
764 if (status < 0) { in ocfs2_claim_local_alloc_bits()
765 mlog_errno(status); in ocfs2_claim_local_alloc_bits()
779 if (status) in ocfs2_claim_local_alloc_bits()
780 mlog_errno(status); in ocfs2_claim_local_alloc_bits()
781 return status; in ocfs2_claim_local_alloc_bits()
790 int status, start; in ocfs2_free_local_alloc_bits() local
807 status = ocfs2_journal_access_di(handle, in ocfs2_free_local_alloc_bits()
811 if (status < 0) { in ocfs2_free_local_alloc_bits()
812 mlog_errno(status); in ocfs2_free_local_alloc_bits()
823 return status; in ocfs2_free_local_alloc_bits()
969 int status = 0; in ocfs2_sync_local_to_main() local
1012 status = ocfs2_release_clusters(handle, in ocfs2_sync_local_to_main()
1016 if (status < 0) { in ocfs2_sync_local_to_main()
1017 mlog_errno(status); in ocfs2_sync_local_to_main()
1028 if (status) in ocfs2_sync_local_to_main()
1029 mlog_errno(status); in ocfs2_sync_local_to_main()
1030 return status; in ocfs2_sync_local_to_main()
1117 int status; in ocfs2_local_alloc_reserve_for_window() local
1121 status = -ENOMEM; in ocfs2_local_alloc_reserve_for_window()
1122 mlog_errno(status); in ocfs2_local_alloc_reserve_for_window()
1128 status = ocfs2_reserve_cluster_bitmap_bits(osb, *ac); in ocfs2_local_alloc_reserve_for_window()
1129 if (status == -ENOSPC) { in ocfs2_local_alloc_reserve_for_window()
1138 if (status < 0) { in ocfs2_local_alloc_reserve_for_window()
1139 mlog_errno(status); in ocfs2_local_alloc_reserve_for_window()
1147 status = 0; in ocfs2_local_alloc_reserve_for_window()
1149 if ((status < 0) && *ac) { in ocfs2_local_alloc_reserve_for_window()
1154 if (status) in ocfs2_local_alloc_reserve_for_window()
1155 mlog_errno(status); in ocfs2_local_alloc_reserve_for_window()
1156 return status; in ocfs2_local_alloc_reserve_for_window()
1166 int status = 0; in ocfs2_local_alloc_new_window() local
1186 status = ocfs2_claim_clusters(handle, ac, osb->local_alloc_bits, in ocfs2_local_alloc_new_window()
1188 if (status == -ENOSPC) { in ocfs2_local_alloc_new_window()
1200 status = ocfs2_claim_clusters(handle, ac, in ocfs2_local_alloc_new_window()
1204 if (status == -ENOSPC) in ocfs2_local_alloc_new_window()
1211 if (status == 0) { in ocfs2_local_alloc_new_window()
1217 if (status < 0) { in ocfs2_local_alloc_new_window()
1218 if (status != -ENOSPC) in ocfs2_local_alloc_new_window()
1219 mlog_errno(status); in ocfs2_local_alloc_new_window()
1243 if (status) in ocfs2_local_alloc_new_window()
1244 mlog_errno(status); in ocfs2_local_alloc_new_window()
1245 return status; in ocfs2_local_alloc_new_window()
1253 int status = 0; in ocfs2_local_alloc_slide_window() local
1264 status = ocfs2_local_alloc_reserve_for_window(osb, in ocfs2_local_alloc_slide_window()
1268 if (status < 0) { in ocfs2_local_alloc_slide_window()
1269 if (status != -ENOSPC) in ocfs2_local_alloc_slide_window()
1270 mlog_errno(status); in ocfs2_local_alloc_slide_window()
1276 status = PTR_ERR(handle); in ocfs2_local_alloc_slide_window()
1278 mlog_errno(status); in ocfs2_local_alloc_slide_window()
1291 status = -ENOMEM; in ocfs2_local_alloc_slide_window()
1292 mlog_errno(status); in ocfs2_local_alloc_slide_window()
1297 status = ocfs2_journal_access_di(handle, in ocfs2_local_alloc_slide_window()
1301 if (status < 0) { in ocfs2_local_alloc_slide_window()
1302 mlog_errno(status); in ocfs2_local_alloc_slide_window()
1309 status = ocfs2_sync_local_to_main(osb, handle, alloc_copy, in ocfs2_local_alloc_slide_window()
1311 if (status < 0) { in ocfs2_local_alloc_slide_window()
1312 mlog_errno(status); in ocfs2_local_alloc_slide_window()
1316 status = ocfs2_local_alloc_new_window(osb, handle, ac); in ocfs2_local_alloc_slide_window()
1317 if (status < 0) { in ocfs2_local_alloc_slide_window()
1318 if (status != -ENOSPC) in ocfs2_local_alloc_slide_window()
1319 mlog_errno(status); in ocfs2_local_alloc_slide_window()
1339 if (status) in ocfs2_local_alloc_slide_window()
1340 mlog_errno(status); in ocfs2_local_alloc_slide_window()
1341 return status; in ocfs2_local_alloc_slide_window()