Lines Matching defs:aip
6039 struct allocindir *aip;
6055 aip = (struct allocindir *)newblk;
6056 aip->ai_offset = ptrno;
6057 aip->ai_oldblkno = oldblkno;
6058 aip->ai_lbn = lbn;
6067 return (aip);
6086 struct allocindir *aip;
6102 aip = newallocindir(ip, ptrno, newblkno, oldblkno, lbn);
6111 WORKLIST_INSERT(&nbp->b_dep, &aip->ai_block.nb_list);
6112 freefrag = setup_allocindir_phase2(bp, ip, inodedep, aip, lbn);
6131 struct allocindir *aip;
6143 aip = newallocindir(ip, ptrno, newblkno, 0, lbn);
6145 WORKLIST_INSERT(&nbp->b_dep, &aip->ai_block.nb_list);
6146 if (setup_allocindir_phase2(bp, ip, inodedep, aip, lbn))
6154 struct allocindir *aip;
6159 while ((aip = LIST_FIRST(&indirdep->ir_completehd)) != NULL) {
6160 LIST_REMOVE(aip, ai_next);
6161 free_newblk(&aip->ai_block);
6247 * Called to finish the allocation of the "aip" allocated
6255 struct allocindir *aip, /* allocindir allocated by the above routines */
6271 KASSERT(aip->ai_offset >= 0 && aip->ai_offset < NINDIR(fs),
6272 ("setup_allocindir_phase2: Bad offset %d", aip->ai_offset));
6276 aip->ai_indirdep = indirdep;
6283 if (aip->ai_oldblkno != 0) {
6285 if (oldaip->ai_offset == aip->ai_offset) {
6286 freefrag = allocindir_merge(aip, oldaip);
6291 if (oldaip->ai_offset == aip->ai_offset) {
6292 freefrag = allocindir_merge(aip, oldaip);
6298 LIST_INSERT_HEAD(&indirdep->ir_deplisthd, aip, ai_next);
6308 struct allocindir *aip,
6314 if (oldaip->ai_newblkno != aip->ai_oldblkno)
6316 aip->ai_oldblkno = oldaip->ai_oldblkno;
6317 freefrag = aip->ai_freefrag;
6318 aip->ai_freefrag = oldaip->ai_freefrag;
6329 WORKLIST_INSERT(&aip->ai_newdirblk, wk);
6439 struct allocindir *aip, *aipn;
6444 LIST_FOREACH_SAFE(aip, &indirdep->ir_deplisthd, ai_next, aipn)
6445 if (aip->ai_offset > off)
6446 cancel_allocindir(aip, bp, freeblks, 1);
6447 LIST_FOREACH_SAFE(aip, &indirdep->ir_donehd, ai_next, aipn)
6448 if (aip->ai_offset > off)
6449 cancel_allocindir(aip, bp, freeblks, 1);
6453 LIST_FOREACH_SAFE(aip, &indirdep->ir_writehd, ai_next, aipn)
6454 if (aip->ai_offset > off)
6455 cancel_allocindir(aip, NULL, freeblks, 0);
6456 LIST_FOREACH_SAFE(aip, &indirdep->ir_completehd, ai_next, aipn)
6457 if (aip->ai_offset > off)
6458 cancel_allocindir(aip, NULL, freeblks, 0);
8129 struct allocindir *aip;
8152 aip = WK_ALLOCINDIR(wk);
8154 if (aip->ai_state & DELAYEDFREE) {
8157 aip->ai_lbn, aip->ai_newblkno,
8522 struct allocindir *aip,
8531 newblk = (struct newblk *)aip;
8532 LIST_REMOVE(aip, ai_next);
8539 * Clear the pointer and mark the aip to be freed
8542 aip->ai_state |= DELAYEDFREE;
8543 indirdep = aip->ai_indirdep;
8545 ((ufs1_daddr_t *)bp->b_data)[aip->ai_offset] = 0;
8547 ((ufs2_daddr_t *)bp->b_data)[aip->ai_offset] = 0;
10813 struct allocindir *aip;
10840 while ((aip = LIST_FIRST(&indirdep->ir_deplisthd)) != NULL)
10841 cancel_allocindir(aip, bp, freeblks, 0);
10842 while ((aip = LIST_FIRST(&indirdep->ir_donehd)) != NULL)
10843 cancel_allocindir(aip, NULL, freeblks, 0);
10844 while ((aip = LIST_FIRST(&indirdep->ir_writehd)) != NULL)
10845 cancel_allocindir(aip, NULL, freeblks, 0);
10846 while ((aip = LIST_FIRST(&indirdep->ir_completehd)) != NULL)
10847 cancel_allocindir(aip, NULL, freeblks, 0);
11502 struct allocindir *aip) /* the completed allocindir */
11506 if ((aip->ai_state & ALLCOMPLETE) != ALLCOMPLETE)
11508 indirdep = aip->ai_indirdep;
11509 LIST_REMOVE(aip, ai_next);
11515 LIST_INSERT_HEAD(&indirdep->ir_donehd, aip, ai_next);
11519 ((ufs1_daddr_t *)indirdep->ir_savebp->b_data)[aip->ai_offset] =
11520 aip->ai_newblkno;
11522 ((ufs2_daddr_t *)indirdep->ir_savebp->b_data)[aip->ai_offset] =
11523 aip->ai_newblkno;
11527 LIST_INSERT_HEAD(&indirdep->ir_writehd, aip, ai_next);
11944 struct allocindir *aip;
11981 while ((aip = LIST_FIRST(&indirdep->ir_writehd)) != NULL) {
11982 LIST_REMOVE(aip, ai_next);
11984 LIST_INSERT_HEAD(&indirdep->ir_completehd, aip,
11986 newblk_freefrag(&aip->ai_block);
11989 free_newblk(&aip->ai_block);
11996 while ((aip = LIST_FIRST(&indirdep->ir_donehd)) != NULL) {
11997 handle_allocindir_partdone(aip);
11998 if (aip == LIST_FIRST(&indirdep->ir_donehd))
12966 struct allocindir *aip;
13030 LIST_FOREACH(aip, &indirdep->ir_deplisthd, ai_next) {
13031 newblk = (struct newblk *)aip;
14333 struct allocindir *aip;
14386 LIST_FOREACH(aip, &indirdep->ir_deplisthd, ai_next) {
14867 allocindir_print(struct allocindir *aip)
14870 newblk_print(&aip->ai_block);
14872 (intmax_t)aip->ai_oldblkno, (intmax_t)aip->ai_lbn);
14874 aip->ai_offset, aip->ai_indirdep);