Lines Matching refs:fs
102 #define fsbtodb(fs, b) ((daddr_t)(b) << (fs)->e2fs_fsbtodb) argument
103 #define dbtofsb(fs, b) ((b) >> (fs)->e2fs_fsbtodb) argument
106 #define ino_to_cg(fs, x) (((x) - 1) / (fs->e2fs_ipg)) argument
109 #define ino_to_fsba(fs, x) \ argument
110 (e2fs_gd_get_i_tables(&(fs)->e2fs_gd[ino_to_cg((fs), (x))]) + \
111 (((x) - 1) % (fs)->e2fs_ipg) / (fs)->e2fs_ipb)
114 #define ino_to_fsbo(fs, x) ((x-1) % (fs->e2fs_ipb)) argument
120 #define dtog(fs, d) (((d) - le32toh(fs->e2fs->e2fs_first_dblock)) / \ argument
121 EXT2_BLOCKS_PER_GROUP(fs))
122 #define dtogd(fs, d) (((d) - le32toh(fs->e2fs->e2fs_first_dblock)) % \ argument
123 EXT2_BLOCKS_PER_GROUP(fs))
130 #define blkoff(fs, loc) /* calculates (loc % fs->fs_bsize) */ \ argument
131 ((loc) & (fs)->e2fs_qbmask)
133 #define lblktosize(fs, blk) /* calculates (blk * fs->fs_bsize) */ \ argument
134 ((blk) << (fs->e2fs_bshift))
136 #define lblkno(fs, loc) /* calculates (loc / fs->fs_bsize) */ \ argument
137 ((loc) >> (fs->e2fs_bshift))
140 #define numfrags(fs, loc) /* calculates (loc / fs->fs_fsize) */ \ argument
141 ((loc) >> (fs->e2fs_bshift))
143 #define fragroundup(fs, size) /* calculates roundup(size, fs->fs_fsize) */ \ argument
144 roundup(size, fs->e2fs_fsize)
151 #define blksize(fs, ip, lbn) ((fs)->e2fs_fsize) argument
156 #define INOPB(fs) (fs->e2fs_ipb) argument
161 #define NINDIR(fs) (EXT2_ADDR_PER_BLOCK(fs)) argument