Lines Matching refs:sbi
84 struct jfs_sb_info *sbi = JFS_SBI(sb); in jfs_mount() local
104 sbi->ipaimap = ipaimap; in jfs_mount()
127 sbi->ipbmap = ipbmap; in jfs_mount()
148 if ((sbi->mntflag & JFS_BAD_SAIT) == 0) { in jfs_mount()
155 sbi->ipaimap2 = ipaimap2; in jfs_mount()
169 sbi->ipaimap2 = NULL; in jfs_mount()
187 sbi->ipimap = ipimap; in jfs_mount()
241 struct jfs_sb_info *sbi = JFS_SBI(sb); in jfs_mount_rw() local
250 if (chkSuper(sb) || (sbi->state != FM_CLEAN)) in jfs_mount_rw()
253 truncate_inode_pages(sbi->ipimap->i_mapping, 0); in jfs_mount_rw()
254 truncate_inode_pages(sbi->ipbmap->i_mapping, 0); in jfs_mount_rw()
255 diUnmount(sbi->ipimap, 1); in jfs_mount_rw()
256 if ((rc = diMount(sbi->ipimap))) { in jfs_mount_rw()
261 dbUnmount(sbi->ipbmap, 1); in jfs_mount_rw()
262 if ((rc = dbMount(sbi->ipbmap))) { in jfs_mount_rw()
304 struct jfs_sb_info *sbi = JFS_SBI(sb); in chkSuper() local
371 sbi->state = le32_to_cpu(j_sb->s_state); in chkSuper()
372 sbi->mntflag = le32_to_cpu(j_sb->s_flag); in chkSuper()
378 sbi->bsize = bsize; in chkSuper()
379 sbi->l2bsize = le16_to_cpu(j_sb->s_l2bsize); in chkSuper()
385 sbi->nbperpage = PSIZE >> sbi->l2bsize; in chkSuper()
386 sbi->l2nbperpage = L2PSIZE - sbi->l2bsize; in chkSuper()
387 sbi->l2niperblk = sbi->l2bsize - L2DISIZE; in chkSuper()
388 if (sbi->mntflag & JFS_INLINELOG) in chkSuper()
389 sbi->logpxd = j_sb->s_logpxd; in chkSuper()
391 sbi->logdev = new_decode_dev(le32_to_cpu(j_sb->s_logdev)); in chkSuper()
392 memcpy(sbi->uuid, j_sb->s_uuid, sizeof(sbi->uuid)); in chkSuper()
393 memcpy(sbi->loguuid, j_sb->s_loguuid, sizeof(sbi->uuid)); in chkSuper()
395 sbi->fsckpxd = j_sb->s_fsckpxd; in chkSuper()
396 sbi->ait2 = j_sb->s_ait2; in chkSuper()
412 struct jfs_sb_info *sbi = JFS_SBI(sb); in updateSuper() local
416 if (sbi->flag & JFS_NOINTEGRITY) { in updateSuper()
418 sbi->p_state = state; in updateSuper()
421 sbi->p_state = sbi->state; in updateSuper()
424 state = sbi->p_state; in updateSuper()
427 } else if (sbi->state == FM_DIRTY) in updateSuper()
436 sbi->state = state; in updateSuper()
440 j_sb->s_logdev = cpu_to_le32(new_encode_dev(sbi->log->bdev->bd_dev)); in updateSuper()
441 j_sb->s_logserial = cpu_to_le32(sbi->log->serial); in updateSuper()