Lines Matching refs:sbp
130 xfs_sb_t *sbp, in xfs_sb_validate_fsb_count() argument
133 ASSERT(PAGE_SHIFT >= sbp->sb_blocklog); in xfs_sb_validate_fsb_count()
134 ASSERT(sbp->sb_blocklog >= BBSHIFT); in xfs_sb_validate_fsb_count()
137 if (nblocks >> (PAGE_SHIFT - sbp->sb_blocklog) > ULONG_MAX) in xfs_sb_validate_fsb_count()
154 struct xfs_sb *sbp = &mp->m_sb; in xfs_readsb() local
194 xfs_sb_from_disk(sbp, bp->b_addr); in xfs_readsb()
200 if (sbp->sb_magicnum != XFS_SB_MAGIC) { in xfs_readsb()
210 if (sector_size > sbp->sb_sectsize) { in xfs_readsb()
213 sector_size, sbp->sb_sectsize); in xfs_readsb()
224 sector_size = sbp->sb_sectsize; in xfs_readsb()
229 mp->m_features |= xfs_sb_version_to_features(sbp); in xfs_readsb()
256 struct xfs_sb *sbp = &mp->m_sb; in xfs_check_new_dalign() local
262 if (sbp->sb_rootino == calc_ino) { in xfs_check_new_dalign()
339 struct xfs_sb *sbp = &mp->m_sb; in xfs_update_alignment() local
345 if (sbp->sb_unit == mp->m_dalign && in xfs_update_alignment()
346 sbp->sb_width == mp->m_swidth) in xfs_update_alignment()
353 sbp->sb_unit = mp->m_dalign; in xfs_update_alignment()
354 sbp->sb_width = mp->m_swidth; in xfs_update_alignment()
357 mp->m_dalign = sbp->sb_unit; in xfs_update_alignment()
358 mp->m_swidth = sbp->sb_width; in xfs_update_alignment()
622 struct xfs_sb *sbp = &(mp->m_sb); in xfs_mountfs() local
630 xfs_sb_mount_common(mp, sbp); in xfs_mountfs()
648 if (xfs_sb_has_mismatched_features2(sbp)) { in xfs_mountfs()
650 sbp->sb_features2 |= sbp->sb_bad_features2; in xfs_mountfs()
722 max_t(uint32_t, sbp->sb_blocklog, mp->m_allocsize_log); in xfs_mountfs()
723 mp->m_allocsize_blocks = 1U << (mp->m_allocsize_log - sbp->sb_blocklog); in xfs_mountfs()
765 (get_unaligned_be16(&sbp->sb_uuid.b[8]) << 16) | in xfs_mountfs()
766 get_unaligned_be16(&sbp->sb_uuid.b[4]); in xfs_mountfs()
767 mp->m_fixedfsid[1] = get_unaligned_be32(&sbp->sb_uuid.b[0]); in xfs_mountfs()
783 error = xfs_initialize_perag(mp, sbp->sb_agcount, mp->m_sb.sb_dblocks, in xfs_mountfs()
790 if (XFS_IS_CORRUPT(mp, !sbp->sb_logblocks)) { in xfs_mountfs()
806 XFS_FSB_TO_DADDR(mp, sbp->sb_logstart), in xfs_mountfs()
807 XFS_FSB_TO_BB(mp, sbp->sb_logblocks)); in xfs_mountfs()
834 error = xfs_iget(mp, NULL, sbp->sb_rootino, XFS_IGET_UNTRUSTED, in xfs_mountfs()
839 sbp->sb_rootino, -error); in xfs_mountfs()