• Home
  • Raw
  • Download

Lines Matching refs:di

109 static int ocfs2_verify_volume(struct ocfs2_dinode *di,
730 struct ocfs2_dinode *di; in ocfs2_sb_probe() local
791 di = (struct ocfs2_dinode *) (*bh)->b_data; in ocfs2_sb_probe()
794 tmpstat = ocfs2_verify_volume(di, *bh, blksize, stats); in ocfs2_sb_probe()
2009 struct ocfs2_dinode *di = (struct ocfs2_dinode *)bh->b_data; in ocfs2_initialize_super() local
2033 cbits = le32_to_cpu(di->id2.i_super.s_clustersize_bits); in ocfs2_initialize_super()
2034 bbits = le32_to_cpu(di->id2.i_super.s_blocksize_bits); in ocfs2_initialize_super()
2036 memcpy(&sb->s_uuid, di->id2.i_super.s_uuid, in ocfs2_initialize_super()
2037 sizeof(di->id2.i_super.s_uuid)); in ocfs2_initialize_super()
2042 osb->osb_dx_seed[i] = le32_to_cpu(di->id2.i_super.s_dx_seed[i]); in ocfs2_initialize_super()
2043 osb->osb_dx_seed[3] = le32_to_cpu(di->id2.i_super.s_uuid_hash); in ocfs2_initialize_super()
2075 osb->max_slots = le16_to_cpu(di->id2.i_super.s_max_slots); in ocfs2_initialize_super()
2099 di->id2.i_super.s_xattr_inline_size); in ocfs2_initialize_super()
2142 le32_to_cpu(OCFS2_RAW_SB(di)->s_feature_compat); in ocfs2_initialize_super()
2144 le32_to_cpu(OCFS2_RAW_SB(di)->s_feature_ro_compat); in ocfs2_initialize_super()
2146 le32_to_cpu(OCFS2_RAW_SB(di)->s_feature_incompat); in ocfs2_initialize_super()
2169 OCFS2_RAW_SB(di)->s_cluster_info.ci_stackflags; in ocfs2_initialize_super()
2171 OCFS2_RAW_SB(di)->s_cluster_info.ci_stack, in ocfs2_initialize_super()
2182 OCFS2_RAW_SB(di)->s_cluster_info.ci_cluster, in ocfs2_initialize_super()
2224 le32_to_cpu(di->id2.i_super.s_clustersize_bits); in ocfs2_initialize_super()
2236 le32_to_cpu(di->i_clusters)); in ocfs2_initialize_super()
2247 if (ocfs2_setup_osb_uuid(osb, di->id2.i_super.s_uuid, in ocfs2_initialize_super()
2248 sizeof(di->id2.i_super.s_uuid))) { in ocfs2_initialize_super()
2254 strlcpy(osb->vol_label, di->id2.i_super.s_label, in ocfs2_initialize_super()
2256 osb->root_blkno = le64_to_cpu(di->id2.i_super.s_root_blkno); in ocfs2_initialize_super()
2257 osb->system_dir_blkno = le64_to_cpu(di->id2.i_super.s_system_dir_blkno); in ocfs2_initialize_super()
2259 le64_to_cpu(di->id2.i_super.s_first_cluster_group); in ocfs2_initialize_super()
2260 osb->fs_generation = le32_to_cpu(di->i_fs_generation); in ocfs2_initialize_super()
2261 osb->uuid_hash = le32_to_cpu(di->id2.i_super.s_uuid_hash); in ocfs2_initialize_super()
2323 static int ocfs2_verify_volume(struct ocfs2_dinode *di, in ocfs2_verify_volume() argument
2330 if (memcmp(di->i_signature, OCFS2_SUPER_BLOCK_SIGNATURE, in ocfs2_verify_volume()
2333 if (le32_to_cpu(di->id2.i_super.s_feature_incompat) & in ocfs2_verify_volume()
2337 &di->i_check, in ocfs2_verify_volume()
2343 if ((1 << le32_to_cpu(di->id2.i_super.s_blocksize_bits)) != blksz) { in ocfs2_verify_volume()
2346 1 << le32_to_cpu(di->id2.i_super.s_blocksize_bits), in ocfs2_verify_volume()
2348 } else if (le16_to_cpu(di->id2.i_super.s_major_rev_level) != in ocfs2_verify_volume()
2350 le16_to_cpu(di->id2.i_super.s_minor_rev_level) != in ocfs2_verify_volume()
2354 le16_to_cpu(di->id2.i_super.s_major_rev_level), in ocfs2_verify_volume()
2355 le16_to_cpu(di->id2.i_super.s_minor_rev_level), in ocfs2_verify_volume()
2358 } else if (bh->b_blocknr != le64_to_cpu(di->i_blkno)) { in ocfs2_verify_volume()
2361 (unsigned long long)le64_to_cpu(di->i_blkno), in ocfs2_verify_volume()
2363 } else if (le32_to_cpu(di->id2.i_super.s_clustersize_bits) < 12 || in ocfs2_verify_volume()
2364 le32_to_cpu(di->id2.i_super.s_clustersize_bits) > 20) { in ocfs2_verify_volume()
2366 1 << le32_to_cpu(di->id2.i_super.s_clustersize_bits)); in ocfs2_verify_volume()
2367 } else if (!le64_to_cpu(di->id2.i_super.s_root_blkno)) { in ocfs2_verify_volume()
2369 } else if (!le64_to_cpu(di->id2.i_super.s_system_dir_blkno)) { in ocfs2_verify_volume()
2371 } else if (le16_to_cpu(di->id2.i_super.s_max_slots) > OCFS2_MAX_SLOTS) { in ocfs2_verify_volume()
2375 le16_to_cpu(di->id2.i_super.s_max_slots), in ocfs2_verify_volume()