Lines Matching refs:befs_sb
23 struct befs_sb_info *befs_sb = BEFS_SB(sb); in befs_load_sb() local
27 befs_sb->byte_order = BEFS_BYTESEX_LE; in befs_load_sb()
29 befs_sb->byte_order = BEFS_BYTESEX_BE; in befs_load_sb()
31 befs_sb->magic1 = fs32_to_cpu(sb, disk_sb->magic1); in befs_load_sb()
32 befs_sb->magic2 = fs32_to_cpu(sb, disk_sb->magic2); in befs_load_sb()
33 befs_sb->magic3 = fs32_to_cpu(sb, disk_sb->magic3); in befs_load_sb()
34 befs_sb->block_size = fs32_to_cpu(sb, disk_sb->block_size); in befs_load_sb()
35 befs_sb->block_shift = fs32_to_cpu(sb, disk_sb->block_shift); in befs_load_sb()
36 befs_sb->num_blocks = fs64_to_cpu(sb, disk_sb->num_blocks); in befs_load_sb()
37 befs_sb->used_blocks = fs64_to_cpu(sb, disk_sb->used_blocks); in befs_load_sb()
38 befs_sb->inode_size = fs32_to_cpu(sb, disk_sb->inode_size); in befs_load_sb()
40 befs_sb->blocks_per_ag = fs32_to_cpu(sb, disk_sb->blocks_per_ag); in befs_load_sb()
41 befs_sb->ag_shift = fs32_to_cpu(sb, disk_sb->ag_shift); in befs_load_sb()
42 befs_sb->num_ags = fs32_to_cpu(sb, disk_sb->num_ags); in befs_load_sb()
44 befs_sb->flags = fs32_to_cpu(sb, disk_sb->flags); in befs_load_sb()
46 befs_sb->log_blocks = fsrun_to_cpu(sb, disk_sb->log_blocks); in befs_load_sb()
47 befs_sb->log_start = fs64_to_cpu(sb, disk_sb->log_start); in befs_load_sb()
48 befs_sb->log_end = fs64_to_cpu(sb, disk_sb->log_end); in befs_load_sb()
50 befs_sb->root_dir = fsrun_to_cpu(sb, disk_sb->root_dir); in befs_load_sb()
51 befs_sb->indices = fsrun_to_cpu(sb, disk_sb->indices); in befs_load_sb()
52 befs_sb->nls = NULL; in befs_load_sb()
60 struct befs_sb_info *befs_sb = BEFS_SB(sb); in befs_check_sb() local
63 if ((befs_sb->magic1 != BEFS_SUPER_MAGIC1) in befs_check_sb()
64 || (befs_sb->magic2 != BEFS_SUPER_MAGIC2) in befs_check_sb()
65 || (befs_sb->magic3 != BEFS_SUPER_MAGIC3)) { in befs_check_sb()
76 if ((befs_sb->block_size != 1024) in befs_check_sb()
77 && (befs_sb->block_size != 2048) in befs_check_sb()
78 && (befs_sb->block_size != 4096) in befs_check_sb()
79 && (befs_sb->block_size != 8192)) { in befs_check_sb()
80 befs_error(sb, "invalid blocksize: %u", befs_sb->block_size); in befs_check_sb()
84 if (befs_sb->block_size > PAGE_SIZE) { in befs_check_sb()
86 "than system pagesize(%lu)", befs_sb->block_size, in befs_check_sb()
96 if ((1 << befs_sb->block_shift) != befs_sb->block_size) { in befs_check_sb()
106 if ((1 << befs_sb->ag_shift) != befs_sb->blocks_per_ag) in befs_check_sb()
109 if (befs_sb->log_start != befs_sb->log_end || in befs_check_sb()
110 befs_sb->flags == BEFS_DIRTY) { in befs_check_sb()