Home
last modified time | relevance | path

Searched refs:dsb (Results 1 – 3 of 3) sorted by relevance

/fs/erofs/
Dsuper.c82 struct erofs_super_block *dsb) in check_layout_compatibility() argument
84 const unsigned int feature = le32_to_cpu(dsb->feature_incompat); in check_layout_compatibility()
102 struct erofs_super_block *dsb; in erofs_read_superblock() local
116 dsb = (struct erofs_super_block *)(data + EROFS_SUPER_OFFSET); in erofs_read_superblock()
119 if (le32_to_cpu(dsb->magic) != EROFS_SUPER_MAGIC_V1) { in erofs_read_superblock()
124 blkszbits = dsb->blkszbits; in erofs_read_superblock()
132 if (!check_layout_compatibility(sb, dsb)) in erofs_read_superblock()
135 sbi->blocks = le32_to_cpu(dsb->blocks); in erofs_read_superblock()
136 sbi->meta_blkaddr = le32_to_cpu(dsb->meta_blkaddr); in erofs_read_superblock()
138 sbi->xattr_blkaddr = le32_to_cpu(dsb->xattr_blkaddr); in erofs_read_superblock()
[all …]
/fs/xfs/libxfs/
Dxfs_sb.c222 struct xfs_dsb *dsb = XFS_BUF_TO_SBP(bp); in xfs_validate_sb_common() local
226 if (!xfs_verify_magic(bp, dsb->sb_magicnum)) { in xfs_validate_sb_common()
683 struct xfs_dsb *dsb = XFS_BUF_TO_SBP(bp); in xfs_sb_read_verify() local
690 if (dsb->sb_magicnum == cpu_to_be32(XFS_SB_MAGIC) && in xfs_sb_read_verify()
691 (((be16_to_cpu(dsb->sb_versionnum) & XFS_SB_VERSION_NUMBITS) == in xfs_sb_read_verify()
693 dsb->sb_crc != 0)) { in xfs_sb_read_verify()
732 struct xfs_dsb *dsb = XFS_BUF_TO_SBP(bp); in xfs_sb_quiet_read_verify() local
734 if (dsb->sb_magicnum == cpu_to_be32(XFS_SB_MAGIC)) { in xfs_sb_quiet_read_verify()
Dxfs_ag.c231 struct xfs_dsb *dsb = XFS_BUF_TO_SBP(bp); in xfs_sbblock_init() local
233 xfs_sb_to_disk(dsb, &mp->m_sb); in xfs_sbblock_init()
234 dsb->sb_inprogress = 1; in xfs_sbblock_init()