• Home
  • Raw
  • Download

Lines Matching refs:sbi

43 	struct minix_sb_info *sbi = minix_sb(sb);  in minix_put_super()  local
46 if (sbi->s_version != MINIX_V3) /* s_state is now out from V3 sb */ in minix_put_super()
47 sbi->s_ms->s_state = sbi->s_mount_state; in minix_put_super()
48 mark_buffer_dirty(sbi->s_sbh); in minix_put_super()
50 for (i = 0; i < sbi->s_imap_blocks; i++) in minix_put_super()
51 brelse(sbi->s_imap[i]); in minix_put_super()
52 for (i = 0; i < sbi->s_zmap_blocks; i++) in minix_put_super()
53 brelse(sbi->s_zmap[i]); in minix_put_super()
54 brelse (sbi->s_sbh); in minix_put_super()
55 kfree(sbi->s_imap); in minix_put_super()
57 kfree(sbi); in minix_put_super()
123 struct minix_sb_info * sbi = minix_sb(sb); in minix_remount() local
127 ms = sbi->s_ms; in minix_remount()
132 !(sbi->s_mount_state & MINIX_VALID_FS)) in minix_remount()
135 if (sbi->s_version != MINIX_V3) in minix_remount()
136 ms->s_state = sbi->s_mount_state; in minix_remount()
137 mark_buffer_dirty(sbi->s_sbh); in minix_remount()
140 if (sbi->s_version != MINIX_V3) { in minix_remount()
141 sbi->s_mount_state = ms->s_state; in minix_remount()
144 sbi->s_mount_state = MINIX_VALID_FS; in minix_remount()
146 mark_buffer_dirty(sbi->s_sbh); in minix_remount()
148 if (!(sbi->s_mount_state & MINIX_VALID_FS)) in minix_remount()
151 else if ((sbi->s_mount_state & MINIX_ERROR_FS)) in minix_remount()
166 struct minix_sb_info *sbi; in minix_fill_super() local
169 sbi = kzalloc(sizeof(struct minix_sb_info), GFP_KERNEL); in minix_fill_super()
170 if (!sbi) in minix_fill_super()
172 s->s_fs_info = sbi; in minix_fill_super()
184 sbi->s_ms = ms; in minix_fill_super()
185 sbi->s_sbh = bh; in minix_fill_super()
186 sbi->s_mount_state = ms->s_state; in minix_fill_super()
187 sbi->s_ninodes = ms->s_ninodes; in minix_fill_super()
188 sbi->s_nzones = ms->s_nzones; in minix_fill_super()
189 sbi->s_imap_blocks = ms->s_imap_blocks; in minix_fill_super()
190 sbi->s_zmap_blocks = ms->s_zmap_blocks; in minix_fill_super()
191 sbi->s_firstdatazone = ms->s_firstdatazone; in minix_fill_super()
192 sbi->s_log_zone_size = ms->s_log_zone_size; in minix_fill_super()
193 sbi->s_max_size = ms->s_max_size; in minix_fill_super()
196 sbi->s_version = MINIX_V1; in minix_fill_super()
197 sbi->s_dirsize = 16; in minix_fill_super()
198 sbi->s_namelen = 14; in minix_fill_super()
201 sbi->s_version = MINIX_V1; in minix_fill_super()
202 sbi->s_dirsize = 32; in minix_fill_super()
203 sbi->s_namelen = 30; in minix_fill_super()
206 sbi->s_version = MINIX_V2; in minix_fill_super()
207 sbi->s_nzones = ms->s_zones; in minix_fill_super()
208 sbi->s_dirsize = 16; in minix_fill_super()
209 sbi->s_namelen = 14; in minix_fill_super()
212 sbi->s_version = MINIX_V2; in minix_fill_super()
213 sbi->s_nzones = ms->s_zones; in minix_fill_super()
214 sbi->s_dirsize = 32; in minix_fill_super()
215 sbi->s_namelen = 30; in minix_fill_super()
220 sbi->s_imap_blocks = m3s->s_imap_blocks; in minix_fill_super()
221 sbi->s_zmap_blocks = m3s->s_zmap_blocks; in minix_fill_super()
222 sbi->s_firstdatazone = m3s->s_firstdatazone; in minix_fill_super()
223 sbi->s_log_zone_size = m3s->s_log_zone_size; in minix_fill_super()
224 sbi->s_max_size = m3s->s_max_size; in minix_fill_super()
225 sbi->s_ninodes = m3s->s_ninodes; in minix_fill_super()
226 sbi->s_nzones = m3s->s_zones; in minix_fill_super()
227 sbi->s_dirsize = 64; in minix_fill_super()
228 sbi->s_namelen = 60; in minix_fill_super()
229 sbi->s_version = MINIX_V3; in minix_fill_super()
230 sbi->s_mount_state = MINIX_VALID_FS; in minix_fill_super()
239 if (sbi->s_imap_blocks == 0 || sbi->s_zmap_blocks == 0) in minix_fill_super()
241 i = (sbi->s_imap_blocks + sbi->s_zmap_blocks) * sizeof(bh); in minix_fill_super()
245 sbi->s_imap = &map[0]; in minix_fill_super()
246 sbi->s_zmap = &map[sbi->s_imap_blocks]; in minix_fill_super()
249 for (i=0 ; i < sbi->s_imap_blocks ; i++) { in minix_fill_super()
250 if (!(sbi->s_imap[i]=sb_bread(s, block))) in minix_fill_super()
254 for (i=0 ; i < sbi->s_zmap_blocks ; i++) { in minix_fill_super()
255 if (!(sbi->s_zmap[i]=sb_bread(s, block))) in minix_fill_super()
260 minix_set_bit(0,sbi->s_imap[0]->b_data); in minix_fill_super()
261 minix_set_bit(0,sbi->s_zmap[0]->b_data); in minix_fill_super()
267 block = minix_blocks_needed(sbi->s_ninodes, s->s_blocksize); in minix_fill_super()
268 if (sbi->s_imap_blocks < block) { in minix_fill_super()
275 (sbi->s_nzones - sbi->s_firstdatazone + 1), in minix_fill_super()
277 if (sbi->s_zmap_blocks < block) { in minix_fill_super()
297 if (sbi->s_version != MINIX_V3) /* s_state is now out from V3 sb */ in minix_fill_super()
301 if (!(sbi->s_mount_state & MINIX_VALID_FS)) in minix_fill_super()
304 else if (sbi->s_mount_state & MINIX_ERROR_FS) in minix_fill_super()
318 for (i = 0; i < sbi->s_imap_blocks; i++) in minix_fill_super()
319 brelse(sbi->s_imap[i]); in minix_fill_super()
320 for (i = 0; i < sbi->s_zmap_blocks; i++) in minix_fill_super()
321 brelse(sbi->s_zmap[i]); in minix_fill_super()
322 kfree(sbi->s_imap); in minix_fill_super()
352 kfree(sbi); in minix_fill_super()
359 struct minix_sb_info *sbi = minix_sb(sb); in minix_statfs() local
363 buf->f_blocks = (sbi->s_nzones - sbi->s_firstdatazone) << sbi->s_log_zone_size; in minix_statfs()
366 buf->f_files = sbi->s_ninodes; in minix_statfs()
368 buf->f_namelen = sbi->s_namelen; in minix_statfs()