Lines Matching refs:s
166 struct super_block *s = inode->i_sb; in bfs_evict_inode() local
167 struct bfs_sb_info *info = BFS_SB(s); in bfs_evict_inode()
179 di = find_inode(s, inode->i_ino, &bh); in bfs_evict_inode()
194 bfs_dump_imap("evict_inode", s); in bfs_evict_inode()
207 static void bfs_put_super(struct super_block *s) in bfs_put_super() argument
209 struct bfs_sb_info *info = BFS_SB(s); in bfs_put_super()
216 s->s_fs_info = NULL; in bfs_put_super()
221 struct super_block *s = dentry->d_sb; in bfs_statfs() local
222 struct bfs_sb_info *info = BFS_SB(s); in bfs_statfs()
223 u64 id = huge_encode_dev(s->s_bdev->bd_dev); in bfs_statfs()
225 buf->f_bsize = s->s_blocksize; in bfs_statfs()
289 void bfs_dump_imap(const char *prefix, struct super_block *s) in bfs_dump_imap() argument
297 for (i = BFS_SB(s)->si_lasti; i >= 0; i--) { in bfs_dump_imap()
299 if (test_bit(i, BFS_SB(s)->si_imap)) in bfs_dump_imap()
304 printf("%s: lasti=%08lx <%s>\n", prefix, BFS_SB(s)->si_lasti, tmpbuf); in bfs_dump_imap()
309 static int bfs_fill_super(struct super_block *s, struct fs_context *fc) in bfs_fill_super() argument
324 s->s_fs_info = info; in bfs_fill_super()
325 s->s_time_min = 0; in bfs_fill_super()
326 s->s_time_max = U32_MAX; in bfs_fill_super()
328 sb_set_blocksize(s, BFS_BSIZE); in bfs_fill_super()
330 sbh = sb_bread(s, 0); in bfs_fill_super()
336 printf("No BFS filesystem on %s (magic=%08x)\n", s->s_id, le32_to_cpu(bfs_sb->s_magic)); in bfs_fill_super()
339 if (BFS_UNCLEAN(bfs_sb, s) && !silent) in bfs_fill_super()
340 printf("%s is unclean, continuing\n", s->s_id); in bfs_fill_super()
342 s->s_magic = BFS_MAGIC; in bfs_fill_super()
346 printf("Superblock is corrupted on %s\n", s->s_id); in bfs_fill_super()
352 …: filesystem %s was created with 512 inodes, the real maximum is 511, mounting anyway\n", s->s_id); in bfs_fill_super()
354 printf("Impossible last inode number %lu > %d on %s\n", info->si_lasti, BFS_MAX_LASTI, s->s_id); in bfs_fill_super()
360 s->s_op = &bfs_sops; in bfs_fill_super()
361 inode = bfs_iget(s, BFS_ROOT_INO); in bfs_fill_super()
366 s->s_root = d_make_root(inode); in bfs_fill_super()
367 if (!s->s_root) { in bfs_fill_super()
378 bh = sb_bread(s, info->si_blocks - 1); in bfs_fill_super()
380 printf("Last block not available on %s: %lu\n", s->s_id, info->si_blocks - 1); in bfs_fill_super()
395 bh = sb_bread(s, block); in bfs_fill_super()
416 printf("Inode 0x%08x corrupted on %s\n", i, s->s_id); in bfs_fill_super()
436 bfs_dump_imap("fill_super", s); in bfs_fill_super()
440 dput(s->s_root); in bfs_fill_super()
441 s->s_root = NULL; in bfs_fill_super()
447 s->s_fs_info = NULL; in bfs_fill_super()