1 *** mp/mp_fget.c.orig 2002-08-07 08:23:01.000000000 -0700
2 --- mp/mp_fget.c 2006-05-30 20:32:20.000000000 -0700
6 if (state != SECOND_MISS && bhp->ref == 1) {
7 bhp->priority = UINT32_T_MAX;
8 ! SH_TAILQ_REMOVE(&hp->hash_bucket, bhp, hq, __bh);
9 ! SH_TAILQ_INSERT_TAIL(&hp->hash_bucket, bhp, hq);
11 SH_TAILQ_FIRST(&hp->hash_bucket, __bh)->priority;
15 if (state != SECOND_MISS && bhp->ref == 1) {
16 bhp->priority = UINT32_T_MAX;
17 ! /* Move the buffer if there are others in the bucket. */
18 ! if (SH_TAILQ_FIRST(&hp->hash_bucket, __bh) != bhp
19 ! || SH_TAILQ_NEXT(bhp, hq, __bh) != NULL) {
20 ! SH_TAILQ_REMOVE(&hp->hash_bucket, bhp, hq, __bh);
21 ! SH_TAILQ_INSERT_TAIL(&hp->hash_bucket, bhp, hq);
24 SH_TAILQ_FIRST(&hp->hash_bucket, __bh)->priority;
26 *** mp/mp_fput.c.orig 2002-08-13 06:26:41.000000000 -0700
27 --- mp/mp_fput.c 2006-05-30 20:55:11.000000000 -0700
31 * to the correct position in the list.
34 + /* Move the buffer if there are others in the bucket. */
35 + if (SH_TAILQ_FIRST(&hp->hash_bucket, __bh) == bhp
36 + && SH_TAILQ_NEXT(bhp, hq, __bh) != NULL)
39 SH_TAILQ_REMOVE(&hp->hash_bucket, argbhp, hq, __bh);
46 SH_TAILQ_INSERT_AFTER(&hp->hash_bucket, prev, argbhp, hq, __bh);
49 /* Reset the hash bucket's priority. */
50 hp->hash_priority = SH_TAILQ_FIRST(&hp->hash_bucket, __bh)->priority;