Lines Matching refs:s
169 struct super_block *s = inode->i_sb; in bfs_evict_inode() local
170 struct bfs_sb_info *info = BFS_SB(s); in bfs_evict_inode()
182 di = find_inode(s, inode->i_ino, &bh); in bfs_evict_inode()
197 bfs_dump_imap("evict_inode", s); in bfs_evict_inode()
210 static void bfs_put_super(struct super_block *s) in bfs_put_super() argument
212 struct bfs_sb_info *info = BFS_SB(s); in bfs_put_super()
219 s->s_fs_info = NULL; in bfs_put_super()
224 struct super_block *s = dentry->d_sb; in bfs_statfs() local
225 struct bfs_sb_info *info = BFS_SB(s); in bfs_statfs()
226 u64 id = huge_encode_dev(s->s_bdev->bd_dev); in bfs_statfs()
228 buf->f_bsize = s->s_blocksize; in bfs_statfs()
292 void bfs_dump_imap(const char *prefix, struct super_block *s) in bfs_dump_imap() argument
300 for (i = BFS_SB(s)->si_lasti; i >= 0; i--) { in bfs_dump_imap()
302 if (test_bit(i, BFS_SB(s)->si_imap)) in bfs_dump_imap()
307 printf("%s: lasti=%08lx <%s>\n", prefix, BFS_SB(s)->si_lasti, tmpbuf); in bfs_dump_imap()
312 static int bfs_fill_super(struct super_block *s, void *data, int silent) in bfs_fill_super() argument
326 s->s_fs_info = info; in bfs_fill_super()
327 s->s_time_min = 0; in bfs_fill_super()
328 s->s_time_max = U32_MAX; in bfs_fill_super()
330 sb_set_blocksize(s, BFS_BSIZE); in bfs_fill_super()
332 sbh = sb_bread(s, 0); in bfs_fill_super()
338 printf("No BFS filesystem on %s (magic=%08x)\n", s->s_id, le32_to_cpu(bfs_sb->s_magic)); in bfs_fill_super()
341 if (BFS_UNCLEAN(bfs_sb, s) && !silent) in bfs_fill_super()
342 printf("%s is unclean, continuing\n", s->s_id); in bfs_fill_super()
344 s->s_magic = BFS_MAGIC; in bfs_fill_super()
348 printf("Superblock is corrupted on %s\n", s->s_id); in bfs_fill_super()
354 …: filesystem %s was created with 512 inodes, the real maximum is 511, mounting anyway\n", s->s_id); in bfs_fill_super()
356 printf("Impossible last inode number %lu > %d on %s\n", info->si_lasti, BFS_MAX_LASTI, s->s_id); in bfs_fill_super()
362 s->s_op = &bfs_sops; in bfs_fill_super()
363 inode = bfs_iget(s, BFS_ROOT_INO); in bfs_fill_super()
368 s->s_root = d_make_root(inode); in bfs_fill_super()
369 if (!s->s_root) { in bfs_fill_super()
380 bh = sb_bread(s, info->si_blocks - 1); in bfs_fill_super()
382 printf("Last block not available on %s: %lu\n", s->s_id, info->si_blocks - 1); in bfs_fill_super()
397 bh = sb_bread(s, block); in bfs_fill_super()
418 printf("Inode 0x%08x corrupted on %s\n", i, s->s_id); in bfs_fill_super()
438 bfs_dump_imap("fill_super", s); in bfs_fill_super()
442 dput(s->s_root); in bfs_fill_super()
443 s->s_root = NULL; in bfs_fill_super()
449 s->s_fs_info = NULL; in bfs_fill_super()