• Home
  • Raw
  • Download

Lines Matching refs:status

272 	int status = 0;  in ocfs2_load_local_alloc()  local
295 status = -EINVAL; in ocfs2_load_local_alloc()
296 mlog_errno(status); in ocfs2_load_local_alloc()
300 status = ocfs2_read_inode_block_full(inode, &alloc_bh, in ocfs2_load_local_alloc()
302 if (status < 0) { in ocfs2_load_local_alloc()
303 mlog_errno(status); in ocfs2_load_local_alloc()
314 status = -EINVAL; in ocfs2_load_local_alloc()
322 status = -EINVAL; in ocfs2_load_local_alloc()
342 status = -EINVAL; in ocfs2_load_local_alloc()
350 if (status < 0) in ocfs2_load_local_alloc()
356 if (status) in ocfs2_load_local_alloc()
357 mlog_errno(status); in ocfs2_load_local_alloc()
358 return status; in ocfs2_load_local_alloc()
370 int status; in ocfs2_shutdown_local_alloc() local
391 status = -ENOENT; in ocfs2_shutdown_local_alloc()
392 mlog_errno(status); in ocfs2_shutdown_local_alloc()
404 status = -EINVAL; in ocfs2_shutdown_local_alloc()
405 mlog_errno(status); in ocfs2_shutdown_local_alloc()
411 status = ocfs2_inode_lock(main_bm_inode, &main_bm_bh, 1); in ocfs2_shutdown_local_alloc()
412 if (status < 0) { in ocfs2_shutdown_local_alloc()
413 mlog_errno(status); in ocfs2_shutdown_local_alloc()
430 status = -ENOMEM; in ocfs2_shutdown_local_alloc()
434 status = ocfs2_journal_access_di(handle, INODE_CACHE(local_alloc_inode), in ocfs2_shutdown_local_alloc()
436 if (status < 0) { in ocfs2_shutdown_local_alloc()
437 mlog_errno(status); in ocfs2_shutdown_local_alloc()
448 status = ocfs2_sync_local_to_main(osb, handle, alloc_copy, in ocfs2_shutdown_local_alloc()
450 if (status < 0) in ocfs2_shutdown_local_alloc()
451 mlog_errno(status); in ocfs2_shutdown_local_alloc()
482 int status = 0; in ocfs2_begin_local_alloc_recovery() local
495 status = -EINVAL; in ocfs2_begin_local_alloc_recovery()
496 mlog_errno(status); in ocfs2_begin_local_alloc_recovery()
502 status = ocfs2_read_inode_block_full(inode, &alloc_bh, in ocfs2_begin_local_alloc_recovery()
504 if (status < 0) { in ocfs2_begin_local_alloc_recovery()
505 mlog_errno(status); in ocfs2_begin_local_alloc_recovery()
511 status = -ENOMEM; in ocfs2_begin_local_alloc_recovery()
520 status = ocfs2_write_block(osb, alloc_bh, INODE_CACHE(inode)); in ocfs2_begin_local_alloc_recovery()
521 if (status < 0) in ocfs2_begin_local_alloc_recovery()
522 mlog_errno(status); in ocfs2_begin_local_alloc_recovery()
525 if (status < 0) { in ocfs2_begin_local_alloc_recovery()
537 if (status) in ocfs2_begin_local_alloc_recovery()
538 mlog_errno(status); in ocfs2_begin_local_alloc_recovery()
539 return status; in ocfs2_begin_local_alloc_recovery()
551 int status; in ocfs2_complete_local_alloc_recovery() local
560 status = -EINVAL; in ocfs2_complete_local_alloc_recovery()
561 mlog_errno(status); in ocfs2_complete_local_alloc_recovery()
567 status = ocfs2_inode_lock(main_bm_inode, &main_bm_bh, 1); in ocfs2_complete_local_alloc_recovery()
568 if (status < 0) { in ocfs2_complete_local_alloc_recovery()
569 mlog_errno(status); in ocfs2_complete_local_alloc_recovery()
575 status = PTR_ERR(handle); in ocfs2_complete_local_alloc_recovery()
577 mlog_errno(status); in ocfs2_complete_local_alloc_recovery()
584 status = ocfs2_sync_local_to_main(osb, handle, alloc, in ocfs2_complete_local_alloc_recovery()
586 if (status < 0) in ocfs2_complete_local_alloc_recovery()
587 mlog_errno(status); in ocfs2_complete_local_alloc_recovery()
602 if (!status) in ocfs2_complete_local_alloc_recovery()
604 if (status) in ocfs2_complete_local_alloc_recovery()
605 mlog_errno(status); in ocfs2_complete_local_alloc_recovery()
606 return status; in ocfs2_complete_local_alloc_recovery()
620 int status; in ocfs2_reserve_local_alloc_bits() local
632 status = -ENOENT; in ocfs2_reserve_local_alloc_bits()
633 mlog_errno(status); in ocfs2_reserve_local_alloc_bits()
647 status = -ENOSPC; in ocfs2_reserve_local_alloc_bits()
657status = ocfs2_error(osb->sb, "local alloc inode %llu says it has %u used bits, but a count shows … in ocfs2_reserve_local_alloc_bits()
669 status = in ocfs2_reserve_local_alloc_bits()
671 if (status < 0) { in ocfs2_reserve_local_alloc_bits()
672 if (status != -ENOSPC) in ocfs2_reserve_local_alloc_bits()
673 mlog_errno(status); in ocfs2_reserve_local_alloc_bits()
683 status = -ENOSPC; in ocfs2_reserve_local_alloc_bits()
699 status = 0; in ocfs2_reserve_local_alloc_bits()
701 if (status < 0 && local_alloc_inode) { in ocfs2_reserve_local_alloc_bits()
708 bits_wanted, osb->slot_num, status); in ocfs2_reserve_local_alloc_bits()
710 if (status) in ocfs2_reserve_local_alloc_bits()
711 mlog_errno(status); in ocfs2_reserve_local_alloc_bits()
712 return status; in ocfs2_reserve_local_alloc_bits()
722 int status, start; in ocfs2_claim_local_alloc_bits() local
738 status = -ENOSPC; in ocfs2_claim_local_alloc_bits()
739 mlog_errno(status); in ocfs2_claim_local_alloc_bits()
747 status = ocfs2_journal_access_di(handle, in ocfs2_claim_local_alloc_bits()
751 if (status < 0) { in ocfs2_claim_local_alloc_bits()
752 mlog_errno(status); in ocfs2_claim_local_alloc_bits()
766 if (status) in ocfs2_claim_local_alloc_bits()
767 mlog_errno(status); in ocfs2_claim_local_alloc_bits()
768 return status; in ocfs2_claim_local_alloc_bits()
777 int status, start; in ocfs2_free_local_alloc_bits() local
794 status = ocfs2_journal_access_di(handle, in ocfs2_free_local_alloc_bits()
798 if (status < 0) { in ocfs2_free_local_alloc_bits()
799 mlog_errno(status); in ocfs2_free_local_alloc_bits()
810 return status; in ocfs2_free_local_alloc_bits()
955 int status = 0; in ocfs2_sync_local_to_main() local
998 status = ocfs2_release_clusters(handle, in ocfs2_sync_local_to_main()
1002 if (status < 0) { in ocfs2_sync_local_to_main()
1003 mlog_errno(status); in ocfs2_sync_local_to_main()
1014 if (status) in ocfs2_sync_local_to_main()
1015 mlog_errno(status); in ocfs2_sync_local_to_main()
1016 return status; in ocfs2_sync_local_to_main()
1103 int status; in ocfs2_local_alloc_reserve_for_window() local
1107 status = -ENOMEM; in ocfs2_local_alloc_reserve_for_window()
1108 mlog_errno(status); in ocfs2_local_alloc_reserve_for_window()
1114 status = ocfs2_reserve_cluster_bitmap_bits(osb, *ac); in ocfs2_local_alloc_reserve_for_window()
1115 if (status == -ENOSPC) { in ocfs2_local_alloc_reserve_for_window()
1124 if (status < 0) { in ocfs2_local_alloc_reserve_for_window()
1125 mlog_errno(status); in ocfs2_local_alloc_reserve_for_window()
1133 status = 0; in ocfs2_local_alloc_reserve_for_window()
1135 if ((status < 0) && *ac) { in ocfs2_local_alloc_reserve_for_window()
1140 if (status) in ocfs2_local_alloc_reserve_for_window()
1141 mlog_errno(status); in ocfs2_local_alloc_reserve_for_window()
1142 return status; in ocfs2_local_alloc_reserve_for_window()
1152 int status = 0; in ocfs2_local_alloc_new_window() local
1172 status = ocfs2_claim_clusters(handle, ac, osb->local_alloc_bits, in ocfs2_local_alloc_new_window()
1174 if (status == -ENOSPC) { in ocfs2_local_alloc_new_window()
1186 status = ocfs2_claim_clusters(handle, ac, in ocfs2_local_alloc_new_window()
1190 if (status == -ENOSPC) in ocfs2_local_alloc_new_window()
1197 if (status == 0) { in ocfs2_local_alloc_new_window()
1203 if (status < 0) { in ocfs2_local_alloc_new_window()
1204 if (status != -ENOSPC) in ocfs2_local_alloc_new_window()
1205 mlog_errno(status); in ocfs2_local_alloc_new_window()
1229 if (status) in ocfs2_local_alloc_new_window()
1230 mlog_errno(status); in ocfs2_local_alloc_new_window()
1231 return status; in ocfs2_local_alloc_new_window()
1239 int status = 0; in ocfs2_local_alloc_slide_window() local
1250 status = ocfs2_local_alloc_reserve_for_window(osb, in ocfs2_local_alloc_slide_window()
1254 if (status < 0) { in ocfs2_local_alloc_slide_window()
1255 if (status != -ENOSPC) in ocfs2_local_alloc_slide_window()
1256 mlog_errno(status); in ocfs2_local_alloc_slide_window()
1262 status = PTR_ERR(handle); in ocfs2_local_alloc_slide_window()
1264 mlog_errno(status); in ocfs2_local_alloc_slide_window()
1277 status = -ENOMEM; in ocfs2_local_alloc_slide_window()
1278 mlog_errno(status); in ocfs2_local_alloc_slide_window()
1282 status = ocfs2_journal_access_di(handle, in ocfs2_local_alloc_slide_window()
1286 if (status < 0) { in ocfs2_local_alloc_slide_window()
1287 mlog_errno(status); in ocfs2_local_alloc_slide_window()
1294 status = ocfs2_sync_local_to_main(osb, handle, alloc_copy, in ocfs2_local_alloc_slide_window()
1296 if (status < 0) { in ocfs2_local_alloc_slide_window()
1297 mlog_errno(status); in ocfs2_local_alloc_slide_window()
1301 status = ocfs2_local_alloc_new_window(osb, handle, ac); in ocfs2_local_alloc_slide_window()
1302 if (status < 0) { in ocfs2_local_alloc_slide_window()
1303 if (status != -ENOSPC) in ocfs2_local_alloc_slide_window()
1304 mlog_errno(status); in ocfs2_local_alloc_slide_window()
1322 if (status) in ocfs2_local_alloc_slide_window()
1323 mlog_errno(status); in ocfs2_local_alloc_slide_window()
1324 return status; in ocfs2_local_alloc_slide_window()