• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/xnu-2422.115.4/bsd/hfs/

Lines Matching refs:listp

302 	hotfilelist_t  *listp;
366 MALLOC(listp, hotfilelist_t *, size, M_TEMP, M_WAITOK);
367 if (listp == NULL) {
374 bzero(listp, size);
376 hf_getsortedlist(hotdata, listp); /* NOTE: destroys hot file tree! */
378 listp->hfl_duration = tv.tv_sec - hfsmp->hfc_timebase;
379 hfsmp->hfc_recdata = listp;
394 if (listp->hfl_totalblocks > hfsmp->hfs_hotfile_freeblks) {
395 listp->hfl_reclaimblks =
396 MIN(listp->hfl_totalblocks, hfsmp->hfs_hotfile_maxblks) -
399 printf("hfs_recording_stop: need to reclaim %d blocks\n", listp->hfl_reclaimblks);
401 if (listp->hfl_reclaimblks)
409 if (newstage == HFC_ADOPTION && listp->hfl_totalblocks == 0) {
967 hotfilelist_t *listp;
975 if ((listp = (hotfilelist_t *)hfsmp->hfc_recdata) == NULL)
1002 for (i = 0; i < listp->hfl_count; ++i) {
1008 key->fileID = listp->hfl_hotfile[i].hf_fileid;
1020 &listp->hfl_hotfile[i].hf_temperature);
1031 key->fileID = listp->hfl_hotfile[i].hf_fileid;
1043 key->temperature = listp->hfl_hotfile[i].hf_temperature;
1044 key->fileID = listp->hfl_hotfile[i].hf_fileid;
1056 listp->hfl_hotfile[i].hf_temperature = 0;
1057 listp->hfl_totalblocks -= listp->hfl_hotfile[i].hf_blocks;
1083 hotfilelist_t *listp;
1095 if ((listp = (hotfilelist_t *)hfsmp->hfc_recdata) == NULL)
1115 last = listp->hfl_next + HFC_FILESPERSYNC;
1116 if (last > listp->hfl_count)
1117 last = listp->hfl_count;
1129 for (i = listp->hfl_next; (i < last) && (blksmoved < HFC_BLKSPERSYNC); ++i) {
1133 if (listp->hfl_hotfile[i].hf_temperature == 0) {
1134 listp->hfl_next++;
1140 error = hfs_vget(hfsmp, listp->hfl_hotfile[i].hf_fileid, &vp, 0, 0);
1144 listp->hfl_next++;
1151 printf("hfs: hotfiles_adopt: huh, not a file %d (%d)\n", listp->hfl_hotfile[i].hf_fileid, VTOC(vp)->c_cnid);
1154 listp->hfl_hotfile[i].hf_temperature = 0;
1155 listp->hfl_next++;
1161 listp->hfl_hotfile[i].hf_temperature = 0;
1162 listp->hfl_next++;
1163 listp->hfl_totalblocks -= listp->hfl_hotfile[i].hf_blocks;
1170 listp->hfl_next++;
1171 listp->hfl_totalblocks -= fileblocks;
1191 listp->hfl_next++;
1196 listp->hfl_totalblocks -= fileblocks;
1200 key->temperature = listp->hfl_hotfile[i].hf_temperature;
1201 key->fileID = listp->hfl_hotfile[i].hf_fileid;
1222 key->fileID = listp->hfl_hotfile[i].hf_fileid;
1224 data = listp->hfl_hotfile[i].hf_temperature;
1241 listp->hfl_next++;
1242 if (listp->hfl_next >= listp->hfl_count) {
1254 printf("hfs: hotfiles_adopt: [%d] adopted %d blocks (%d left)\n", listp->hfl_next, blksmoved, listp->hfl_totalblocks);
1264 if ((listp->hfl_next >= listp->hfl_count) || (hfsmp->hfs_hotfile_freeblks <= 0)) {
1266 printf("hfs: hotfiles_adopt: all done relocating %d files\n", listp->hfl_count);
1294 hotfilelist_t *listp;
1308 if ((listp = (hotfilelist_t *)hfsmp->hfc_recdata) == NULL)
1332 while (listp->hfl_reclaimblks > 0 &&
1427 listp->hfl_reclaimblks -= fileblocks;
1428 if (listp->hfl_reclaimblks < 0)
1429 listp->hfl_reclaimblks = 0;
1465 printf("hfs: hotfiles_evict: moved %d files (%d blks, %d to go)\n", filesmoved, blksmoved, listp->hfl_reclaimblks);
1478 if (listp->hfl_reclaimblks <= 0) {