1 #include <sys/dir.h> /* need struct direct */
6 char b__data
[_MAX_BLOCK_SIZE
]; /* ordinary user data */
7 struct direct b__dir
[NR_DIR_ENTRIES(_MAX_BLOCK_SIZE
)];/* directory block */
10 block_t b_blocknr
; /* block number of its (minor) device */
11 char b_count
; /* number of users of this buffer */
14 /* A block is free if b_dev == NO_DEV. */
16 #define NIL_BUF ((struct buf *) 0) /* indicates absence of a buffer */
18 /* These defs make it possible to use to bp->b_data instead of bp->b.b__data */
19 #define b_data b.b__data
20 #define b_dir b.b__dir
22 #define INODE_BLOCK 0 /* inode block */
23 #define DIRECTORY_BLOCK 1 /* directory block */