Lines Matching refs:sbi
85 struct jfs_sb_info *sbi = JFS_SBI(sb); in jfs_mount() local
105 sbi->ipaimap = ipaimap; in jfs_mount()
128 sbi->ipbmap = ipbmap; in jfs_mount()
149 if ((sbi->mntflag & JFS_BAD_SAIT) == 0) { in jfs_mount()
156 sbi->ipaimap2 = ipaimap2; in jfs_mount()
170 sbi->ipaimap2 = NULL; in jfs_mount()
188 sbi->ipimap = ipimap; in jfs_mount()
235 struct jfs_sb_info *sbi = JFS_SBI(sb); in jfs_mount_rw() local
244 if (chkSuper(sb) || (sbi->state != FM_CLEAN)) in jfs_mount_rw()
247 truncate_inode_pages(sbi->ipimap->i_mapping, 0); in jfs_mount_rw()
248 truncate_inode_pages(sbi->ipbmap->i_mapping, 0); in jfs_mount_rw()
249 diUnmount(sbi->ipimap, 1); in jfs_mount_rw()
250 if ((rc = diMount(sbi->ipimap))) { in jfs_mount_rw()
255 dbUnmount(sbi->ipbmap, 1); in jfs_mount_rw()
256 if ((rc = dbMount(sbi->ipbmap))) { in jfs_mount_rw()
298 struct jfs_sb_info *sbi = JFS_SBI(sb); in chkSuper() local
365 sbi->state = le32_to_cpu(j_sb->s_state); in chkSuper()
366 sbi->mntflag = le32_to_cpu(j_sb->s_flag); in chkSuper()
372 sbi->bsize = bsize; in chkSuper()
373 sbi->l2bsize = le16_to_cpu(j_sb->s_l2bsize); in chkSuper()
376 if (sbi->l2bsize != ilog2((u32)bsize) || in chkSuper()
388 sbi->nbperpage = PSIZE >> sbi->l2bsize; in chkSuper()
389 sbi->l2nbperpage = L2PSIZE - sbi->l2bsize; in chkSuper()
390 sbi->l2niperblk = sbi->l2bsize - L2DISIZE; in chkSuper()
391 if (sbi->mntflag & JFS_INLINELOG) in chkSuper()
392 sbi->logpxd = j_sb->s_logpxd; in chkSuper()
394 sbi->logdev = new_decode_dev(le32_to_cpu(j_sb->s_logdev)); in chkSuper()
395 memcpy(sbi->uuid, j_sb->s_uuid, sizeof(sbi->uuid)); in chkSuper()
396 memcpy(sbi->loguuid, j_sb->s_loguuid, sizeof(sbi->uuid)); in chkSuper()
398 sbi->fsckpxd = j_sb->s_fsckpxd; in chkSuper()
399 sbi->ait2 = j_sb->s_ait2; in chkSuper()
415 struct jfs_sb_info *sbi = JFS_SBI(sb); in updateSuper() local
419 if (sbi->flag & JFS_NOINTEGRITY) { in updateSuper()
421 sbi->p_state = state; in updateSuper()
424 sbi->p_state = sbi->state; in updateSuper()
427 state = sbi->p_state; in updateSuper()
430 } else if (sbi->state == FM_DIRTY) in updateSuper()
439 sbi->state = state; in updateSuper()
443 j_sb->s_logdev = cpu_to_le32(new_encode_dev(sbi->log->bdev->bd_dev)); in updateSuper()
444 j_sb->s_logserial = cpu_to_le32(sbi->log->serial); in updateSuper()