Lines Matching refs:sb

29 befs_error(const struct super_block *sb, const char *fmt, ...)
37 pr_err("(%s): %pV\n", sb->s_id, &vaf);
42 befs_warning(const struct super_block *sb, const char *fmt, ...)
50 pr_warn("(%s): %pV\n", sb->s_id, &vaf);
55 befs_debug(const struct super_block *sb, const char *fmt, ...)
65 pr_debug("(%s): %pV\n", sb->s_id, &vaf);
72 befs_dump_inode(const struct super_block *sb, befs_inode *inode)
78 befs_debug(sb, "befs_inode information");
80 befs_debug(sb, " magic1 %08x", fs32_to_cpu(sb, inode->magic1));
82 tmp_run = fsrun_to_cpu(sb, inode->inode_num);
83 befs_debug(sb, " inode_num %u, %hu, %hu",
86 befs_debug(sb, " uid %u", fs32_to_cpu(sb, inode->uid));
87 befs_debug(sb, " gid %u", fs32_to_cpu(sb, inode->gid));
88 befs_debug(sb, " mode %08x", fs32_to_cpu(sb, inode->mode));
89 befs_debug(sb, " flags %08x", fs32_to_cpu(sb, inode->flags));
90 befs_debug(sb, " create_time %llu",
91 fs64_to_cpu(sb, inode->create_time));
92 befs_debug(sb, " last_modified_time %llu",
93 fs64_to_cpu(sb, inode->last_modified_time));
95 tmp_run = fsrun_to_cpu(sb, inode->parent);
96 befs_debug(sb, " parent [%u, %hu, %hu]",
99 tmp_run = fsrun_to_cpu(sb, inode->attributes);
100 befs_debug(sb, " attributes [%u, %hu, %hu]",
103 befs_debug(sb, " type %08x", fs32_to_cpu(sb, inode->type));
104 befs_debug(sb, " inode_size %u", fs32_to_cpu(sb, inode->inode_size));
106 if (S_ISLNK(fs32_to_cpu(sb, inode->mode))) {
107 befs_debug(sb, " Symbolic link [%s]", inode->data.symlink);
113 fsrun_to_cpu(sb, inode->data.datastream.direct[i]);
114 befs_debug(sb, " direct %d [%u, %hu, %hu]", i,
118 befs_debug(sb, " max_direct_range %llu",
119 fs64_to_cpu(sb,
123 tmp_run = fsrun_to_cpu(sb, inode->data.datastream.indirect);
124 befs_debug(sb, " indirect [%u, %hu, %hu]",
128 befs_debug(sb, " max_indirect_range %llu",
129 fs64_to_cpu(sb,
134 fsrun_to_cpu(sb, inode->data.datastream.double_indirect);
135 befs_debug(sb, " double indirect [%u, %hu, %hu]",
139 befs_debug(sb, " max_double_indirect_range %llu",
140 fs64_to_cpu(sb,
144 befs_debug(sb, " size %llu",
145 fs64_to_cpu(sb, inode->data.datastream.size));
156 befs_dump_super_block(const struct super_block *sb, befs_super_block *sup)
162 befs_debug(sb, "befs_super_block information");
164 befs_debug(sb, " name %s", sup->name);
165 befs_debug(sb, " magic1 %08x", fs32_to_cpu(sb, sup->magic1));
166 befs_debug(sb, " fs_byte_order %08x",
167 fs32_to_cpu(sb, sup->fs_byte_order));
169 befs_debug(sb, " block_size %u", fs32_to_cpu(sb, sup->block_size));
170 befs_debug(sb, " block_shift %u", fs32_to_cpu(sb, sup->block_shift));
172 befs_debug(sb, " num_blocks %llu", fs64_to_cpu(sb, sup->num_blocks));
173 befs_debug(sb, " used_blocks %llu", fs64_to_cpu(sb, sup->used_blocks));
174 befs_debug(sb, " inode_size %u", fs32_to_cpu(sb, sup->inode_size));
176 befs_debug(sb, " magic2 %08x", fs32_to_cpu(sb, sup->magic2));
177 befs_debug(sb, " blocks_per_ag %u",
178 fs32_to_cpu(sb, sup->blocks_per_ag));
179 befs_debug(sb, " ag_shift %u", fs32_to_cpu(sb, sup->ag_shift));
180 befs_debug(sb, " num_ags %u", fs32_to_cpu(sb, sup->num_ags));
182 befs_debug(sb, " flags %08x", fs32_to_cpu(sb, sup->flags));
184 tmp_run = fsrun_to_cpu(sb, sup->log_blocks);
185 befs_debug(sb, " log_blocks %u, %hu, %hu",
188 befs_debug(sb, " log_start %lld", fs64_to_cpu(sb, sup->log_start));
189 befs_debug(sb, " log_end %lld", fs64_to_cpu(sb, sup->log_end));
191 befs_debug(sb, " magic3 %08x", fs32_to_cpu(sb, sup->magic3));
193 tmp_run = fsrun_to_cpu(sb, sup->root_dir);
194 befs_debug(sb, " root_dir %u, %hu, %hu",
197 tmp_run = fsrun_to_cpu(sb, sup->indices);
198 befs_debug(sb, " indices %u, %hu, %hu",
207 befs_dump_small_data(const struct super_block *sb, befs_small_data *sd)
213 befs_dump_run(const struct super_block *sb, befs_disk_block_run run)
217 befs_block_run n = fsrun_to_cpu(sb, run);
219 befs_debug(sb, "[%u, %hu, %hu]", n.allocation_group, n.start, n.len);
226 befs_dump_index_entry(const struct super_block *sb,
231 befs_debug(sb, "Btree super structure");
232 befs_debug(sb, " magic %08x", fs32_to_cpu(sb, super->magic));
233 befs_debug(sb, " node_size %u", fs32_to_cpu(sb, super->node_size));
234 befs_debug(sb, " max_depth %08x", fs32_to_cpu(sb, super->max_depth));
236 befs_debug(sb, " data_type %08x", fs32_to_cpu(sb, super->data_type));
237 befs_debug(sb, " root_node_pointer %016LX",
238 fs64_to_cpu(sb, super->root_node_ptr));
239 befs_debug(sb, " free_node_pointer %016LX",
240 fs64_to_cpu(sb, super->free_node_ptr));
241 befs_debug(sb, " maximum size %016LX",
242 fs64_to_cpu(sb, super->max_size));
248 befs_dump_index_node(const struct super_block *sb, befs_btree_nodehead *node)
252 befs_debug(sb, "Btree node structure");
253 befs_debug(sb, " left %016LX", fs64_to_cpu(sb, node->left));
254 befs_debug(sb, " right %016LX", fs64_to_cpu(sb, node->right));
255 befs_debug(sb, " overflow %016LX", fs64_to_cpu(sb, node->overflow));
256 befs_debug(sb, " all_key_count %hu",
257 fs16_to_cpu(sb, node->all_key_count));
258 befs_debug(sb, " all_key_length %hu",
259 fs16_to_cpu(sb, node->all_key_length));