Lines Matching refs:sb
66 static int logMOUNT(struct super_block *sb);
81 int jfs_mount(struct super_block *sb) in jfs_mount() argument
84 struct jfs_sb_info *sbi = JFS_SBI(sb); in jfs_mount()
94 if ((rc = chkSuper(sb))) { in jfs_mount()
98 ipaimap = diReadSpecial(sb, AGGREGATE_I, 0); in jfs_mount()
119 ipbmap = diReadSpecial(sb, BMAP_I, 0); in jfs_mount()
149 ipaimap2 = diReadSpecial(sb, AGGREGATE_I, 1); in jfs_mount()
177 ipimap = diReadSpecial(sb, FILESYSTEM_I, 0); in jfs_mount()
239 int jfs_mount_rw(struct super_block *sb, int remount) in jfs_mount_rw() argument
241 struct jfs_sb_info *sbi = JFS_SBI(sb); in jfs_mount_rw()
250 if (chkSuper(sb) || (sbi->state != FM_CLEAN)) in jfs_mount_rw()
271 if ((rc = lmLogOpen(sb))) in jfs_mount_rw()
277 if ((rc = updateSuper(sb, FM_MOUNT))) { in jfs_mount_rw()
279 lmLogClose(sb); in jfs_mount_rw()
286 logMOUNT(sb); in jfs_mount_rw()
301 static int chkSuper(struct super_block *sb) in chkSuper() argument
304 struct jfs_sb_info *sbi = JFS_SBI(sb); in chkSuper()
313 if ((rc = readSuper(sb, &bh))) in chkSuper()
365 !(sb->s_flags & MS_RDONLY)) { in chkSuper()
409 int updateSuper(struct super_block *sb, uint state) in updateSuper() argument
412 struct jfs_sb_info *sbi = JFS_SBI(sb); in updateSuper()
430 if ((rc = readSuper(sb, &bh))) in updateSuper()
464 int readSuper(struct super_block *sb, struct buffer_head **bpp) in readSuper() argument
467 *bpp = sb_bread(sb, SUPER1_OFF >> sb->s_blocksize_bits); in readSuper()
472 *bpp = sb_bread(sb, SUPER2_OFF >> sb->s_blocksize_bits); in readSuper()
494 static int logMOUNT(struct super_block *sb) in logMOUNT() argument
496 struct jfs_log *log = JFS_SBI(sb)->log; in logMOUNT()
503 lrd.aggregate = cpu_to_le32(new_encode_dev(sb->s_bdev->bd_dev)); in logMOUNT()