Lines Matching refs:sbd

81 	struct sysv4_super_block * sbd;  in detected_sysv4()  local
86 sbd = (struct sysv4_super_block *) (bh1->b_data + BLOCK_SIZE/2); in detected_sysv4()
88 sbd = (struct sysv4_super_block *) bh2->b_data; in detected_sysv4()
93 sbi->s_sbd1 = (char *)sbd; in detected_sysv4()
94 sbi->s_sbd2 = (char *)sbd; in detected_sysv4()
95 sbi->s_sb_fic_count = &sbd->s_ninode; in detected_sysv4()
96 sbi->s_sb_fic_inodes = &sbd->s_inode[0]; in detected_sysv4()
97 sbi->s_sb_total_free_inodes = &sbd->s_tinode; in detected_sysv4()
98 sbi->s_bcache_count = &sbd->s_nfree; in detected_sysv4()
99 sbi->s_bcache = &sbd->s_free[0]; in detected_sysv4()
100 sbi->s_free_blocks = &sbd->s_tfree; in detected_sysv4()
101 sbi->s_sb_time = &sbd->s_time; in detected_sysv4()
102 sbi->s_sb_state = &sbd->s_state; in detected_sysv4()
103 sbi->s_firstdatazone = fs16_to_cpu(sbi, sbd->s_isize); in detected_sysv4()
104 sbi->s_nzones = fs32_to_cpu(sbi, sbd->s_fsize); in detected_sysv4()
109 struct sysv2_super_block *sbd; in detected_sysv2() local
114 sbd = (struct sysv2_super_block *) (bh1->b_data + BLOCK_SIZE/2); in detected_sysv2()
116 sbd = (struct sysv2_super_block *) bh2->b_data; in detected_sysv2()
121 sbi->s_sbd1 = (char *)sbd; in detected_sysv2()
122 sbi->s_sbd2 = (char *)sbd; in detected_sysv2()
123 sbi->s_sb_fic_count = &sbd->s_ninode; in detected_sysv2()
124 sbi->s_sb_fic_inodes = &sbd->s_inode[0]; in detected_sysv2()
125 sbi->s_sb_total_free_inodes = &sbd->s_tinode; in detected_sysv2()
126 sbi->s_bcache_count = &sbd->s_nfree; in detected_sysv2()
127 sbi->s_bcache = &sbd->s_free[0]; in detected_sysv2()
128 sbi->s_free_blocks = &sbd->s_tfree; in detected_sysv2()
129 sbi->s_sb_time = &sbd->s_time; in detected_sysv2()
130 sbi->s_sb_state = &sbd->s_state; in detected_sysv2()
131 sbi->s_firstdatazone = fs16_to_cpu(sbi, sbd->s_isize); in detected_sysv2()
132 sbi->s_nzones = fs32_to_cpu(sbi, sbd->s_fsize); in detected_sysv2()
137 struct coh_super_block * sbd; in detected_coherent() local
140 sbd = (struct coh_super_block *) bh1->b_data; in detected_coherent()
145 sbi->s_sbd1 = (char *)sbd; in detected_coherent()
146 sbi->s_sbd2 = (char *)sbd; in detected_coherent()
147 sbi->s_sb_fic_count = &sbd->s_ninode; in detected_coherent()
148 sbi->s_sb_fic_inodes = &sbd->s_inode[0]; in detected_coherent()
149 sbi->s_sb_total_free_inodes = &sbd->s_tinode; in detected_coherent()
150 sbi->s_bcache_count = &sbd->s_nfree; in detected_coherent()
151 sbi->s_bcache = &sbd->s_free[0]; in detected_coherent()
152 sbi->s_free_blocks = &sbd->s_tfree; in detected_coherent()
153 sbi->s_sb_time = &sbd->s_time; in detected_coherent()
154 sbi->s_firstdatazone = fs16_to_cpu(sbi, sbd->s_isize); in detected_coherent()
155 sbi->s_nzones = fs32_to_cpu(sbi, sbd->s_fsize); in detected_coherent()
161 struct v7_super_block *sbd = (struct v7_super_block *)bh2->b_data; in detected_v7() local
166 sbi->s_sbd1 = (char *)sbd; in detected_v7()
167 sbi->s_sbd2 = (char *)sbd; in detected_v7()
168 sbi->s_sb_fic_count = &sbd->s_ninode; in detected_v7()
169 sbi->s_sb_fic_inodes = &sbd->s_inode[0]; in detected_v7()
170 sbi->s_sb_total_free_inodes = &sbd->s_tinode; in detected_v7()
171 sbi->s_bcache_count = &sbd->s_nfree; in detected_v7()
172 sbi->s_bcache = &sbd->s_free[0]; in detected_v7()
173 sbi->s_free_blocks = &sbd->s_tfree; in detected_v7()
174 sbi->s_sb_time = &sbd->s_time; in detected_v7()
175 sbi->s_firstdatazone = fs16_to_cpu(sbi, sbd->s_isize); in detected_v7()
176 sbi->s_nzones = fs32_to_cpu(sbi, sbd->s_fsize); in detected_v7()
181 struct xenix_super_block *sbd = (struct xenix_super_block *)bh->b_data; in detect_xenix() local
182 if (*(__le32 *)&sbd->s_magic == cpu_to_le32(0x2b5544)) in detect_xenix()
184 else if (*(__be32 *)&sbd->s_magic == cpu_to_be32(0x2b5544)) in detect_xenix()
188 switch (fs32_to_cpu(sbi, sbd->s_type)) { in detect_xenix()
204 struct sysv4_super_block * sbd; in detect_sysv() local
207 sbd = (struct sysv4_super_block *) (bh->b_data + BLOCK_SIZE/2); in detect_sysv()
208 if (*(__le32 *)&sbd->s_magic == cpu_to_le32(0xfd187e20)) in detect_sysv()
210 else if (*(__be32 *)&sbd->s_magic == cpu_to_be32(0xfd187e20)) in detect_sysv()
215 type = fs32_to_cpu(sbi, sbd->s_type); in detect_sysv()
217 if (fs16_to_cpu(sbi, sbd->s_nfree) == 0xffff) { in detect_sysv()
228 if (fs32_to_cpu(sbi, sbd->s_time) < JAN_1_1980) { in detect_sysv()
255 struct coh_super_block * sbd; in detect_coherent() local
257 sbd = (struct coh_super_block *) (bh->b_data + BLOCK_SIZE/2); in detect_coherent()
258 if ((memcmp(sbd->s_fname,"noname",6) && memcmp(sbd->s_fname,"xxxxx ",6)) in detect_coherent()
259 || (memcmp(sbd->s_fpack,"nopack",6) && memcmp(sbd->s_fpack,"xxxxx\n",6))) in detect_coherent()