/linux-4.19.296/fs/ext4/ |
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() 94 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_num_overhead_clusters() 171 blocks = ext4_blocks_count(EXT4_SB(sb)->s_es) - in num_clusters_in_group() 175 return EXT4_NUM_B2C(EXT4_SB(sb), blocks); in num_clusters_in_group() 185 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_init_block_bitmap() 272 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_get_group_desc() 331 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_valid_block_bitmap() 443 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_read_block_bitmap_nowait() [all …]
|
D | resize.c | 49 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_resize_begin() 59 if (EXT4_SB(sb)->s_es->s_reserved_gdt_blocks && in ext4_resize_begin() 71 le32_to_cpu(EXT4_SB(sb)->s_es->s_first_data_block)) { in ext4_resize_begin() 73 (unsigned long long)EXT4_SB(sb)->s_sbh->b_blocknr); in ext4_resize_begin() 81 if (EXT4_SB(sb)->s_mount_state & EXT4_ERROR_FS) { in ext4_resize_begin() 93 &EXT4_SB(sb)->s_ext4_flags)) in ext4_resize_begin() 101 clear_bit_unlock(EXT4_FLAGS_RESIZING, &EXT4_SB(sb)->s_ext4_flags); in ext4_resize_end() 123 le16_to_cpu(EXT4_SB(sb)->s_es->s_reserved_gdt_blocks); in ext4_group_overhead_blocks() 133 struct ext4_sb_info *sbi = EXT4_SB(sb); in verify_group_input() 362 unsigned int itb = EXT4_SB(sb)->s_itb_per_group; in ext4_alloc_group_tables() [all …]
|
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() 89 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_block_bitmap_csum_set()
|
D | super.c | 178 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_superblock_csum() 198 struct ext4_super_block *es = EXT4_SB(sb)->s_es; in ext4_superblock_csum_set() 360 struct ext4_super_block *es = EXT4_SB(sb)->s_es; in __save_error_info() 362 EXT4_SB(sb)->s_mount_state |= EXT4_ERROR_FS; in __save_error_info() 383 mod_timer(&EXT4_SB(sb)->s_err_report, jiffies + 24*60*60*HZ); in __save_error_info() 414 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_journal_commit_callback() 457 journal_t *journal = EXT4_SB(sb)->s_journal; in ext4_handle_error() 465 EXT4_SB(sb)->s_mount_flags |= EXT4_MF_FS_ABORTED; in ext4_handle_error() 482 if (EXT4_SB(sb)->s_journal && in ext4_handle_error() 483 !(EXT4_SB(sb)->s_journal->j_flags & JBD2_REC_ERR)) in ext4_handle_error() [all …]
|
D | block_validity.c | 188 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_protect_reserved_inode() 250 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_setup_system_zone() 319 system_blks = rcu_dereference_protected(EXT4_SB(sb)->system_blks, in ext4_release_system_zone() 321 rcu_assign_pointer(EXT4_SB(sb)->system_blks, NULL); in ext4_release_system_zone() 339 system_blks = rcu_dereference(EXT4_SB(inode->i_sb)->system_blks); in ext4_inode_block_valid() 340 ret = ext4_data_block_valid_rcu(EXT4_SB(inode->i_sb), system_blks, in ext4_inode_block_valid() 349 struct ext4_super_block *es = EXT4_SB(inode->i_sb)->s_es; in ext4_check_blockref() 355 le32_to_cpu(EXT4_SB(inode->i_sb)->s_es->s_journal_inum))) in ext4_check_blockref()
|
D | mmp.c | 13 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_mmp_csum() 136 struct ext4_super_block *es = EXT4_SB(sb)->s_es; in kmmpd() 249 EXT4_SB(sb)->s_mmp_tsk = NULL; in kmmpd() 276 struct ext4_super_block *es = EXT4_SB(sb)->s_es; in ext4_multi_mount_protect() 379 EXT4_SB(sb)->s_mmp_tsk = kthread_run(kmmpd, mmpd_data, "kmmpd-%.*s", in ext4_multi_mount_protect() 383 if (IS_ERR(EXT4_SB(sb)->s_mmp_tsk)) { in ext4_multi_mount_protect() 384 EXT4_SB(sb)->s_mmp_tsk = NULL; in ext4_multi_mount_protect()
|
D | ext4.h | 269 EXT4_SB(s)->s_cluster_bits) 272 # define EXT4_CLUSTER_BITS(s) (EXT4_SB(s)->s_cluster_bits) 277 #define EXT4_ADDR_PER_BLOCK_BITS(s) (EXT4_SB(s)->s_addr_per_block_bits) 278 #define EXT4_INODE_SIZE(s) (EXT4_SB(s)->s_inode_size) 279 #define EXT4_FIRST_INO(s) (EXT4_SB(s)->s_first_ino) 368 #define EXT4_DESC_SIZE(s) (EXT4_SB(s)->s_desc_size) 370 # define EXT4_BLOCKS_PER_GROUP(s) (EXT4_SB(s)->s_blocks_per_group) 371 # define EXT4_CLUSTERS_PER_GROUP(s) (EXT4_SB(s)->s_clusters_per_group) 372 # define EXT4_DESC_PER_BLOCK(s) (EXT4_SB(s)->s_desc_per_block) 373 # define EXT4_INODES_PER_GROUP(s) (EXT4_SB(s)->s_inodes_per_group) [all …]
|
D | fsync.c | 97 journal_t *journal = EXT4_SB(inode->i_sb)->s_journal; in ext4_sync_file() 102 if (unlikely(ext4_forced_shutdown(EXT4_SB(inode->i_sb)))) in ext4_sync_file() 112 if (EXT4_SB(inode->i_sb)->s_mount_flags & EXT4_MF_FS_ABORTED) in ext4_sync_file()
|
D | ioctl.c | 92 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in reset_inode_seed() 464 EXT4_SB(sb)->s_want_extra_isize, in ext4_ioctl_setproject() 562 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_shutdown() 714 if (EXT4_SB(sb)->s_journal) { in ext4_ioctl_group_add() 715 jbd2_journal_lock_updates(EXT4_SB(sb)->s_journal); in ext4_ioctl_group_add() 716 err2 = jbd2_journal_flush(EXT4_SB(sb)->s_journal); in ext4_ioctl_group_add() 717 jbd2_journal_unlock_updates(EXT4_SB(sb)->s_journal); in ext4_ioctl_group_add() 875 err = ext4_group_extend(sb, EXT4_SB(sb)->s_es, n_blocks_count); in ext4_ioctl() 876 if (EXT4_SB(sb)->s_journal) { in ext4_ioctl() 877 jbd2_journal_lock_updates(EXT4_SB(sb)->s_journal); in ext4_ioctl() [all …]
|
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 | ext4_jbd2.c | 48 if (unlikely(ext4_forced_shutdown(EXT4_SB(sb)))) in ext4_journal_check_start() 54 journal = EXT4_SB(sb)->s_journal; in ext4_journal_check_start() 78 journal = EXT4_SB(sb)->s_journal; in __ext4_journal_start_sb() 304 es = EXT4_SB(inode->i_sb)->s_es; in __ext4_handle_dirty_metadata() 320 struct buffer_head *bh = EXT4_SB(sb)->s_sbh; in __ext4_handle_dirty_super()
|
D | file.c | 68 if (unlikely(ext4_forced_shutdown(EXT4_SB(file_inode(iocb->ki_filp)->i_sb)))) in ext4_file_read_iter() 178 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_write_checks() 228 if (unlikely(ext4_forced_shutdown(EXT4_SB(inode->i_sb)))) in ext4_file_write_iter() 377 if (unlikely(ext4_forced_shutdown(EXT4_SB(inode->i_sb)))) in ext4_file_mmap() 400 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_sample_last_mounted() 449 if (unlikely(ext4_forced_shutdown(EXT4_SB(inode->i_sb)))) in ext4_file_open() 485 maxbytes = EXT4_SB(inode->i_sb)->s_bitmap_maxbytes; in ext4_llseek()
|
D | mballoc.c | 447 bb = e4b->bd_buddy + EXT4_SB(e4b->bd_sb)->s_mb_offsets[order]; in mb_find_buddy() 448 *max = EXT4_SB(e4b->bd_sb)->s_mb_maxs[order]; in mb_find_buddy() 468 blocknr += EXT4_C2B(EXT4_SB(sb), first + i); in mb_free_blocks_double() 658 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_mb_mark_free_simple() 716 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_mb_generate_buddy() 976 struct inode *inode = EXT4_SB(sb)->s_buddy_cache; in ext4_mb_get_buddy_page_lock() 1110 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_mb_load_buddy_gfp() 1444 if (last + 1 < EXT4_SB(sb)->s_mb_maxs[0]) in mb_free_blocks() 1448 struct ext4_sb_info *sbi = EXT4_SB(sb); in mb_free_blocks() 1583 if (start + len < EXT4_SB(e4b->bd_sb)->s_mb_maxs[0]) in mb_mark_used() [all …]
|
D | inode.c | 56 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_inode_csum() 90 if (EXT4_SB(inode->i_sb)->s_es->s_creator_os != in ext4_inode_csum_verify() 111 if (EXT4_SB(inode->i_sb)->s_es->s_creator_os != in ext4_inode_csum_set() 235 journal_t *journal = EXT4_SB(inode->i_sb)->s_journal; in ext4_evict_inode() 376 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_da_update_reserve_space() 424 le32_to_cpu(EXT4_SB(inode->i_sb)->s_es->s_journal_inum))) in __check_block_validity() 1272 if (unlikely(ext4_forced_shutdown(EXT4_SB(inode->i_sb)))) in ext4_write_begin() 1599 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_da_reserve_space() 1627 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_da_release_space() 1668 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_da_page_release_reservation() [all …]
|
D | extents_status.c | 301 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_es_list_add() 317 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_es_list_del() 346 percpu_counter_inc(&EXT4_SB(inode->i_sb)-> in ext4_es_alloc_extent() 351 percpu_counter_inc(&EXT4_SB(inode->i_sb)->s_es_stats.es_stats_all_cnt); in ext4_es_alloc_extent() 359 percpu_counter_dec(&EXT4_SB(inode->i_sb)->s_es_stats.es_stats_all_cnt); in ext4_es_free_extent() 366 percpu_counter_dec(&EXT4_SB(inode->i_sb)-> in ext4_es_free_extent() 727 if (err == -ENOMEM && __es_shrink(EXT4_SB(inode->i_sb), in ext4_es_insert_extent() 820 stats = &EXT4_SB(inode->i_sb)->s_es_stats; in ext4_es_lookup_extent() 887 __es_shrink(EXT4_SB(inode->i_sb), in __es_remove_extent() 1092 struct ext4_sb_info *sbi = EXT4_SB((struct super_block *) seq->private); in ext4_seq_es_shrinker_info_show()
|
D | ialloc.c | 121 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_read_inode_bitmap() 262 sbi = EXT4_SB(sb); in ext4_free_inode() 377 struct flex_groups *fg = sbi_array_rcu_deref(EXT4_SB(sb), in get_orlov_stats() 423 struct ext4_sb_info *sbi = EXT4_SB(sb); in find_group_orlov() 571 int flex_size = ext4_flex_bg_size(EXT4_SB(sb)); in find_group_other() 675 int inodes_per_block = EXT4_SB(sb)->s_inodes_per_block; in recently_deleted() 723 if ((EXT4_SB(sb)->s_journal == NULL) && in find_inode_bit() 771 sbi = EXT4_SB(sb); in __ext4_new_inode() 1209 unsigned long max_ino = le32_to_cpu(EXT4_SB(sb)->s_es->s_inodes_count); in ext4_orphan_get() 1287 es = EXT4_SB(sb)->s_es; in ext4_count_free_inodes() [all …]
|
D | ext4_jbd2.h | 19 #define EXT4_JOURNAL(inode) (EXT4_SB((inode)->i_sb)->s_journal) 182 EXT4_SB(handle->h_transaction->t_journal->j_private); in ext4_journal_callback_add() 203 EXT4_SB(handle->h_transaction->t_journal->j_private); in ext4_journal_callback_try_del()
|
D | xattr.c | 136 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_xattr_block_csum() 475 hash = ext4_xattr_inode_hash(EXT4_SB(ea_inode->i_sb), buffer, size); in ext4_xattr_inode_verify_hashes() 620 end = (void *)raw_inode + EXT4_SB(inode->i_sb)->s_inode_size; in ext4_xattr_ibody_get() 672 if (unlikely(ext4_forced_shutdown(EXT4_SB(inode->i_sb)))) in ext4_xattr_get() 765 end = (void *)raw_inode + EXT4_SB(inode->i_sb)->s_inode_size; in ext4_xattr_ibody_list() 821 BUFFER_TRACE(EXT4_SB(sb)->s_sbh, "get_write_access"); in ext4_xattr_update_super_block() 822 if (ext4_journal_get_write_access(handle, EXT4_SB(sb)->s_sbh) == 0) { in ext4_xattr_update_super_block() 847 end = (void *)raw_inode + EXT4_SB(inode->i_sb)->s_inode_size; in ext4_get_inode_usage() 886 size_t cluster_size = 1 << (EXT4_SB(sb)->s_cluster_bits + in round_up_cluster() 1339 dquot_free_block(inode, EXT4_C2B(EXT4_SB(inode->i_sb), 1)); in ext4_xattr_release_block() [all …]
|
D | sysfs.c | 76 EXT4_SB(sb)->s_sectors_written_start) >> 1))); in lifetime_write_kbytes_show() 380 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_register_sysfs() 408 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_unregister_sysfs()
|
D | mballoc.h | 199 (fex->fe_start << EXT4_SB(sb)->s_cluster_bits); in ext4_grp_offs_to_block()
|
D | extents.c | 52 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_extent_block_csum() 407 struct ext4_super_block *es = EXT4_SB(inode->i_sb)->s_es; in ext4_valid_extent_entries() 1298 struct ext4_super_block *es = EXT4_SB(inode->i_sb)->s_es; in ext4_ext_grow_indepth() 2528 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_remove_blocks() 2559 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_remove_blocks() 2644 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_ext_rm_leaf() 2849 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_ext_remove_space() 3120 spin_lock_init(&EXT4_SB(sb)->s_ext_stats_lock); in ext4_ext_init() 3121 EXT4_SB(sb)->s_ext_min = 1 << 30; in ext4_ext_init() 3122 EXT4_SB(sb)->s_ext_max = 0; in ext4_ext_init() [all …]
|
D | namei.c | 60 if (unlikely(EXT4_SB(inode->i_sb)->s_max_dir_size_kb && in ext4_append() 62 EXT4_SB(inode->i_sb)->s_max_dir_size_kb))) in ext4_append() 358 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_dirent_csum() 454 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_dx_csum() 795 hinfo->hash_version += EXT4_SB(dir->i_sb)->s_hash_unsigned; in dx_probe() 796 hinfo->seed = EXT4_SB(dir->i_sb)->s_hash_seed; in dx_probe() 1132 hinfo.hash_version = EXT4_SB(dir->i_sb)->s_def_hash_version; in ext4_htree_fill_tree() 1135 EXT4_SB(dir->i_sb)->s_hash_unsigned; in ext4_htree_fill_tree() 1136 hinfo.seed = EXT4_SB(dir->i_sb)->s_hash_seed; in ext4_htree_fill_tree() 2076 root->info.hash_version = EXT4_SB(dir->i_sb)->s_def_hash_version; in make_indexed_dir() [all …]
|
D | page-io.c | 163 if (ret < 0 && !ext4_forced_shutdown(EXT4_SB(inode->i_sb))) { in ext4_end_io() 202 struct ext4_sb_info *sbi = EXT4_SB(io_end->inode->i_sb); in ext4_add_complete_io()
|
D | move_extent.c | 408 if (*err == -EBUSY && retries++ < 4 && EXT4_SB(sb)->s_journal && in move_extent_per_page() 409 jbd2_journal_force_commit_nested(EXT4_SB(sb)->s_journal)) in move_extent_per_page()
|
D | migrate.c | 430 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_ext_migrate() 617 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_ind_migrate()
|