• Home
  • Raw
  • Download

Lines Matching full:dsb

54 	struct erofs_super_block *dsb;  in erofs_superblock_csum_verify()  local
57 dsb = kmemdup(sbdata + EROFS_SUPER_OFFSET, in erofs_superblock_csum_verify()
59 if (!dsb) in erofs_superblock_csum_verify()
62 expected_crc = le32_to_cpu(dsb->checksum); in erofs_superblock_csum_verify()
63 dsb->checksum = 0; in erofs_superblock_csum_verify()
65 crc = crc32c(~0, dsb, EROFS_BLKSIZ - EROFS_SUPER_OFFSET); in erofs_superblock_csum_verify()
66 kfree(dsb); in erofs_superblock_csum_verify()
109 struct erofs_super_block *dsb) in check_layout_compatibility() argument
111 const unsigned int feature = le32_to_cpu(dsb->feature_incompat); in check_layout_compatibility()
129 struct erofs_super_block *dsb; in erofs_read_superblock() local
143 dsb = (struct erofs_super_block *)(data + EROFS_SUPER_OFFSET); in erofs_read_superblock()
146 if (le32_to_cpu(dsb->magic) != EROFS_SUPER_MAGIC_V1) { in erofs_read_superblock()
151 sbi->feature_compat = le32_to_cpu(dsb->feature_compat); in erofs_read_superblock()
159 blkszbits = dsb->blkszbits; in erofs_read_superblock()
167 if (!check_layout_compatibility(sb, dsb)) in erofs_read_superblock()
170 sbi->blocks = le32_to_cpu(dsb->blocks); in erofs_read_superblock()
171 sbi->meta_blkaddr = le32_to_cpu(dsb->meta_blkaddr); in erofs_read_superblock()
173 sbi->xattr_blkaddr = le32_to_cpu(dsb->xattr_blkaddr); in erofs_read_superblock()
176 sbi->root_nid = le16_to_cpu(dsb->root_nid); in erofs_read_superblock()
177 sbi->inos = le64_to_cpu(dsb->inos); in erofs_read_superblock()
179 sbi->build_time = le64_to_cpu(dsb->build_time); in erofs_read_superblock()
180 sbi->build_time_nsec = le32_to_cpu(dsb->build_time_nsec); in erofs_read_superblock()
182 memcpy(&sb->s_uuid, dsb->uuid, sizeof(dsb->uuid)); in erofs_read_superblock()
184 ret = strscpy(sbi->volume_name, dsb->volume_name, in erofs_read_superblock()
185 sizeof(dsb->volume_name)); in erofs_read_superblock()