Lines Matching defs:fs
36 #include <ufs/ffs/fs.h>
59 struct fs *fs;
66 fs = ip->i_fs;
67 lbn = lblkno(fs, offset);
68 bsize = blksize(fs, ip, lbn);
71 if ((error = bread(vp, lbn, fs->fs_bsize, &bp)) != 0) {
77 *res = (char *)bp->b_data + blkoff(fs, offset);
83 void ffs_fragacct(struct fs *, int, int32_t[], int);
84 int ffs_isfreeblock(struct fs *, u_char *, daddr_t);
85 int ffs_isblock(struct fs *, u_char *, daddr_t);
86 void ffs_clrblock(struct fs *, u_char *, daddr_t);
87 void ffs_setblock(struct fs *, u_char *, daddr_t);
96 ffs_fragacct(struct fs *fs, int fragmap, int32_t fraglist[], int cnt)
102 inblk = (int)(fragtbl[fs->fs_frag][fragmap]) << 1;
104 for (siz = 1; siz < fs->fs_frag; siz++) {
105 if ((inblk & (1 << (siz + (fs->fs_frag % NBBY)))) == 0)
109 for (pos = siz; pos <= fs->fs_frag; pos++) {
128 ffs_isblock(struct fs *fs, u_char *cp, daddr_t h)
132 switch (fs->fs_frag) {
152 ffs_clrblock(struct fs *fs, u_char *cp, daddr_t h)
155 switch (fs->fs_frag) {
176 ffs_setblock(struct fs *fs, u_char *cp, daddr_t h)
179 switch (fs->fs_frag) {
200 ffs_isfreeblock(struct fs *fs, u_char *cp, daddr_t h)
203 switch (fs->fs_frag) {