• Home
  • Raw
  • Download

Lines Matching refs:befs_sb

27 	befs_sb_info *befs_sb = BEFS_SB(sb);  in befs_load_sb()  local
31 befs_sb->byte_order = BEFS_BYTESEX_LE; in befs_load_sb()
33 befs_sb->byte_order = BEFS_BYTESEX_BE; in befs_load_sb()
35 befs_sb->magic1 = fs32_to_cpu(sb, disk_sb->magic1); in befs_load_sb()
36 befs_sb->magic2 = fs32_to_cpu(sb, disk_sb->magic2); in befs_load_sb()
37 befs_sb->magic3 = fs32_to_cpu(sb, disk_sb->magic3); in befs_load_sb()
38 befs_sb->block_size = fs32_to_cpu(sb, disk_sb->block_size); in befs_load_sb()
39 befs_sb->block_shift = fs32_to_cpu(sb, disk_sb->block_shift); in befs_load_sb()
40 befs_sb->num_blocks = fs64_to_cpu(sb, disk_sb->num_blocks); in befs_load_sb()
41 befs_sb->used_blocks = fs64_to_cpu(sb, disk_sb->used_blocks); in befs_load_sb()
42 befs_sb->inode_size = fs32_to_cpu(sb, disk_sb->inode_size); in befs_load_sb()
44 befs_sb->blocks_per_ag = fs32_to_cpu(sb, disk_sb->blocks_per_ag); in befs_load_sb()
45 befs_sb->ag_shift = fs32_to_cpu(sb, disk_sb->ag_shift); in befs_load_sb()
46 befs_sb->num_ags = fs32_to_cpu(sb, disk_sb->num_ags); in befs_load_sb()
48 befs_sb->log_blocks = fsrun_to_cpu(sb, disk_sb->log_blocks); in befs_load_sb()
49 befs_sb->log_start = fs64_to_cpu(sb, disk_sb->log_start); in befs_load_sb()
50 befs_sb->log_end = fs64_to_cpu(sb, disk_sb->log_end); in befs_load_sb()
52 befs_sb->root_dir = fsrun_to_cpu(sb, disk_sb->root_dir); in befs_load_sb()
53 befs_sb->indices = fsrun_to_cpu(sb, disk_sb->indices); in befs_load_sb()
54 befs_sb->nls = NULL; in befs_load_sb()
62 befs_sb_info *befs_sb = BEFS_SB(sb); in befs_check_sb() local
65 if ((befs_sb->magic1 != BEFS_SUPER_MAGIC1) in befs_check_sb()
66 || (befs_sb->magic2 != BEFS_SUPER_MAGIC2) in befs_check_sb()
67 || (befs_sb->magic3 != BEFS_SUPER_MAGIC3)) { in befs_check_sb()
78 if ((befs_sb->block_size != 1024) in befs_check_sb()
79 && (befs_sb->block_size != 2048) in befs_check_sb()
80 && (befs_sb->block_size != 4096) in befs_check_sb()
81 && (befs_sb->block_size != 8192)) { in befs_check_sb()
82 befs_error(sb, "invalid blocksize: %u", befs_sb->block_size); in befs_check_sb()
86 if (befs_sb->block_size > PAGE_SIZE) { in befs_check_sb()
88 "than system pagesize(%lu)", befs_sb->block_size, in befs_check_sb()
98 if ((1 << befs_sb->block_shift) != befs_sb->block_size) { in befs_check_sb()
104 if (befs_sb->log_start != befs_sb->log_end) { in befs_check_sb()