Lines Matching refs:s
33 void dump_imap(const char *prefix, struct super_block *s);
159 struct super_block *s = inode->i_sb; in bfs_delete_inode() local
160 struct bfs_sb_info *info = BFS_SB(s); in bfs_delete_inode()
178 bh = sb_bread(s, block); in bfs_delete_inode()
196 dump_imap("delete_inode", s); in bfs_delete_inode()
212 static void bfs_put_super(struct super_block *s) in bfs_put_super() argument
214 struct bfs_sb_info *info = BFS_SB(s); in bfs_put_super()
223 s->s_fs_info = NULL; in bfs_put_super()
228 struct super_block *s = dentry->d_sb; in bfs_statfs() local
229 struct bfs_sb_info *info = BFS_SB(s); in bfs_statfs()
230 u64 id = huge_encode_dev(s->s_bdev->bd_dev); in bfs_statfs()
232 buf->f_bsize = s->s_blocksize; in bfs_statfs()
243 static void bfs_write_super(struct super_block *s) in bfs_write_super() argument
245 struct bfs_sb_info *info = BFS_SB(s); in bfs_write_super()
248 if (!(s->s_flags & MS_RDONLY)) in bfs_write_super()
250 s->s_dirt = 0; in bfs_write_super()
304 void dump_imap(const char *prefix, struct super_block *s) in dump_imap() argument
312 for (i = BFS_SB(s)->si_lasti; i >= 0; i--) { in dump_imap()
314 if (test_bit(i, BFS_SB(s)->si_imap)) in dump_imap()
320 prefix, BFS_SB(s)->si_lasti, tmpbuf); in dump_imap()
325 static int bfs_fill_super(struct super_block *s, void *data, int silent) in bfs_fill_super() argument
338 s->s_fs_info = info; in bfs_fill_super()
340 sb_set_blocksize(s, BFS_BSIZE); in bfs_fill_super()
342 bh = sb_bread(s, 0); in bfs_fill_super()
349 s->s_id, le32_to_cpu(bfs_sb->s_magic)); in bfs_fill_super()
352 if (BFS_UNCLEAN(bfs_sb, s) && !silent) in bfs_fill_super()
353 printf("%s is unclean, continuing\n", s->s_id); in bfs_fill_super()
355 s->s_magic = BFS_MAGIC; in bfs_fill_super()
373 s->s_op = &bfs_sops; in bfs_fill_super()
374 inode = bfs_iget(s, BFS_ROOT_INO); in bfs_fill_super()
380 s->s_root = d_alloc_root(inode); in bfs_fill_super()
381 if (!s->s_root) { in bfs_fill_super()
395 bh = sb_bread(s, info->si_blocks - 1); in bfs_fill_super()
414 bh = sb_bread(s, block); in bfs_fill_super()
438 s->s_root = NULL; in bfs_fill_super()
441 s->s_fs_info = NULL; in bfs_fill_super()
457 if (!(s->s_flags & MS_RDONLY)) { in bfs_fill_super()
459 s->s_dirt = 1; in bfs_fill_super()
461 dump_imap("read_super", s); in bfs_fill_super()
468 s->s_fs_info = NULL; in bfs_fill_super()