befs_sb 177 fs/befs/datastream.c struct befs_sb_info *befs_sb = BEFS_SB(sb); befs_sb 181 fs/befs/datastream.c datablocks = ds->size >> befs_sb->block_shift; befs_sb 182 fs/befs/datastream.c if (ds->size & (befs_sb->block_size - 1)) befs_sb 208 fs/befs/datastream.c dbl_bytes / (befs_sb->block_size * BEFS_DBLINDIR_BRUN_LEN); befs_sb 31 fs/befs/io.c struct befs_sb_info *befs_sb = BEFS_SB(sb); befs_sb 37 fs/befs/io.c if (iaddr.allocation_group > befs_sb->num_ags) { befs_sb 39 fs/befs/io.c iaddr.allocation_group, befs_sb->num_ags); befs_sb 301 fs/befs/linuxvfs.c struct befs_sb_info *befs_sb = BEFS_SB(sb); befs_sb 345 fs/befs/linuxvfs.c inode->i_uid = befs_sb->mount_opts.use_uid ? befs_sb 346 fs/befs/linuxvfs.c befs_sb->mount_opts.uid : befs_sb 348 fs/befs/linuxvfs.c inode->i_gid = befs_sb->mount_opts.use_gid ? befs_sb 349 fs/befs/linuxvfs.c befs_sb->mount_opts.gid : befs_sb 376 fs/befs/linuxvfs.c inode->i_blocks = befs_sb->block_size / VFS_BLOCK_SIZE; befs_sb 387 fs/befs/linuxvfs.c num_blks * (befs_sb->block_size / VFS_BLOCK_SIZE); befs_sb 770 fs/befs/linuxvfs.c struct befs_sb_info *befs_sb = BEFS_SB(root->d_sb); befs_sb 771 fs/befs/linuxvfs.c struct befs_mount_options *opts = &befs_sb->mount_opts; befs_sb 811 fs/befs/linuxvfs.c struct befs_sb_info *befs_sb; befs_sb 819 fs/befs/linuxvfs.c sb->s_fs_info = kzalloc(sizeof(*befs_sb), GFP_KERNEL); befs_sb 823 fs/befs/linuxvfs.c befs_sb = BEFS_SB(sb); befs_sb 825 fs/befs/linuxvfs.c if (!parse_options((char *) data, &befs_sb->mount_opts)) { befs_sb 880 fs/befs/linuxvfs.c if (befs_sb->num_blocks > ~((sector_t)0)) { befs_sb 883 fs/befs/linuxvfs.c befs_sb->num_blocks); befs_sb 893 fs/befs/linuxvfs.c sb_set_blocksize(sb, (ulong) befs_sb->block_size); befs_sb 898 fs/befs/linuxvfs.c root = befs_iget(sb, iaddr2blockno(sb, &(befs_sb->root_dir))); befs_sb 911 fs/befs/linuxvfs.c if (befs_sb->mount_opts.iocharset) { befs_sb 913 fs/befs/linuxvfs.c befs_sb->mount_opts.iocharset); befs_sb 914 fs/befs/linuxvfs.c befs_sb->nls = load_nls(befs_sb->mount_opts.iocharset); befs_sb 915 fs/befs/linuxvfs.c if (!befs_sb->nls) { befs_sb 918 fs/befs/linuxvfs.c befs_sb->mount_opts.iocharset); befs_sb 919 fs/befs/linuxvfs.c befs_sb->nls = load_nls_default(); befs_sb 924 fs/befs/linuxvfs.c befs_sb->nls = load_nls_default(); befs_sb 933 fs/befs/linuxvfs.c kfree(befs_sb->mount_opts.iocharset); befs_sb 23 fs/befs/super.c struct befs_sb_info *befs_sb = BEFS_SB(sb); befs_sb 27 fs/befs/super.c befs_sb->byte_order = BEFS_BYTESEX_LE; befs_sb 29 fs/befs/super.c befs_sb->byte_order = BEFS_BYTESEX_BE; befs_sb 31 fs/befs/super.c befs_sb->magic1 = fs32_to_cpu(sb, disk_sb->magic1); befs_sb 32 fs/befs/super.c befs_sb->magic2 = fs32_to_cpu(sb, disk_sb->magic2); befs_sb 33 fs/befs/super.c befs_sb->magic3 = fs32_to_cpu(sb, disk_sb->magic3); befs_sb 34 fs/befs/super.c befs_sb->block_size = fs32_to_cpu(sb, disk_sb->block_size); befs_sb 35 fs/befs/super.c befs_sb->block_shift = fs32_to_cpu(sb, disk_sb->block_shift); befs_sb 36 fs/befs/super.c befs_sb->num_blocks = fs64_to_cpu(sb, disk_sb->num_blocks); befs_sb 37 fs/befs/super.c befs_sb->used_blocks = fs64_to_cpu(sb, disk_sb->used_blocks); befs_sb 38 fs/befs/super.c befs_sb->inode_size = fs32_to_cpu(sb, disk_sb->inode_size); befs_sb 40 fs/befs/super.c befs_sb->blocks_per_ag = fs32_to_cpu(sb, disk_sb->blocks_per_ag); befs_sb 41 fs/befs/super.c befs_sb->ag_shift = fs32_to_cpu(sb, disk_sb->ag_shift); befs_sb 42 fs/befs/super.c befs_sb->num_ags = fs32_to_cpu(sb, disk_sb->num_ags); befs_sb 44 fs/befs/super.c befs_sb->flags = fs32_to_cpu(sb, disk_sb->flags); befs_sb 46 fs/befs/super.c befs_sb->log_blocks = fsrun_to_cpu(sb, disk_sb->log_blocks); befs_sb 47 fs/befs/super.c befs_sb->log_start = fs64_to_cpu(sb, disk_sb->log_start); befs_sb 48 fs/befs/super.c befs_sb->log_end = fs64_to_cpu(sb, disk_sb->log_end); befs_sb 50 fs/befs/super.c befs_sb->root_dir = fsrun_to_cpu(sb, disk_sb->root_dir); befs_sb 51 fs/befs/super.c befs_sb->indices = fsrun_to_cpu(sb, disk_sb->indices); befs_sb 52 fs/befs/super.c befs_sb->nls = NULL; befs_sb 60 fs/befs/super.c struct befs_sb_info *befs_sb = BEFS_SB(sb); befs_sb 63 fs/befs/super.c if ((befs_sb->magic1 != BEFS_SUPER_MAGIC1) befs_sb 64 fs/befs/super.c || (befs_sb->magic2 != BEFS_SUPER_MAGIC2) befs_sb 65 fs/befs/super.c || (befs_sb->magic3 != BEFS_SUPER_MAGIC3)) { befs_sb 76 fs/befs/super.c if ((befs_sb->block_size != 1024) befs_sb 77 fs/befs/super.c && (befs_sb->block_size != 2048) befs_sb 78 fs/befs/super.c && (befs_sb->block_size != 4096) befs_sb 79 fs/befs/super.c && (befs_sb->block_size != 8192)) { befs_sb 80 fs/befs/super.c befs_error(sb, "invalid blocksize: %u", befs_sb->block_size); befs_sb 84 fs/befs/super.c if (befs_sb->block_size > PAGE_SIZE) { befs_sb 86 fs/befs/super.c "than system pagesize(%lu)", befs_sb->block_size, befs_sb 96 fs/befs/super.c if ((1 << befs_sb->block_shift) != befs_sb->block_size) { befs_sb 106 fs/befs/super.c if ((1 << befs_sb->ag_shift) != befs_sb->blocks_per_ag) befs_sb 109 fs/befs/super.c if (befs_sb->log_start != befs_sb->log_end || befs_sb 110 fs/befs/super.c befs_sb->flags == BEFS_DIRTY) {