• Home
  • Raw
  • Download

Lines Matching refs:es

65 					struct ext4_super_block *es);
67 struct ext4_super_block *es);
142 struct ext4_super_block *es) in ext4_verify_csum_type() argument
147 return es->s_checksum_type == EXT4_CRC32C_CHKSUM; in ext4_verify_csum_type()
151 struct ext4_super_block *es) in ext4_superblock_csum() argument
157 csum = ext4_chksum(sbi, ~0, (char *)es, offset); in ext4_superblock_csum()
163 struct ext4_super_block *es) in ext4_superblock_csum_verify() argument
168 return es->s_checksum == ext4_superblock_csum(sb, es); in ext4_superblock_csum_verify()
173 struct ext4_super_block *es = EXT4_SB(sb)->s_es; in ext4_superblock_csum_set() local
178 es->s_checksum = ext4_superblock_csum(sb, es); in ext4_superblock_csum_set()
317 struct ext4_super_block *es = EXT4_SB(sb)->s_es; in __save_error_info() local
322 es->s_state |= cpu_to_le16(EXT4_ERROR_FS); in __save_error_info()
323 es->s_last_error_time = cpu_to_le32(get_seconds()); in __save_error_info()
324 strncpy(es->s_last_error_func, func, sizeof(es->s_last_error_func)); in __save_error_info()
325 es->s_last_error_line = cpu_to_le32(line); in __save_error_info()
326 if (!es->s_first_error_time) { in __save_error_info()
327 es->s_first_error_time = es->s_last_error_time; in __save_error_info()
328 strncpy(es->s_first_error_func, func, in __save_error_info()
329 sizeof(es->s_first_error_func)); in __save_error_info()
330 es->s_first_error_line = cpu_to_le32(line); in __save_error_info()
331 es->s_first_error_ino = es->s_last_error_ino; in __save_error_info()
332 es->s_first_error_block = es->s_last_error_block; in __save_error_info()
338 if (!es->s_error_count) in __save_error_info()
340 le32_add_cpu(&es->s_error_count, 1); in __save_error_info()
460 struct ext4_super_block *es = EXT4_SB(inode->i_sb)->s_es; in __ext4_error_inode() local
462 es->s_last_error_ino = cpu_to_le32(inode->i_ino); in __ext4_error_inode()
463 es->s_last_error_block = cpu_to_le64(block); in __ext4_error_inode()
490 struct ext4_super_block *es; in __ext4_error_file() local
494 es = EXT4_SB(inode->i_sb)->s_es; in __ext4_error_file()
495 es->s_last_error_ino = cpu_to_le32(inode->i_ino); in __ext4_error_file()
696 struct ext4_super_block *es = EXT4_SB(sb)->s_es; in __ext4_grp_locked_error() local
698 es->s_last_error_ino = cpu_to_le32(ino); in __ext4_grp_locked_error()
699 es->s_last_error_block = cpu_to_le64(block); in __ext4_grp_locked_error()
742 struct ext4_super_block *es = EXT4_SB(sb)->s_es; in ext4_update_dynamic_rev() local
744 if (le32_to_cpu(es->s_rev_level) > EXT4_GOOD_OLD_REV) in ext4_update_dynamic_rev()
752 es->s_first_ino = cpu_to_le32(EXT4_GOOD_OLD_FIRST_INO); in ext4_update_dynamic_rev()
753 es->s_inode_size = cpu_to_le16(EXT4_GOOD_OLD_INODE_SIZE); in ext4_update_dynamic_rev()
754 es->s_rev_level = cpu_to_le32(EXT4_DYNAMIC_REV); in ext4_update_dynamic_rev()
828 struct ext4_super_block *es = sbi->s_es; in ext4_put_super() local
855 es->s_state = cpu_to_le16(sbi->s_mount_state); in ext4_put_super()
1958 struct ext4_super_block *es = sbi->s_es; in _ext4_show_options() local
1984 le16_to_cpu(es->s_def_resuid) != EXT4_DEF_RESUID) in _ext4_show_options()
1988 le16_to_cpu(es->s_def_resgid) != EXT4_DEF_RESGID) in _ext4_show_options()
1991 def_errors = nodefs ? -1 : le16_to_cpu(es->s_errors); in _ext4_show_options()
2049 static int ext4_setup_super(struct super_block *sb, struct ext4_super_block *es, in ext4_setup_super() argument
2055 if (le32_to_cpu(es->s_rev_level) > EXT4_MAX_SUPP_REV) { in ext4_setup_super()
2069 else if ((__s16) le16_to_cpu(es->s_max_mnt_count) > 0 && in ext4_setup_super()
2070 le16_to_cpu(es->s_mnt_count) >= in ext4_setup_super()
2071 (unsigned short) (__s16) le16_to_cpu(es->s_max_mnt_count)) in ext4_setup_super()
2075 else if (le32_to_cpu(es->s_checkinterval) && in ext4_setup_super()
2076 (le32_to_cpu(es->s_lastcheck) + in ext4_setup_super()
2077 le32_to_cpu(es->s_checkinterval) <= get_seconds())) in ext4_setup_super()
2082 es->s_state &= cpu_to_le16(~EXT4_VALID_FS); in ext4_setup_super()
2083 if (!(__s16) le16_to_cpu(es->s_max_mnt_count)) in ext4_setup_super()
2084 es->s_max_mnt_count = cpu_to_le16(EXT4_DFL_MAX_MNT_COUNT); in ext4_setup_super()
2085 le16_add_cpu(&es->s_mnt_count, 1); in ext4_setup_super()
2086 es->s_mtime = cpu_to_le32(get_seconds()); in ext4_setup_super()
2349 struct ext4_super_block *es) in ext4_orphan_cleanup() argument
2357 if (!es->s_last_orphan) { in ext4_orphan_cleanup()
2377 if (es->s_last_orphan && !(s_flags & MS_RDONLY)) { in ext4_orphan_cleanup()
2380 es->s_last_orphan = 0; in ext4_orphan_cleanup()
2423 while (es->s_last_orphan) { in ext4_orphan_cleanup()
2432 es->s_last_orphan = 0; in ext4_orphan_cleanup()
2436 inode = ext4_orphan_get(sb, le32_to_cpu(es->s_last_orphan)); in ext4_orphan_cleanup()
2438 es->s_last_orphan = 0; in ext4_orphan_cleanup()
2743 struct ext4_super_block *es; in print_daily_error_info() local
2746 es = sbi->s_es; in print_daily_error_info()
2748 if (es->s_error_count) in print_daily_error_info()
2751 le32_to_cpu(es->s_error_count)); in print_daily_error_info()
2752 if (es->s_first_error_time) { in print_daily_error_info()
2754 sb->s_id, le32_to_cpu(es->s_first_error_time), in print_daily_error_info()
2755 (int) sizeof(es->s_first_error_func), in print_daily_error_info()
2756 es->s_first_error_func, in print_daily_error_info()
2757 le32_to_cpu(es->s_first_error_line)); in print_daily_error_info()
2758 if (es->s_first_error_ino) in print_daily_error_info()
2760 le32_to_cpu(es->s_first_error_ino)); in print_daily_error_info()
2761 if (es->s_first_error_block) in print_daily_error_info()
2763 le64_to_cpu(es->s_first_error_block)); in print_daily_error_info()
2766 if (es->s_last_error_time) { in print_daily_error_info()
2768 sb->s_id, le32_to_cpu(es->s_last_error_time), in print_daily_error_info()
2769 (int) sizeof(es->s_last_error_func), in print_daily_error_info()
2770 es->s_last_error_func, in print_daily_error_info()
2771 le32_to_cpu(es->s_last_error_line)); in print_daily_error_info()
2772 if (es->s_last_error_ino) in print_daily_error_info()
2774 le32_to_cpu(es->s_last_error_ino)); in print_daily_error_info()
2775 if (es->s_last_error_block) in print_daily_error_info()
2777 le64_to_cpu(es->s_last_error_block)); in print_daily_error_info()
3258 struct ext4_super_block *es = sbi->s_es; in ext4_calculate_overhead() local
3260 unsigned int j_blocks, j_inum = le32_to_cpu(es->s_journal_inum); in ext4_calculate_overhead()
3277 overhead = EXT4_B2C(sbi, le32_to_cpu(es->s_first_data_block)); in ext4_calculate_overhead()
3348 struct ext4_super_block *es = NULL; in ext4_fill_super() local
3414 es = (struct ext4_super_block *) (bh->b_data + offset); in ext4_fill_super()
3415 sbi->s_es = es; in ext4_fill_super()
3416 sb->s_magic = le16_to_cpu(es->s_magic); in ext4_fill_super()
3419 sbi->s_kbytes_written = le64_to_cpu(es->s_kbytes_written); in ext4_fill_super()
3428 if (!ext4_verify_csum_type(sb, es)) { in ext4_fill_super()
3447 if (!ext4_superblock_csum_verify(sb, es)) { in ext4_fill_super()
3457 sbi->s_csum_seed = le32_to_cpu(es->s_checksum_seed); in ext4_fill_super()
3459 sbi->s_csum_seed = ext4_chksum(sbi, ~0, es->s_uuid, in ext4_fill_super()
3460 sizeof(es->s_uuid)); in ext4_fill_super()
3463 def_mount_opts = le32_to_cpu(es->s_default_mount_opts); in ext4_fill_super()
3498 sbi->s_resuid = make_kuid(&init_user_ns, le16_to_cpu(es->s_def_resuid)); in ext4_fill_super()
3499 sbi->s_resgid = make_kgid(&init_user_ns, le16_to_cpu(es->s_def_resgid)); in ext4_fill_super()
3573 if (le32_to_cpu(es->s_rev_level) == EXT4_GOOD_OLD_REV && in ext4_fill_super()
3581 if (es->s_creator_os == cpu_to_le32(EXT4_OS_HURD)) { in ext4_fill_super()
3620 blocksize = BLOCK_SIZE << le32_to_cpu(es->s_log_block_size); in ext4_fill_super()
3625 blocksize, le32_to_cpu(es->s_log_block_size)); in ext4_fill_super()
3628 if (le32_to_cpu(es->s_log_block_size) > in ext4_fill_super()
3632 le32_to_cpu(es->s_log_block_size)); in ext4_fill_super()
3649 if (ext4_has_feature_encrypt(sb) && es->s_encryption_level) { in ext4_fill_super()
3651 es->s_encryption_level); in ext4_fill_super()
3672 es = (struct ext4_super_block *)(bh->b_data + offset); in ext4_fill_super()
3673 sbi->s_es = es; in ext4_fill_super()
3674 if (es->s_magic != cpu_to_le16(EXT4_SUPER_MAGIC)) { in ext4_fill_super()
3686 if (le32_to_cpu(es->s_rev_level) == EXT4_GOOD_OLD_REV) { in ext4_fill_super()
3690 sbi->s_inode_size = le16_to_cpu(es->s_inode_size); in ext4_fill_super()
3691 sbi->s_first_ino = le32_to_cpu(es->s_first_ino); in ext4_fill_super()
3704 sbi->s_desc_size = le16_to_cpu(es->s_desc_size); in ext4_fill_super()
3717 sbi->s_blocks_per_group = le32_to_cpu(es->s_blocks_per_group); in ext4_fill_super()
3718 sbi->s_inodes_per_group = le32_to_cpu(es->s_inodes_per_group); in ext4_fill_super()
3733 sbi->s_mount_state = le16_to_cpu(es->s_state); in ext4_fill_super()
3738 sbi->s_hash_seed[i] = le32_to_cpu(es->s_hash_seed[i]); in ext4_fill_super()
3739 sbi->s_def_hash_version = es->s_def_hash_version; in ext4_fill_super()
3741 i = le32_to_cpu(es->s_flags); in ext4_fill_super()
3747 es->s_flags |= in ext4_fill_super()
3752 es->s_flags |= in ext4_fill_super()
3759 clustersize = BLOCK_SIZE << le32_to_cpu(es->s_log_cluster_size); in ext4_fill_super()
3768 if (le32_to_cpu(es->s_log_cluster_size) > in ext4_fill_super()
3772 le32_to_cpu(es->s_log_cluster_size)); in ext4_fill_super()
3775 sbi->s_cluster_bits = le32_to_cpu(es->s_log_cluster_size) - in ext4_fill_super()
3776 le32_to_cpu(es->s_log_block_size); in ext4_fill_super()
3778 le32_to_cpu(es->s_clusters_per_group); in ext4_fill_super()
3820 ext4_blocks_count(es)); in ext4_fill_super()
3834 if (blocks_count && ext4_blocks_count(es) > blocks_count) { in ext4_fill_super()
3837 ext4_blocks_count(es), blocks_count); in ext4_fill_super()
3845 if (le32_to_cpu(es->s_first_data_block) >= ext4_blocks_count(es)) { in ext4_fill_super()
3848 le32_to_cpu(es->s_first_data_block), in ext4_fill_super()
3849 ext4_blocks_count(es)); in ext4_fill_super()
3852 blocks_count = (ext4_blocks_count(es) - in ext4_fill_super()
3853 le32_to_cpu(es->s_first_data_block) + in ext4_fill_super()
3860 ext4_blocks_count(es), in ext4_fill_super()
3861 le32_to_cpu(es->s_first_data_block), in ext4_fill_super()
3871 if (le32_to_cpu(es->s_first_meta_bg) > db_count) { in ext4_fill_super()
3875 le32_to_cpu(es->s_first_meta_bg), db_count); in ext4_fill_super()
3937 memcpy(sb->s_uuid, es->s_uuid, sizeof(es->s_uuid)); in ext4_fill_super()
3944 needs_recovery = (es->s_last_orphan != 0 || in ext4_fill_super()
3948 if (ext4_multi_mount_protect(sb, le64_to_cpu(es->s_mmp_block))) in ext4_fill_super()
3956 err = ext4_load_journal(sb, es, journal_devnum); in ext4_fill_super()
4063 if (es->s_overhead_clusters) in ext4_fill_super()
4064 sbi->s_overhead = le32_to_cpu(es->s_overhead_clusters); in ext4_fill_super()
4107 if (ext4_setup_super(sb, es, sb->s_flags & MS_RDONLY)) in ext4_fill_super()
4116 le16_to_cpu(es->s_want_extra_isize)) in ext4_fill_super()
4118 le16_to_cpu(es->s_want_extra_isize); in ext4_fill_super()
4120 le16_to_cpu(es->s_min_extra_isize)) in ext4_fill_super()
4122 le16_to_cpu(es->s_min_extra_isize); in ext4_fill_super()
4202 ext4_orphan_cleanup(sb, es); in ext4_fill_super()
4206 ext4_mark_recovery_complete(sb, es); in ext4_fill_super()
4233 if (es->s_error_count) in ext4_fill_super()
4400 struct ext4_super_block *es; in ext4_get_dev_journal() local
4426 es = (struct ext4_super_block *) (bh->b_data + offset); in ext4_get_dev_journal()
4427 if ((le16_to_cpu(es->s_magic) != EXT4_SUPER_MAGIC) || in ext4_get_dev_journal()
4428 !(le32_to_cpu(es->s_feature_incompat) & in ext4_get_dev_journal()
4436 if ((le32_to_cpu(es->s_feature_ro_compat) & in ext4_get_dev_journal()
4438 es->s_checksum != ext4_superblock_csum(sb, es)) { in ext4_get_dev_journal()
4445 if (memcmp(EXT4_SB(sb)->s_es->s_journal_uuid, es->s_uuid, 16)) { in ext4_get_dev_journal()
4451 len = ext4_blocks_count(es); in ext4_get_dev_journal()
4486 struct ext4_super_block *es, in ext4_load_journal() argument
4490 unsigned int journal_inum = le32_to_cpu(es->s_journal_inum); in ext4_load_journal()
4498 journal_devnum != le32_to_cpu(es->s_journal_dev)) { in ext4_load_journal()
4503 journal_dev = new_decode_dev(le32_to_cpu(es->s_journal_dev)); in ext4_load_journal()
4548 memcpy(save, ((char *) es) + in ext4_load_journal()
4552 memcpy(((char *) es) + EXT4_S_ERR_START, in ext4_load_journal()
4564 ext4_clear_journal_err(sb, es); in ext4_load_journal()
4567 journal_devnum != le32_to_cpu(es->s_journal_dev)) { in ext4_load_journal()
4568 es->s_journal_dev = cpu_to_le32(journal_devnum); in ext4_load_journal()
4579 struct ext4_super_block *es = EXT4_SB(sb)->s_es; in ext4_commit_super() local
4596 es->s_wtime = cpu_to_le32(get_seconds()); in ext4_commit_super()
4598 es->s_kbytes_written = in ext4_commit_super()
4603 es->s_kbytes_written = in ext4_commit_super()
4606 ext4_free_blocks_count_set(es, in ext4_commit_super()
4610 es->s_free_inodes_count = in ext4_commit_super()
4656 struct ext4_super_block *es) in ext4_mark_recovery_complete() argument
4684 struct ext4_super_block *es) in ext4_clear_journal_err() argument
4709 es->s_state |= cpu_to_le16(EXT4_ERROR_FS); in ext4_clear_journal_err()
4852 struct ext4_super_block *es; in ext4_remount() local
4937 es = sbi->s_es; in ext4_remount()
4972 if (!(es->s_state & cpu_to_le16(EXT4_VALID_FS)) && in ext4_remount()
4974 es->s_state = cpu_to_le16(sbi->s_mount_state); in ext4_remount()
4977 ext4_mark_recovery_complete(sb, es); in ext4_remount()
5008 if (es->s_last_orphan) { in ext4_remount()
5024 ext4_clear_journal_err(sb, es); in ext4_remount()
5025 sbi->s_mount_state = le16_to_cpu(es->s_state); in ext4_remount()
5026 if (!ext4_setup_super(sb, es, 0)) in ext4_remount()
5030 le64_to_cpu(es->s_mmp_block))) { in ext4_remount()
5140 struct ext4_super_block *es = sbi->s_es; in ext4_statfs() local
5151 buf->f_blocks = ext4_blocks_count(es) - EXT4_C2B(sbi, overhead); in ext4_statfs()
5157 (ext4_r_blocks_count(es) + resv_blocks); in ext4_statfs()
5158 if (buf->f_bfree < (ext4_r_blocks_count(es) + resv_blocks)) in ext4_statfs()
5160 buf->f_files = le32_to_cpu(es->s_inodes_count); in ext4_statfs()
5163 fsid = le64_to_cpup((void *)es->s_uuid) ^ in ext4_statfs()
5164 le64_to_cpup((void *)es->s_uuid + sizeof(u64)); in ext4_statfs()