• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/fs/hpfs/

Lines Matching refs:sbi

101 	struct hpfs_sb_info *sbi = hpfs_sb(s);
102 kfree(sbi->sb_cp_table);
103 kfree(sbi->sb_bmp_dir);
106 kfree(sbi);
138 struct hpfs_sb_info *sbi = hpfs_sb(s);
141 /*if (sbi->sb_n_free == -1) {*/
142 sbi->sb_n_free = count_bitmaps(s);
143 sbi->sb_n_free_dnodes = hpfs_count_one_bitmap(s, sbi->sb_dmap);
147 buf->f_blocks = sbi->sb_fs_size;
148 buf->f_bfree = sbi->sb_n_free;
149 buf->f_bavail = sbi->sb_n_free;
150 buf->f_files = sbi->sb_dirband_size / 4;
151 buf->f_ffree = sbi->sb_n_free_dnodes;
388 struct hpfs_sb_info *sbi = hpfs_sb(s);
392 uid = sbi->sb_uid; gid = sbi->sb_gid;
393 umask = 0777 & ~sbi->sb_mode;
394 lowercase = sbi->sb_lowercase; conv = sbi->sb_conv;
395 eas = sbi->sb_eas; chk = sbi->sb_chk; chkdsk = sbi->sb_chkdsk;
396 errs = sbi->sb_err; timeshift = sbi->sb_timeshift;
407 if (timeshift != sbi->sb_timeshift) {
414 sbi->sb_uid = uid; sbi->sb_gid = gid;
415 sbi->sb_mode = 0777 & ~umask;
416 sbi->sb_lowercase = lowercase; sbi->sb_conv = conv;
417 sbi->sb_eas = eas; sbi->sb_chk = chk; sbi->sb_chkdsk = chkdsk;
418 sbi->sb_err = errs; sbi->sb_timeshift = timeshift;
443 struct hpfs_sb_info *sbi;
457 sbi = kzalloc(sizeof(*sbi), GFP_KERNEL);
458 if (!sbi)
460 s->s_fs_info = sbi;
462 sbi->sb_bmp_dir = NULL;
463 sbi->sb_cp_table = NULL;
465 init_MUTEX(&sbi->hpfs_creation_de);
488 /*sbi->sb_mounting = 1;*/
490 sbi->sb_fs_size = -1;
518 sbi->sb_root = superblock->root;
519 sbi->sb_fs_size = superblock->n_sectors;
520 sbi->sb_bitmaps = superblock->bitmaps;
521 sbi->sb_dirband_start = superblock->dir_band_start;
522 sbi->sb_dirband_size = superblock->n_dir_band;
523 sbi->sb_dmap = superblock->dir_band_bitmap;
524 sbi->sb_uid = uid;
525 sbi->sb_gid = gid;
526 sbi->sb_mode = 0777 & ~umask;
527 sbi->sb_n_free = -1;
528 sbi->sb_n_free_dnodes = -1;
529 sbi->sb_lowercase = lowercase;
530 sbi->sb_conv = conv;
531 sbi->sb_eas = eas;
532 sbi->sb_chk = chk;
533 sbi->sb_chkdsk = chkdsk;
534 sbi->sb_err = errs;
535 sbi->sb_timeshift = timeshift;
536 sbi->sb_was_error = 0;
537 sbi->sb_cp_table = NULL;
538 sbi->sb_c_bitmap = -1;
539 sbi->sb_max_fwd_alloc = 0xffffff;
542 if (!(sbi->sb_bmp_dir = hpfs_load_bitmap_directory(s, superblock->bitmaps)))
587 a = sbi->sb_dirband_size;
588 sbi->sb_dirband_size = 0;
595 sbi->sb_dirband_size = a;
600 if (!(sbi->sb_cp_table = hpfs_load_code_page(s, spareblock->code_page_dir)))
607 root = iget_locked(s, sbi->sb_root);
624 root_dno = hpfs_fnode_dno(s, sbi->sb_root);
651 kfree(sbi->sb_bmp_dir);
652 kfree(sbi->sb_cp_table);
654 kfree(sbi);