• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/bsd/hfs/

Lines Matching defs:listp

295 	hotfilelist_t  *listp;
359 MALLOC(listp, hotfilelist_t *, size, M_TEMP, M_WAITOK);
360 if (listp == NULL) {
367 bzero(listp, size);
369 hf_getsortedlist(hotdata, listp); /* NOTE: destroys hot file tree! */
371 listp->hfl_duration = tv.tv_sec - hfsmp->hfc_timebase;
372 hfsmp->hfc_recdata = listp;
387 if (listp->hfl_totalblocks > hfsmp->hfs_hotfile_freeblks) {
388 listp->hfl_reclaimblks =
389 MIN(listp->hfl_totalblocks, hfsmp->hfs_hotfile_maxblks) -
392 printf("hfs_recording_stop: need to reclaim %d blocks\n", listp->hfl_reclaimblks);
394 if (listp->hfl_reclaimblks)
402 if (newstage == HFC_ADOPTION && listp->hfl_totalblocks == 0) {
944 hotfilelist_t *listp;
952 if ((listp = (hotfilelist_t *)hfsmp->hfc_recdata) == NULL)
975 for (i = 0; i < listp->hfl_count; ++i) {
981 key->fileID = listp->hfl_hotfile[i].hf_fileid;
993 &listp->hfl_hotfile[i].hf_temperature);
1004 key->fileID = listp->hfl_hotfile[i].hf_fileid;
1016 key->temperature = listp->hfl_hotfile[i].hf_temperature;
1017 key->fileID = listp->hfl_hotfile[i].hf_fileid;
1029 listp->hfl_hotfile[i].hf_temperature = 0;
1030 listp->hfl_totalblocks -= listp->hfl_hotfile[i].hf_blocks;
1055 hotfilelist_t *listp;
1067 if ((listp = (hotfilelist_t *)hfsmp->hfc_recdata) == NULL)
1081 last = listp->hfl_next + HFC_FILESPERSYNC;
1082 if (last > listp->hfl_count)
1083 last = listp->hfl_count;
1096 for (i = listp->hfl_next; (i < last) && (blksmoved < HFC_BLKSPERSYNC); ++i) {
1100 if (listp->hfl_hotfile[i].hf_temperature == 0) {
1101 listp->hfl_next++;
1107 error = hfs_vget(hfsmp, listp->hfl_hotfile[i].hf_fileid, &vp, 0);
1111 listp->hfl_next++;
1117 printf("hotfiles_adopt: huh, not a file %d (%d)\n", listp->hfl_hotfile[i].hf_fileid, VTOC(vp)->c_cnid);
1120 listp->hfl_hotfile[i].hf_temperature = 0;
1121 listp->hfl_next++;
1127 listp->hfl_hotfile[i].hf_temperature = 0;
1128 listp->hfl_next++;
1129 listp->hfl_totalblocks -= listp->hfl_hotfile[i].hf_blocks;
1136 listp->hfl_next++;
1137 listp->hfl_totalblocks -= fileblocks;
1157 listp->hfl_next++;
1162 listp->hfl_totalblocks -= fileblocks;
1166 key->temperature = listp->hfl_hotfile[i].hf_temperature;
1167 key->fileID = listp->hfl_hotfile[i].hf_fileid;
1188 key->fileID = listp->hfl_hotfile[i].hf_fileid;
1190 data = listp->hfl_hotfile[i].hf_temperature;
1207 listp->hfl_next++;
1208 if (listp->hfl_next >= listp->hfl_count) {
1220 printf("hotfiles_adopt: [%d] adopted %d blocks (%d left)\n", listp->hfl_next, blksmoved, listp->hfl_totalblocks);
1230 if ((listp->hfl_next >= listp->hfl_count) || (hfsmp->hfs_hotfile_freeblks <= 0)) {
1232 printf("hotfiles_adopt: all done relocating %d files\n", listp->hfl_count);
1260 hotfilelist_t *listp;
1274 if ((listp = (hotfilelist_t *)hfsmp->hfc_recdata) == NULL)
1293 while (listp->hfl_reclaimblks > 0 &&
1382 listp->hfl_reclaimblks -= fileblocks;
1383 if (listp->hfl_reclaimblks < 0)
1384 listp->hfl_reclaimblks = 0;
1420 printf("hotfiles_evict: moved %d files (%d blks, %d to go)\n", filesmoved, blksmoved, listp->hfl_reclaimblks);
1433 if (listp->hfl_reclaimblks <= 0) {