Lines Matching defs:pcf

151  * When we acquire and then drop a single pcf lock
152 * we can start in the middle of the array of pcf structures.
153 * If we acquire more than one pcf lock at a time, we need to
171 struct pcf {
190 static struct pcf pcf[MAX_PCF_FANOUT];
511 static struct pcf *p = pcf;
532 if (++p > &pcf[pcf_fanout - 1])
533 p = pcf;
1341 struct pcf *p;
1346 p = pcf;
1365 struct pcf *p;
1370 p = pcf;
1383 * Acquire all of the page cache & free (pcf) locks.
1388 struct pcf *p;
1391 p = pcf;
1404 struct pcf *p;
1407 p = pcf;
1502 fm += pcf[i].pcf_count;
1503 pcf[i].pcf_wait++;
1504 mutex_exit(&pcf[i].pcf_lock);
1523 * different pcf buckets or to wait because there simply are not
1533 struct pcf *p;
1558 * All of the pcf locks are held, there are not enough pages
1561 * the pcf locks. This prevents dropping wakeups in page_free().
1564 * Since we hold all the pcf locks, it is a good time to set freemem.
1596 p = pcf;
1626 struct pcf *p;
1638 for (p = pcf; (npages > 0) && (p < &pcf[pcf_fanout]); p++) {
1685 * Unblock the pcf counters. Any pages freed after
1693 struct pcf *p;
1697 p = pcf;
1759 struct pcf *p;
1806 * Then, grab all page accounting locks (ie. pcf[]) and
1817 * They are not tracked separately in the pcf bins, so it is
1818 * impossible to know when doing pcf accounting if the available
1825 * process will stall during pcf accounting if the pcf bins are
1830 * Short of adding a new field to the pcf bins to accurately track
1832 * pcgs_lock, do not set the pcf blocks and do not timeout when
1863 p = pcf;
1918 * we go down holding the pcf locks.
2260 struct pcf *p;
2557 p = &pcf[PCF_INDEX()];
2622 struct pcf *p;
2702 p = &pcf[pcf_index];
2744 struct pcf *p;
2754 p = &pcf[pcf_index];
2894 struct pcf *p;
2918 * of the pcf array. If we always start at the beginning
2919 * when acquiring more than one pcf lock, there won't be any
2937 * to a list somewhere. Acquire each of the pcf locks
2940 p = pcf;
2976 * get this before we drop all the pcf locks.
2980 p = pcf;
3000 * The pcf accounting has been done,
3004 while (p >= pcf) {
5007 * it is up to the caller to deal with pcf accounting.
7387 struct pcf *p;
7388 struct pcf *q;
7391 p = &pcf[PCF_INDEX()];
7392 q = &pcf[pcf_fanout];
7414 p = pcf;
7424 * be set to the total number of pages in all the pcf
7442 struct pcf *p;
7446 p = pcf;
7447 /* try to collect pages from several pcf bins */
7462 while (p >= pcf) {
7480 while (--p >= pcf) {