bufarea
static struct bufarea *
struct bufarea *bp;
struct bufarea *bp;
dircheck(struct inodesc *idesc, struct bufarea *bp, struct direct *dp)
static int dircheck(struct inodesc *, struct bufarea *, struct direct *);
static struct bufarea *getdirblk(ufs2_daddr_t blkno, long size);
struct bufarea *bp, *nbp;
struct bufarea *bp;
struct bufarea *bp;
struct bufarea *i_bp; /* buffer containing the dinode */
TAILQ_ENTRY(bufarea) b_list; /* LRU buffer queue */
LIST_ENTRY(bufarea) b_hash; /* hash list */
extern struct bufarea *icachebp; /* inode cache buffer */
extern struct bufarea sblk; /* file system superblock */
extern struct bufarea *pdirbp; /* current directory contents */
struct bufarea *id_bp; /* ckinode: buffer with indirect pointers */
void binval(struct bufarea *);
void brelse(struct bufarea *);
void cgdirty(struct bufarea *);
struct bufarea *cglookup(int cg);
int check_cgmagic(int cg, struct bufarea *cgbp);
void rebuild_cg(int cg, struct bufarea *cgbp);
void copyonwrite(struct fs *, struct bufarea *,
void flush(int fd, struct bufarea *bp);
void getblk(struct bufarea *bp, ufs2_daddr_t blk, long size);
struct bufarea *getdatablk(ufs2_daddr_t blkno, long size, int type);
struct bufarea **);
void prtbuf(struct bufarea *, const char *, ...) __printflike(2, 3);
rebuild_cg(int cg, struct bufarea *cgbp)
struct bufarea *cgbp;
prtbuf(struct bufarea *bp, const char *fmt, ...)
static struct bufarea *
struct bufarea *bp;
bp = (struct bufarea *)Malloc(sizeof(struct bufarea));
static struct bufarea *cgbufs; /* header for cylinder group cache */
struct bufarea *
struct bufarea *cgbp;
cgbufs = Calloc(sblock.fs_ncg, sizeof(struct bufarea));
cgdirty(struct bufarea *cgbp)
struct bufarea *cgbp;
struct bufarea *
struct bufarea *bp;
getblk(struct bufarea *bp, ufs2_daddr_t blk, long size)
brelse(struct bufarea *bp)
binval(struct bufarea *bp)
flush(int fd, struct bufarea *bp)
struct bufarea *bp;
cg_write(struct bufarea *bp)
static struct bufarea *allocbuf(const char *);
struct bufarea *bp, *nbp;
static void cg_write(struct bufarea *);
static struct bufarea cgblk; /* backup buffer for cylinder group blocks */
static struct bufarea failedbuf; /* returned by failed getdatablk() */
static TAILQ_HEAD(bufqueue, bufarea) bufqueuehd; /* head of buffer cache LRU */
static LIST_HEAD(bufhash, bufarea) bufhashhd[HASHSIZE]; /* buffer hash list */
check_cgmagic(int cg, struct bufarea *cgbp)
struct bufarea *cgbp;
bzero(&sblk, sizeof(struct bufarea));
struct bufarea sblk; /* file system superblock */
struct bufarea *pdirbp; /* current directory contents */
struct bufarea *bp;
struct bufarea *cgbp;
struct bufarea *bp;
struct bufarea **bpp)
struct bufarea **bpp)
struct bufarea *bp;
static struct bufarea inobuf;
struct bufarea *icachebp; /* inode cache buffer */
struct bufarea **);
struct bufarea *cgbp;
struct bufarea *bp;
struct bufarea *snapbp;
copyonwrite(struct fs *fs, struct bufarea *bp,
struct bufarea *snapbp;
struct bufarea *cgbp;
struct bufarea *cgbp;
struct bufarea *bp;
struct bufarea *sc_cgbp;
struct bufarea *bp;
struct bufarea *bp;
struct bufarea *cgbp;
struct bufarea *cgbp;
struct bufarea *bp;
struct bufarea *bp;
struct bufarea *bp;
struct bufarea *bp;
struct bufarea *cgbp;
static struct bufarea *bp;