Searched refs:befs_sb (Results 1 - 4 of 4) sorted by relevance

/linux-4.4.14/fs/befs/
H A Dsuper.c27 struct befs_sb_info *befs_sb = BEFS_SB(sb); befs_load_sb() local
31 befs_sb->byte_order = BEFS_BYTESEX_LE; befs_load_sb()
33 befs_sb->byte_order = BEFS_BYTESEX_BE; befs_load_sb()
35 befs_sb->magic1 = fs32_to_cpu(sb, disk_sb->magic1); befs_load_sb()
36 befs_sb->magic2 = fs32_to_cpu(sb, disk_sb->magic2); befs_load_sb()
37 befs_sb->magic3 = fs32_to_cpu(sb, disk_sb->magic3); befs_load_sb()
38 befs_sb->block_size = fs32_to_cpu(sb, disk_sb->block_size); befs_load_sb()
39 befs_sb->block_shift = fs32_to_cpu(sb, disk_sb->block_shift); befs_load_sb()
40 befs_sb->num_blocks = fs64_to_cpu(sb, disk_sb->num_blocks); befs_load_sb()
41 befs_sb->used_blocks = fs64_to_cpu(sb, disk_sb->used_blocks); befs_load_sb()
42 befs_sb->inode_size = fs32_to_cpu(sb, disk_sb->inode_size); befs_load_sb()
44 befs_sb->blocks_per_ag = fs32_to_cpu(sb, disk_sb->blocks_per_ag); befs_load_sb()
45 befs_sb->ag_shift = fs32_to_cpu(sb, disk_sb->ag_shift); befs_load_sb()
46 befs_sb->num_ags = fs32_to_cpu(sb, disk_sb->num_ags); befs_load_sb()
48 befs_sb->log_blocks = fsrun_to_cpu(sb, disk_sb->log_blocks); befs_load_sb()
49 befs_sb->log_start = fs64_to_cpu(sb, disk_sb->log_start); befs_load_sb()
50 befs_sb->log_end = fs64_to_cpu(sb, disk_sb->log_end); befs_load_sb()
52 befs_sb->root_dir = fsrun_to_cpu(sb, disk_sb->root_dir); befs_load_sb()
53 befs_sb->indices = fsrun_to_cpu(sb, disk_sb->indices); befs_load_sb()
54 befs_sb->nls = NULL; befs_load_sb()
62 struct befs_sb_info *befs_sb = BEFS_SB(sb); befs_check_sb() local
65 if ((befs_sb->magic1 != BEFS_SUPER_MAGIC1) befs_check_sb()
66 || (befs_sb->magic2 != BEFS_SUPER_MAGIC2) befs_check_sb()
67 || (befs_sb->magic3 != BEFS_SUPER_MAGIC3)) { befs_check_sb()
78 if ((befs_sb->block_size != 1024) befs_check_sb()
79 && (befs_sb->block_size != 2048) befs_check_sb()
80 && (befs_sb->block_size != 4096) befs_check_sb()
81 && (befs_sb->block_size != 8192)) { befs_check_sb()
82 befs_error(sb, "invalid blocksize: %u", befs_sb->block_size); befs_check_sb()
86 if (befs_sb->block_size > PAGE_SIZE) { befs_check_sb()
88 "than system pagesize(%lu)", befs_sb->block_size, befs_check_sb()
98 if ((1 << befs_sb->block_shift) != befs_sb->block_size) { befs_check_sb()
104 if (befs_sb->log_start != befs_sb->log_end) { befs_check_sb()
H A Dio.c31 struct befs_sb_info *befs_sb = BEFS_SB(sb); befs_bread_iaddr() local
37 if (iaddr.allocation_group > befs_sb->num_ags) { befs_bread_iaddr()
39 iaddr.allocation_group, befs_sb->num_ags); befs_bread_iaddr()
H A Dlinuxvfs.c301 struct befs_sb_info *befs_sb = BEFS_SB(sb); befs_iget() local
346 inode->i_uid = befs_sb->mount_opts.use_uid ? befs_iget()
347 befs_sb->mount_opts.uid : befs_iget()
349 inode->i_gid = befs_sb->mount_opts.use_gid ? befs_iget()
350 befs_sb->mount_opts.gid : befs_iget()
377 inode->i_blocks = befs_sb->block_size / VFS_BLOCK_SIZE; befs_iget()
388 num_blks * (befs_sb->block_size / VFS_BLOCK_SIZE); befs_iget()
755 struct befs_sb_info *befs_sb; befs_fill_super() local
764 sb->s_fs_info = kzalloc(sizeof(*befs_sb), GFP_KERNEL); befs_fill_super()
770 befs_sb = BEFS_SB(sb); befs_fill_super()
772 if (!parse_options((char *) data, &befs_sb->mount_opts)) { befs_fill_super()
820 if( befs_sb->num_blocks > ~((sector_t)0) ) { befs_fill_super()
823 befs_sb->num_blocks); befs_fill_super()
833 sb_set_blocksize(sb, (ulong) befs_sb->block_size); befs_fill_super()
835 root = befs_iget(sb, iaddr2blockno(sb, &(befs_sb->root_dir))); befs_fill_super()
847 if (befs_sb->mount_opts.iocharset) { befs_fill_super()
849 befs_sb->mount_opts.iocharset); befs_fill_super()
850 befs_sb->nls = load_nls(befs_sb->mount_opts.iocharset); befs_fill_super()
851 if (!befs_sb->nls) { befs_fill_super()
854 befs_sb->mount_opts.iocharset); befs_fill_super()
855 befs_sb->nls = load_nls_default(); befs_fill_super()
860 befs_sb->nls = load_nls_default(); befs_fill_super()
869 kfree(befs_sb->mount_opts.iocharset); befs_fill_super()
H A Ddatastream.c171 struct befs_sb_info *befs_sb = BEFS_SB(sb); befs_count_blocks() local
175 datablocks = ds->size >> befs_sb->block_shift; befs_count_blocks()
176 if (ds->size & (befs_sb->block_size - 1)) befs_count_blocks()
202 dbl_bytes / (befs_sb->block_size * BEFS_DBLINDIR_BRUN_LEN); befs_count_blocks()
431 struct befs_sb_info *befs_sb = BEFS_SB(sb); befs_find_brun_dblindirect() local
434 data->max_indirect_range >> befs_sb->block_shift; befs_find_brun_dblindirect()

Completed in 100 milliseconds