Get rid of the b_spc specialty field in struct buf by using an already

available caller private field.
This commit is contained in:
phk 2003-06-16 07:18:39 +00:00
parent b70380d374
commit 3b3b9689c1
2 changed files with 3 additions and 5 deletions

View File

@ -1120,7 +1120,7 @@ aio_qphysio(struct proc *p, struct aiocblist *aiocbe)
s = splbio();
aiocbe->bp = bp;
bp->b_spc = (void *)aiocbe;
bp->b_caller2 = (void *)aiocbe;
TAILQ_INSERT_TAIL(&aio_bufjobs, aiocbe, list);
TAILQ_INSERT_TAIL(&ki->kaio_bufqueue, aiocbe, plist);
aiocbe->jobstate = JOBST_JOBQBUF;
@ -2128,7 +2128,7 @@ aio_physwakeup(struct buf *bp)
wakeup(bp);
aiocbe = (struct aiocblist *)bp->b_spc;
aiocbe = (struct aiocblist *)bp->b_caller2;
if (aiocbe) {
p = bp->b_caller1;

View File

@ -106,6 +106,7 @@ struct buf {
#define b_bcount b_io.bio_bcount
#define b_blkno b_io.bio_blkno
#define b_caller1 b_io.bio_caller1
#define b_caller2 b_io.bio_caller2
#define b_data b_io.bio_data
#define b_dev b_io.bio_dev
#define b_driver1 b_io.bio_driver1
@ -143,7 +144,6 @@ struct buf {
struct ucred *b_wcred; /* Write credentials reference. */
void *b_saveaddr; /* Original b_addr for physio. */
union pager_info {
void *pg_spc;
int pg_reqpage;
} b_pager;
union cluster_info {
@ -155,8 +155,6 @@ struct buf {
struct workhead b_dep; /* (D) List of filesystem dependencies. */
};
#define b_spc b_pager.pg_spc
/*
* These flags are kept in b_flags.
*