Lines Matching refs:sbi
73 struct jfs_sb_info *sbi = JFS_SBI(sb); in jfs_mount() local
93 sbi->ipaimap = ipaimap; in jfs_mount()
116 sbi->ipbmap = ipbmap; in jfs_mount()
137 if ((sbi->mntflag & JFS_BAD_SAIT) == 0) { in jfs_mount()
144 sbi->ipaimap2 = ipaimap2; in jfs_mount()
158 sbi->ipaimap2 = NULL; in jfs_mount()
182 sbi->ipimap = ipimap; in jfs_mount()
223 struct jfs_sb_info *sbi = JFS_SBI(sb); in jfs_mount_rw() local
232 if (chkSuper(sb) || (sbi->state != FM_CLEAN)) in jfs_mount_rw()
235 truncate_inode_pages(sbi->ipimap->i_mapping, 0); in jfs_mount_rw()
236 truncate_inode_pages(sbi->ipbmap->i_mapping, 0); in jfs_mount_rw()
238 IWRITE_LOCK(sbi->ipimap, RDWRLOCK_IMAP); in jfs_mount_rw()
239 diUnmount(sbi->ipimap, 1); in jfs_mount_rw()
240 if ((rc = diMount(sbi->ipimap))) { in jfs_mount_rw()
241 IWRITE_UNLOCK(sbi->ipimap); in jfs_mount_rw()
245 IWRITE_UNLOCK(sbi->ipimap); in jfs_mount_rw()
247 dbUnmount(sbi->ipbmap, 1); in jfs_mount_rw()
248 if ((rc = dbMount(sbi->ipbmap))) { in jfs_mount_rw()
290 struct jfs_sb_info *sbi = JFS_SBI(sb); in chkSuper() local
355 sbi->state = le32_to_cpu(j_sb->s_state); in chkSuper()
356 sbi->mntflag = le32_to_cpu(j_sb->s_flag); in chkSuper()
362 sbi->bsize = bsize; in chkSuper()
363 sbi->l2bsize = le16_to_cpu(j_sb->s_l2bsize); in chkSuper()
366 if (sbi->l2bsize != ilog2((u32)bsize) || in chkSuper()
378 sbi->nbperpage = PSIZE >> sbi->l2bsize; in chkSuper()
379 sbi->l2nbperpage = L2PSIZE - sbi->l2bsize; in chkSuper()
380 sbi->l2niperblk = sbi->l2bsize - L2DISIZE; in chkSuper()
381 if (sbi->mntflag & JFS_INLINELOG) in chkSuper()
382 sbi->logpxd = j_sb->s_logpxd; in chkSuper()
384 sbi->logdev = new_decode_dev(le32_to_cpu(j_sb->s_logdev)); in chkSuper()
385 uuid_copy(&sbi->uuid, &j_sb->s_uuid); in chkSuper()
386 uuid_copy(&sbi->loguuid, &j_sb->s_loguuid); in chkSuper()
388 sbi->fsckpxd = j_sb->s_fsckpxd; in chkSuper()
389 sbi->ait2 = j_sb->s_ait2; in chkSuper()
405 struct jfs_sb_info *sbi = JFS_SBI(sb); in updateSuper() local
409 if (sbi->flag & JFS_NOINTEGRITY) { in updateSuper()
411 sbi->p_state = state; in updateSuper()
414 sbi->p_state = sbi->state; in updateSuper()
417 state = sbi->p_state; in updateSuper()
420 } else if (sbi->state == FM_DIRTY) in updateSuper()
429 sbi->state = state; in updateSuper()
434 new_encode_dev(file_bdev(sbi->log->bdev_file)->bd_dev)); in updateSuper()
435 j_sb->s_logserial = cpu_to_le32(sbi->log->serial); in updateSuper()