/linux-6.6.21/fs/ext4/ |
D | orphan.c | 14 struct ext4_orphan_info *oi = &EXT4_SB(inode->i_sb)->s_orphan_info; in ext4_orphan_file_add() 102 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_orphan_add() 194 struct ext4_orphan_info *oi = &EXT4_SB(inode->i_sb)->s_orphan_info; in ext4_orphan_file_del() 231 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_orphan_del() 317 rcu_dereference_protected(EXT4_SB(sb)->s_qf_names[type], in ext4_quota_on_mount() 319 EXT4_SB(sb)->s_jquota_fmt, type); in ext4_quota_on_mount() 390 struct ext4_orphan_info *oi = &EXT4_SB(sb)->s_orphan_info; in ext4_orphan_cleanup() 411 if (EXT4_SB(sb)->s_mount_state & EXT4_ERROR_FS) { in ext4_orphan_cleanup() 443 if (EXT4_SB(sb)->s_qf_names[i]) { in ext4_orphan_cleanup() 461 if (EXT4_SB(sb)->s_mount_state & EXT4_ERROR_FS) { in ext4_orphan_cleanup() [all …]
|
D | balloc.c | 42 le32_to_cpu(EXT4_SB(sb)->s_es->s_first_data_block)) >> in ext4_get_group_number() 56 struct ext4_super_block *es = EXT4_SB(sb)->s_es; in ext4_get_group_no_and_offset() 61 EXT4_SB(sb)->s_cluster_bits; in ext4_get_group_no_and_offset() 97 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_num_overhead_clusters() 175 blocks = ext4_blocks_count(EXT4_SB(sb)->s_es) - in num_clusters_in_group() 179 return EXT4_NUM_B2C(EXT4_SB(sb), blocks); in num_clusters_in_group() 189 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_init_block_bitmap() 274 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_get_group_desc() 330 if (unlikely(group >= EXT4_SB(sb)->s_groups_count)) in ext4_get_group_info() 334 grp_info = sbi_array_rcu_deref(EXT4_SB(sb), s_group_info, indexv); in ext4_get_group_info() [all …]
|
D | resize.c | 50 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_resize_begin() 60 if (EXT4_SB(sb)->s_es->s_reserved_gdt_blocks && in ext4_resize_begin() 72 le32_to_cpu(EXT4_SB(sb)->s_es->s_first_data_block)) { in ext4_resize_begin() 74 (unsigned long long)EXT4_SB(sb)->s_sbh->b_blocknr); in ext4_resize_begin() 82 if (EXT4_SB(sb)->s_mount_state & EXT4_ERROR_FS) { in ext4_resize_begin() 94 &EXT4_SB(sb)->s_ext4_flags)) in ext4_resize_begin() 102 clear_bit_unlock(EXT4_FLAGS_RESIZING, &EXT4_SB(sb)->s_ext4_flags); in ext4_resize_end() 127 le16_to_cpu(EXT4_SB(sb)->s_es->s_reserved_gdt_blocks); in ext4_group_overhead_blocks() 137 struct ext4_sb_info *sbi = EXT4_SB(sb); in verify_group_input() 374 unsigned int itb = EXT4_SB(sb)->s_itb_per_group; in ext4_alloc_group_tables() [all …]
|
D | mmp.c | 13 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_mmp_csum() 139 struct ext4_super_block *es = EXT4_SB(sb)->s_es; in kmmpd() 140 struct buffer_head *bh = EXT4_SB(sb)->s_mmp_bh; in kmmpd() 282 struct ext4_super_block *es = EXT4_SB(sb)->s_es; in ext4_multi_mount_protect() 383 EXT4_SB(sb)->s_mmp_bh = bh; in ext4_multi_mount_protect() 392 EXT4_SB(sb)->s_mmp_tsk = kthread_run(kmmpd, sb, "kmmpd-%.*s", in ext4_multi_mount_protect() 395 if (IS_ERR(EXT4_SB(sb)->s_mmp_tsk)) { in ext4_multi_mount_protect() 396 EXT4_SB(sb)->s_mmp_tsk = NULL; in ext4_multi_mount_protect()
|
D | bitmap.c | 25 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_inode_bitmap_csum_verify() 46 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_inode_bitmap_csum_set() 63 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_block_bitmap_csum_verify() 86 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_block_bitmap_csum_set()
|
D | ioctl.c | 60 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_update_primary_sb() 195 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_update_superblocks_fn() 340 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_reset_inode_seed() 745 EXT4_SB(sb)->s_want_extra_isize, in ext4_ioctl_setproject() 799 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_force_shutdown() 956 if (EXT4_SB(sb)->s_journal) { in ext4_ioctl_group_add() 957 jbd2_journal_lock_updates(EXT4_SB(sb)->s_journal); in ext4_ioctl_group_add() 958 err2 = jbd2_journal_flush(EXT4_SB(sb)->s_journal, 0); in ext4_ioctl_group_add() 959 jbd2_journal_unlock_updates(EXT4_SB(sb)->s_journal); in ext4_ioctl_group_add() 1071 if (!EXT4_SB(sb)->s_journal) in ext4_ioctl_checkpoint() [all …]
|
D | ext4.h | 342 EXT4_SB(s)->s_cluster_bits) 345 # define EXT4_CLUSTER_BITS(s) (EXT4_SB(s)->s_cluster_bits) 350 #define EXT4_ADDR_PER_BLOCK_BITS(s) (EXT4_SB(s)->s_addr_per_block_bits) 351 #define EXT4_INODE_SIZE(s) (EXT4_SB(s)->s_inode_size) 352 #define EXT4_FIRST_INO(s) (EXT4_SB(s)->s_first_ino) 444 #define EXT4_DESC_SIZE(s) (EXT4_SB(s)->s_desc_size) 446 # define EXT4_BLOCKS_PER_GROUP(s) (EXT4_SB(s)->s_blocks_per_group) 447 # define EXT4_CLUSTERS_PER_GROUP(s) (EXT4_SB(s)->s_clusters_per_group) 448 # define EXT4_DESC_PER_BLOCK(s) (EXT4_SB(s)->s_desc_per_block) 449 # define EXT4_INODES_PER_GROUP(s) (EXT4_SB(s)->s_inodes_per_group) [all …]
|
D | fast_commit.c | 209 __releases(&EXT4_SB(inode->i_sb)->s_fc_lock) in ext4_fc_wait_committing_inode() 225 lockdep_assert_held(&EXT4_SB(inode->i_sb)->s_fc_lock); in ext4_fc_wait_committing_inode() 227 spin_unlock(&EXT4_SB(inode->i_sb)->s_fc_lock); in ext4_fc_wait_committing_inode() 235 (EXT4_SB(sb)->s_mount_state & EXT4_FC_REPLAY)); in ext4_fc_disabled() 253 spin_lock(&EXT4_SB(inode->i_sb)->s_fc_lock); in ext4_fc_start_update() 263 spin_unlock(&EXT4_SB(inode->i_sb)->s_fc_lock); in ext4_fc_start_update() 287 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_fc_del() 294 spin_lock(&EXT4_SB(inode->i_sb)->s_fc_lock); in ext4_fc_del() 296 spin_unlock(&EXT4_SB(inode->i_sb)->s_fc_lock); in ext4_fc_del() 340 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_fc_mark_ineligible() [all …]
|
D | super.c | 279 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_superblock_csum() 299 struct ext4_super_block *es = EXT4_SB(sb)->s_es; in ext4_superblock_csum_set() 454 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_maybe_update_superblock() 485 schedule_work(&EXT4_SB(sb)->s_sb_upd_work); in ext4_maybe_update_superblock() 507 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_journal_commit_callback() 656 struct ext4_sb_info *sbi = EXT4_SB(sb); in save_error_info() 705 journal_t *journal = EXT4_SB(sb)->s_journal; in ext4_handle_error() 708 EXT4_SB(sb)->s_mount_state |= EXT4_ERROR_FS; in ext4_handle_error() 713 set_bit(EXT4_FLAGS_SHUTDOWN, &EXT4_SB(sb)->s_ext4_flags); in ext4_handle_error() 727 schedule_work(&EXT4_SB(sb)->s_sb_upd_work); in ext4_handle_error() [all …]
|
D | block_validity.c | 152 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_protect_reserved_inode() 214 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_setup_system_zone() 287 system_blks = rcu_dereference_protected(EXT4_SB(sb)->s_system_blks, in ext4_release_system_zone() 289 rcu_assign_pointer(EXT4_SB(sb)->s_system_blks, NULL); in ext4_release_system_zone() 298 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_sb_block_valid() 357 le32_to_cpu(EXT4_SB(inode->i_sb)->s_es->s_journal_inum))) in ext4_check_blockref()
|
D | ext4_jbd2.c | 77 journal = EXT4_SB(sb)->s_journal; in ext4_journal_check_start() 109 journal = EXT4_SB(sb)->s_journal; in __ext4_journal_start_sb() 110 if (!journal || (EXT4_SB(sb)->s_mount_state & EXT4_FC_REPLAY)) in __ext4_journal_start_sb() 210 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_check_bdev_write_error() 252 &EXT4_SB(sb)->s_journal_triggers[trigger_type].tr_triggers); in __ext4_journal_get_write_access() 339 &EXT4_SB(sb)->s_journal_triggers[trigger_type].tr_triggers); in __ext4_journal_get_create_access()
|
D | fsmap.c | 89 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_getfsmap_helper() 197 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_getfsmap_datadev_helper() 259 journal_t *journal = EXT4_SB(sb)->s_journal; in ext4_getfsmap_logdev() 318 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_getfsmap_find_sb() 418 for (agno = 0; agno < EXT4_SB(sb)->s_groups_count; agno++) { in ext4_getfsmap_find_fixed_metadata() 447 EXT4_SB(sb)->s_itb_per_group, in ext4_getfsmap_find_fixed_metadata() 470 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_getfsmap_datadev() 579 if (EXT4_SB(sb)->s_journal_bdev && in ext4_getfsmap_is_valid_device() 580 fm->fmr_device == new_encode_dev(EXT4_SB(sb)->s_journal_bdev->bd_dev)) in ext4_getfsmap_is_valid_device() 650 if (EXT4_SB(sb)->s_journal_bdev) { in ext4_getfsmap() [all …]
|
D | extents_status.c | 313 if (EXT4_SB(inode->i_sb)->s_mount_state & EXT4_FC_REPLAY) in ext4_es_find_extent_range() 366 if (EXT4_SB(inode->i_sb)->s_mount_state & EXT4_FC_REPLAY) in ext4_es_scan_range() 394 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in __es_scan_clu() 412 if (EXT4_SB(inode->i_sb)->s_mount_state & EXT4_FC_REPLAY) in ext4_es_scan_clu() 425 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_es_list_add() 441 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_es_list_del() 497 percpu_counter_inc(&EXT4_SB(inode->i_sb)-> in ext4_es_init_extent() 502 percpu_counter_inc(&EXT4_SB(inode->i_sb)->s_es_stats.es_stats_all_cnt); in ext4_es_init_extent() 513 percpu_counter_dec(&EXT4_SB(inode->i_sb)->s_es_stats.es_stats_all_cnt); in ext4_es_free_extent() 520 percpu_counter_dec(&EXT4_SB(inode->i_sb)-> in ext4_es_free_extent() [all …]
|
D | mballoc.c | 544 bb = e4b->bd_buddy + EXT4_SB(e4b->bd_sb)->s_mb_offsets[order]; in mb_find_buddy() 545 *max = EXT4_SB(e4b->bd_sb)->s_mb_maxs[order]; in mb_find_buddy() 565 blocknr += EXT4_C2B(EXT4_SB(sb), first + i); in mb_free_blocks_double() 789 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_mb_mark_free_simple() 841 struct ext4_sb_info *sbi = EXT4_SB(sb); in mb_update_avg_fragment_size() 875 struct ext4_sb_info *sbi = EXT4_SB(ac->ac_sb); in ext4_mb_choose_next_group_p2_aligned() 917 struct ext4_sb_info *sbi = EXT4_SB(ac->ac_sb); in ext4_mb_find_good_group_avg_frag_lists() 949 struct ext4_sb_info *sbi = EXT4_SB(ac->ac_sb); in ext4_mb_choose_next_group_goal_fast() 994 struct ext4_sb_info *sbi = EXT4_SB(ac->ac_sb); in ext4_mb_choose_next_group_best_avail() 1148 struct ext4_sb_info *sbi = EXT4_SB(sb); in mb_set_largest_free_order() [all …]
|
D | ext4_jbd2.h | 19 #define EXT4_JOURNAL(inode) (EXT4_SB((inode)->i_sb)->s_journal) 179 EXT4_SB(handle->h_transaction->t_journal->j_private); in ext4_journal_callback_add() 200 EXT4_SB(handle->h_transaction->t_journal->j_private); in ext4_journal_callback_try_del() 297 return blocks * EXT4_SB(sb)->s_cluster_ratio; in ext4_free_metadata_revoke_credits() 488 return blocks + 2*(EXT4_SB(inode->i_sb)->s_cluster_ratio - 1); in ext4_free_data_revoke_credits()
|
D | inode.c | 55 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_inode_csum() 89 if (EXT4_SB(inode->i_sb)->s_es->s_creator_os != in ext4_inode_csum_verify() 110 if (EXT4_SB(inode->i_sb)->s_es->s_creator_os != in ext4_inode_csum_set() 335 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_da_update_reserve_space() 383 le32_to_cpu(EXT4_SB(inode->i_sb)->s_es->s_journal_inum))) in __check_block_validity() 505 if (!(EXT4_SB(inode->i_sb)->s_mount_state & EXT4_FC_REPLAY) && in ext4_map_blocks() 825 ASSERT((EXT4_SB(inode->i_sb)->s_mount_state & EXT4_FC_REPLAY) in ext4_getblk() 846 ASSERT((EXT4_SB(inode->i_sb)->s_mount_state & EXT4_FC_REPLAY) in ext4_getblk() 1457 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_da_reserve_space() 1485 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_da_release_space() [all …]
|
D | crypto.c | 92 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_ioctl_get_encryption_pwsalt() 227 return EXT4_SB(sb)->s_dummy_enc_policy.policy; in ext4_get_dummy_policy() 238 *ino_bits_ret = 8 * sizeof(EXT4_SB(sb)->s_es->s_inodes_count); in ext4_get_ino_and_lblk_bits()
|
D | fsync.c | 101 journal_t *journal = EXT4_SB(inode->i_sb)->s_journal; in ext4_fsync_journal() 150 if (!EXT4_SB(inode->i_sb)->s_journal) { in ext4_sync_file()
|
D | ialloc.c | 87 if (EXT4_SB(sb)->s_mount_state & EXT4_FC_REPLAY) in ext4_validate_inode_bitmap() 127 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_read_inode_bitmap() 266 sbi = EXT4_SB(sb); in ext4_free_inode() 382 struct flex_groups *fg = sbi_array_rcu_deref(EXT4_SB(sb), in get_orlov_stats() 428 struct ext4_sb_info *sbi = EXT4_SB(sb); in find_group_orlov() 575 int flex_size = ext4_flex_bg_size(EXT4_SB(sb)); in find_group_other() 679 int inodes_per_block = EXT4_SB(sb)->s_inodes_per_block; in recently_deleted() 720 bool check_recently_deleted = EXT4_SB(sb)->s_journal == NULL; in find_inode_bit() 753 unsigned long max_ino = le32_to_cpu(EXT4_SB(sb)->s_es->s_inodes_count); in ext4_mark_inode_used() 951 sbi = EXT4_SB(sb); in __ext4_new_inode() [all …]
|
D | xattr.c | 136 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_xattr_block_csum() 493 hash = ext4_xattr_inode_hash(EXT4_SB(ea_inode->i_sb), buffer, size); in ext4_xattr_inode_verify_hashes() 652 end = (void *)raw_inode + EXT4_SB(inode->i_sb)->s_inode_size; in ext4_xattr_ibody_get() 796 end = (void *)raw_inode + EXT4_SB(inode->i_sb)->s_inode_size; in ext4_xattr_ibody_list() 852 BUFFER_TRACE(EXT4_SB(sb)->s_sbh, "get_write_access"); in ext4_xattr_update_super_block() 853 if (ext4_journal_get_write_access(handle, sb, EXT4_SB(sb)->s_sbh, in ext4_xattr_update_super_block() 855 lock_buffer(EXT4_SB(sb)->s_sbh); in ext4_xattr_update_super_block() 858 unlock_buffer(EXT4_SB(sb)->s_sbh); in ext4_xattr_update_super_block() 859 ext4_handle_dirty_metadata(handle, NULL, EXT4_SB(sb)->s_sbh); in ext4_xattr_update_super_block() 882 end = (void *)raw_inode + EXT4_SB(inode->i_sb)->s_inode_size; in ext4_get_inode_usage() [all …]
|
D | file.c | 261 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_generic_write_checks() 785 struct dax_device *dax_dev = EXT4_SB(inode->i_sb)->s_daxdev; in ext4_file_mmap() 810 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_sample_last_mounted() 904 maxbytes = EXT4_SB(inode->i_sb)->s_bitmap_maxbytes; in ext4_llseek()
|
D | sysfs.c | 78 EXT4_SB(sb)->s_sectors_written_start) >> 1))); in lifetime_write_kbytes_show() 527 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_register_sysfs() 561 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_unregister_sysfs()
|
D | mballoc.h | 233 (fex->fe_start << EXT4_SB(sb)->s_cluster_bits); in ext4_grp_offs_to_block()
|
D | extents.c | 53 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_extent_block_csum() 1317 struct ext4_super_block *es = EXT4_SB(inode->i_sb)->s_es; in ext4_ext_grow_indepth() 2416 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_rereserve_cluster() 2435 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_remove_blocks() 2571 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_ext_rm_leaf() 2792 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_ext_remove_space() 3075 spin_lock_init(&EXT4_SB(sb)->s_ext_stats_lock); in ext4_ext_init() 3076 EXT4_SB(sb)->s_ext_min = 1 << 30; in ext4_ext_init() 3077 EXT4_SB(sb)->s_ext_max = 0; in ext4_ext_init() 3091 if (EXT4_SB(sb)->s_ext_blocks && EXT4_SB(sb)->s_ext_extents) { in ext4_ext_release() [all …]
|
D | namei.c | 61 if (unlikely(EXT4_SB(inode->i_sb)->s_max_dir_size_kb && in ext4_append() 63 EXT4_SB(inode->i_sb)->s_max_dir_size_kb))) in ext4_append() 378 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_dirblock_csum() 474 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_dx_csum() 852 hinfo->hash_version += EXT4_SB(dir->i_sb)->s_hash_unsigned; in dx_probe() 853 hinfo->seed = EXT4_SB(dir->i_sb)->s_hash_seed; in dx_probe() 1203 EXT4_SB(dir->i_sb)->s_def_hash_version; in ext4_htree_fill_tree() 1206 EXT4_SB(dir->i_sb)->s_hash_unsigned; in ext4_htree_fill_tree() 1207 hinfo.seed = EXT4_SB(dir->i_sb)->s_hash_seed; in ext4_htree_fill_tree() 2307 EXT4_SB(dir->i_sb)->s_def_hash_version; in make_indexed_dir() [all …]
|