Lines Matching defs:fs

43 #define	SEGUPB(fs)	(1 << (fs)->lfs_sushift)  argument
44 #define SEGTABSIZE_SU(fs) \ argument
152 #define S_INDIR(fs) -NDADDR argument
153 #define D_INDIR(fs) (S_INDIR(fs) - NINDIR(fs) - 1) argument
154 #define T_INDIR(fs) (D_INDIR(fs) - NINDIR(fs) * NINDIR(fs) - 1) argument
179 #define CLEANSIZE_SU(fs) \ argument
208 #define NINDIR(fs) ((fs)->lfs_nindir) argument
211 #define INOPB(fs) ((fs)->lfs_inopb) argument
213 #define blksize(fs, ip, lbn) \ argument
217 #define blkoff(fs, loc) ((int)((loc) & (fs)->lfs_bmask)) argument
218 #define fragoff(fs, loc) /* calculates (loc % fs->lfs_fsize) */ \ argument
220 #define fsbtodb(fs, b) ((b) << (fs)->lfs_fsbtodb) argument
221 #define dbtofsb(fs, b) ((b) >> (fs)->lfs_fsbtodb) argument
222 #define fragstodb(fs, b) ((b) << (fs)->lfs_fsbtodb - (fs)->lfs_fbshift) argument
223 #define dbtofrags(fs, b) ((b) >> (fs)->lfs_fsbtodb - (fs)->lfs_fbshift) argument
224 #define lblkno(fs, loc) ((loc) >> (fs)->lfs_bshift) argument
225 #define lblktosize(fs, blk) ((blk) << (fs)->lfs_bshift) argument
226 #define numfrags(fs, loc) /* calculates (loc / fs->lfs_fsize) */ \ argument
228 #define blkroundup(fs, size) /* calculates roundup(size, fs->lfs_bsize) */ \ argument
230 #define fragroundup(fs, size) /* calculates roundup(size, fs->lfs_fsize) */ \ argument
232 #define fragstoblks(fs, frags) /* calculates (frags / fs->lfs_frag) */ \ argument
234 #define blkstofrags(fs, blks) /* calculates (blks * fs->lfs_frag) */ \ argument
236 #define fragnum(fs, fsb) /* calculates (fsb % fs->lfs_frag) */ \ argument
238 #define blknum(fs, fsb) /* calculates rounddown(fsb, fs->lfs_frag) */ \ argument
240 #define dblksize(fs, dip, lbn) \ argument
244 #define datosn(fs, daddr) /* disk address to segment number */ \ argument
246 #define sntoda(fs, sn) /* segment number to disk address */ \ argument
287 #define LFS_FITS(fs, db) \ argument
311 struct lfs *fs; /* file system pointer */ member