• Home
  • Raw
  • Download

Lines Matching refs:s

114 	struct super_block *s = inode->i_sb;  in qnx6_block_map()  local
115 struct qnx6_sb_info *sbi = QNX6_SB(s); in qnx6_block_map()
135 block = qnx6_get_devblock(s, ei->di_block_ptr[levelptr]); in qnx6_block_map()
138 bh = sb_bread(s, block); in qnx6_block_map()
150 block = qnx6_get_devblock(s, ptr); in qnx6_block_map()
181 static const char *qnx6_checkroot(struct super_block *s) in qnx6_checkroot() argument
186 struct inode *root = d_inode(s->s_root); in qnx6_checkroot()
205 void qnx6_superblock_debug(struct qnx6_super_block *sb, struct super_block *s) in qnx6_superblock_debug() argument
207 struct qnx6_sb_info *sbi = QNX6_SB(s); in qnx6_superblock_debug()
258 static struct buffer_head *qnx6_check_first_superblock(struct super_block *s, in qnx6_check_first_superblock() argument
261 struct qnx6_sb_info *sbi = QNX6_SB(s); in qnx6_check_first_superblock()
267 bh = sb_bread(s, offset); in qnx6_check_first_superblock()
286 offset * s->s_blocksize); in qnx6_check_first_superblock()
295 static struct inode *qnx6_private_inode(struct super_block *s,
298 static int qnx6_fill_super(struct super_block *s, void *data, int silent) in qnx6_fill_super() argument
313 s->s_fs_info = qs; in qnx6_fill_super()
316 if (!sb_set_blocksize(s, QNX6_SUPERBLOCK_SIZE)) { in qnx6_fill_super()
322 if (!qnx6_parse_options((char *) data, s)) { in qnx6_fill_super()
326 if (test_opt(s, MMI_FS)) { in qnx6_fill_super()
327 sb1 = qnx6_mmi_fill_super(s, silent); in qnx6_fill_super()
333 sbi = QNX6_SB(s); in qnx6_fill_super()
337 bh1 = qnx6_check_first_superblock(s, in qnx6_fill_super()
341 bh1 = qnx6_check_first_superblock(s, 0, silent); in qnx6_fill_super()
352 qnx6_superblock_debug(sb1, s); in qnx6_fill_super()
363 if (!sb_set_blocksize(s, fs32_to_cpu(sbi, sb1->sb_blocksize))) { in qnx6_fill_super()
369 bh1 = sb_bread(s, bootblock_offset >> s->s_blocksize_bits); in qnx6_fill_super()
376 (bootblock_offset >> s->s_blocksize_bits) + in qnx6_fill_super()
377 (QNX6_SUPERBLOCK_AREA >> s->s_blocksize_bits); in qnx6_fill_super()
380 sbi->s_blks_off = (bootblock_offset >> s->s_blocksize_bits) + in qnx6_fill_super()
381 (QNX6_SUPERBLOCK_AREA >> s->s_blocksize_bits); in qnx6_fill_super()
384 bh2 = sb_bread(s, offset); in qnx6_fill_super()
429 s->s_op = &qnx6_sops; in qnx6_fill_super()
430 s->s_magic = QNX6_SUPER_MAGIC; in qnx6_fill_super()
431 s->s_flags |= SB_RDONLY; /* Yup, read-only yet */ in qnx6_fill_super()
432 s->s_time_min = 0; in qnx6_fill_super()
433 s->s_time_max = U32_MAX; in qnx6_fill_super()
436 sbi = QNX6_SB(s); in qnx6_fill_super()
437 sbi->s_ptrbits = ilog2(s->s_blocksize / 4); in qnx6_fill_super()
438 sbi->inodes = qnx6_private_inode(s, &sb1->Inode); in qnx6_fill_super()
441 sbi->longfile = qnx6_private_inode(s, &sb1->Longfile); in qnx6_fill_super()
446 root = qnx6_iget(s, QNX6_ROOT_INO); in qnx6_fill_super()
454 s->s_root = d_make_root(root); in qnx6_fill_super()
455 if (!s->s_root) in qnx6_fill_super()
459 errmsg = qnx6_checkroot(s); in qnx6_fill_super()
468 dput(s->s_root); in qnx6_fill_super()
469 s->s_root = NULL; in qnx6_fill_super()
481 s->s_fs_info = NULL; in qnx6_fill_super()
506 static struct inode *qnx6_private_inode(struct super_block *s, in qnx6_private_inode() argument
509 struct inode *inode = new_inode(s); in qnx6_private_inode()
512 struct qnx6_sb_info *sbi = QNX6_SB(s); in qnx6_private_inode()