Home
last modified time | relevance | path

Searched refs:EXT4_SB (Results 1 – 25 of 32) sorted by relevance

12

/linux-6.1.9/fs/ext4/
Dorphan.c14 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 …]
Dballoc.c42 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()
315 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_valid_block_bitmap()
373 if (EXT4_SB(sb)->s_mount_state & EXT4_FC_REPLAY) in ext4_validate_block_bitmap()
[all …]
Dresize.c50 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()
366 unsigned int itb = EXT4_SB(sb)->s_itb_per_group; in ext4_alloc_group_tables()
[all …]
Dmmp.c13 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_mmp_csum()
131 struct ext4_super_block *es = EXT4_SB(sb)->s_es; in kmmpd()
132 struct buffer_head *bh = EXT4_SB(sb)->s_mmp_bh; in kmmpd()
280 struct ext4_super_block *es = EXT4_SB(sb)->s_es; in ext4_multi_mount_protect()
371 EXT4_SB(sb)->s_mmp_bh = bh; in ext4_multi_mount_protect()
380 EXT4_SB(sb)->s_mmp_tsk = kthread_run(kmmpd, sb, "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()
Dbitmap.c25 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()
Dioctl.c60 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_update_primary_sb()
198 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_update_superblocks_fn()
343 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_reset_inode_seed()
746 EXT4_SB(sb)->s_want_extra_isize, in ext4_ioctl_setproject()
800 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_shutdown()
948 if (EXT4_SB(sb)->s_journal) { in ext4_ioctl_group_add()
949 jbd2_journal_lock_updates(EXT4_SB(sb)->s_journal); in ext4_ioctl_group_add()
950 err2 = jbd2_journal_flush(EXT4_SB(sb)->s_journal, 0); in ext4_ioctl_group_add()
951 jbd2_journal_unlock_updates(EXT4_SB(sb)->s_journal); in ext4_ioctl_group_add()
1063 if (!EXT4_SB(sb)->s_journal) in ext4_ioctl_checkpoint()
[all …]
Dext4_jbd2.c70 if (unlikely(ext4_forced_shutdown(EXT4_SB(sb)))) in ext4_journal_check_start()
76 journal = EXT4_SB(sb)->s_journal; in ext4_journal_check_start()
102 journal = EXT4_SB(sb)->s_journal; in __ext4_journal_start_sb()
103 if (!journal || (EXT4_SB(sb)->s_mount_state & EXT4_FC_REPLAY)) in __ext4_journal_start_sb()
203 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_check_bdev_write_error()
246 &EXT4_SB(sb)->s_journal_triggers[trigger_type].tr_triggers); in __ext4_journal_get_write_access()
333 &EXT4_SB(sb)->s_journal_triggers[trigger_type].tr_triggers); in __ext4_journal_get_create_access()
Dfast_commit.c209 __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 …]
Dext4.h289 EXT4_SB(s)->s_cluster_bits)
292 # define EXT4_CLUSTER_BITS(s) (EXT4_SB(s)->s_cluster_bits)
297 #define EXT4_ADDR_PER_BLOCK_BITS(s) (EXT4_SB(s)->s_addr_per_block_bits)
298 #define EXT4_INODE_SIZE(s) (EXT4_SB(s)->s_inode_size)
299 #define EXT4_FIRST_INO(s) (EXT4_SB(s)->s_first_ino)
391 #define EXT4_DESC_SIZE(s) (EXT4_SB(s)->s_desc_size)
393 # define EXT4_BLOCKS_PER_GROUP(s) (EXT4_SB(s)->s_blocks_per_group)
394 # define EXT4_CLUSTERS_PER_GROUP(s) (EXT4_SB(s)->s_clusters_per_group)
395 # define EXT4_DESC_PER_BLOCK(s) (EXT4_SB(s)->s_desc_per_block)
396 # define EXT4_INODES_PER_GROUP(s) (EXT4_SB(s)->s_inodes_per_group)
[all …]
Dextents_status.c314 if (EXT4_SB(inode->i_sb)->s_mount_state & EXT4_FC_REPLAY) in ext4_es_find_extent_range()
367 if (EXT4_SB(inode->i_sb)->s_mount_state & EXT4_FC_REPLAY) in ext4_es_scan_range()
395 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in __es_scan_clu()
413 if (EXT4_SB(inode->i_sb)->s_mount_state & EXT4_FC_REPLAY) in ext4_es_scan_clu()
426 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_es_list_add()
442 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_es_list_del()
471 percpu_counter_inc(&EXT4_SB(inode->i_sb)-> in ext4_es_alloc_extent()
476 percpu_counter_inc(&EXT4_SB(inode->i_sb)->s_es_stats.es_stats_all_cnt); in ext4_es_alloc_extent()
484 percpu_counter_dec(&EXT4_SB(inode->i_sb)->s_es_stats.es_stats_all_cnt); in ext4_es_free_extent()
491 percpu_counter_dec(&EXT4_SB(inode->i_sb)-> in ext4_es_free_extent()
[all …]
Dsuper.c278 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_superblock_csum()
298 struct ext4_super_block *es = EXT4_SB(sb)->s_es; in ext4_superblock_csum_set()
455 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_journal_commit_callback()
604 struct ext4_sb_info *sbi = EXT4_SB(sb); in save_error_info()
653 journal_t *journal = EXT4_SB(sb)->s_journal; in ext4_handle_error()
656 EXT4_SB(sb)->s_mount_state |= EXT4_ERROR_FS; in ext4_handle_error()
675 schedule_work(&EXT4_SB(sb)->s_error_work); in ext4_handle_error()
752 ___ratelimit(&(EXT4_SB(sb)->s_err_ratelimit_state), \
762 if (unlikely(ext4_forced_shutdown(EXT4_SB(sb)))) in __ext4_error()
787 if (unlikely(ext4_forced_shutdown(EXT4_SB(inode->i_sb)))) in __ext4_error_inode()
[all …]
Dblock_validity.c152 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()
Dfsmap.c89 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()
577 if (EXT4_SB(sb)->s_journal_bdev && in ext4_getfsmap_is_valid_device()
578 fm->fmr_device == new_encode_dev(EXT4_SB(sb)->s_journal_bdev->bd_dev)) in ext4_getfsmap_is_valid_device()
648 if (EXT4_SB(sb)->s_journal_bdev) { in ext4_getfsmap()
[all …]
Dinode.c55 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()
204 journal_t *journal = EXT4_SB(inode->i_sb)->s_journal; in ext4_evict_inode()
363 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_da_update_reserve_space()
411 le32_to_cpu(EXT4_SB(inode->i_sb)->s_es->s_journal_inum))) in __check_block_validity()
533 if (!(EXT4_SB(inode->i_sb)->s_mount_state & EXT4_FC_REPLAY) && in ext4_map_blocks()
858 ASSERT((EXT4_SB(inode->i_sb)->s_mount_state & EXT4_FC_REPLAY) in ext4_getblk()
879 ASSERT((EXT4_SB(inode->i_sb)->s_mount_state & EXT4_FC_REPLAY) in ext4_getblk()
1164 if (unlikely(ext4_forced_shutdown(EXT4_SB(inode->i_sb)))) in ext4_write_begin()
[all …]
Dmballoc.c533 bb = e4b->bd_buddy + EXT4_SB(e4b->bd_sb)->s_mb_offsets[order]; in mb_find_buddy()
534 *max = EXT4_SB(e4b->bd_sb)->s_mb_maxs[order]; in mb_find_buddy()
554 blocknr += EXT4_C2B(EXT4_SB(sb), first + i); in mb_free_blocks_double()
776 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_mb_mark_free_simple()
828 struct ext4_sb_info *sbi = EXT4_SB(sb); in mb_update_avg_fragment_size()
862 struct ext4_sb_info *sbi = EXT4_SB(ac->ac_sb); in ext4_mb_choose_next_group_cr0()
912 struct ext4_sb_info *sbi = EXT4_SB(ac->ac_sb); in ext4_mb_choose_next_group_cr1()
1030 struct ext4_sb_info *sbi = EXT4_SB(sb); in mb_set_largest_free_order()
1066 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_mb_generate_buddy()
1307 struct inode *inode = EXT4_SB(sb)->s_buddy_cache; in ext4_mb_get_buddy_page_lock()
[all …]
Dext4_jbd2.h19 #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()
Dcrypto.c88 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_ioctl_get_encryption_pwsalt()
223 return EXT4_SB(sb)->s_dummy_enc_policy.policy; in ext4_get_dummy_policy()
234 *ino_bits_ret = 8 * sizeof(EXT4_SB(sb)->s_es->s_inodes_count); in ext4_get_ino_and_lblk_bits()
Dfsync.c108 journal_t *journal = EXT4_SB(inode->i_sb)->s_journal; in ext4_fsync_journal()
134 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_sync_file()
Dialloc.c87 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()
952 sbi = EXT4_SB(sb); in __ext4_new_inode()
[all …]
Dfile.c134 if (unlikely(ext4_forced_shutdown(EXT4_SB(inode->i_sb)))) in ext4_file_read_iter()
246 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_generic_write_checks()
690 if (unlikely(ext4_forced_shutdown(EXT4_SB(inode->i_sb)))) in ext4_file_write_iter()
788 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_file_mmap()
814 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_sample_last_mounted()
867 if (unlikely(ext4_forced_shutdown(EXT4_SB(inode->i_sb)))) in ext4_file_open()
907 maxbytes = EXT4_SB(inode->i_sb)->s_bitmap_maxbytes; in ext4_llseek()
Dxattr.c134 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_xattr_block_csum()
462 hash = ext4_xattr_inode_hash(EXT4_SB(ea_inode->i_sb), buffer, size); in ext4_xattr_inode_verify_hashes()
607 end = (void *)raw_inode + EXT4_SB(inode->i_sb)->s_inode_size; in ext4_xattr_ibody_get()
659 if (unlikely(ext4_forced_shutdown(EXT4_SB(inode->i_sb)))) in ext4_xattr_get()
752 end = (void *)raw_inode + EXT4_SB(inode->i_sb)->s_inode_size; in ext4_xattr_ibody_list()
808 BUFFER_TRACE(EXT4_SB(sb)->s_sbh, "get_write_access"); in ext4_xattr_update_super_block()
809 if (ext4_journal_get_write_access(handle, sb, EXT4_SB(sb)->s_sbh, in ext4_xattr_update_super_block()
811 lock_buffer(EXT4_SB(sb)->s_sbh); in ext4_xattr_update_super_block()
814 unlock_buffer(EXT4_SB(sb)->s_sbh); in ext4_xattr_update_super_block()
815 ext4_handle_dirty_metadata(handle, NULL, EXT4_SB(sb)->s_sbh); in ext4_xattr_update_super_block()
[all …]
Dmballoc.h218 (fex->fe_start << EXT4_SB(sb)->s_cluster_bits); in ext4_grp_offs_to_block()
Dnamei.c61 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()
377 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_dirblock_csum()
472 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_dx_csum()
848 hinfo->hash_version += EXT4_SB(dir->i_sb)->s_hash_unsigned; in dx_probe()
849 hinfo->seed = EXT4_SB(dir->i_sb)->s_hash_seed; in dx_probe()
1188 EXT4_SB(dir->i_sb)->s_def_hash_version; in ext4_htree_fill_tree()
1191 EXT4_SB(dir->i_sb)->s_hash_unsigned; in ext4_htree_fill_tree()
1192 hinfo.seed = EXT4_SB(dir->i_sb)->s_hash_seed; in ext4_htree_fill_tree()
2288 EXT4_SB(dir->i_sb)->s_def_hash_version; in make_indexed_dir()
[all …]
Dsysfs.c78 EXT4_SB(sb)->s_sectors_written_start) >> 1))); in lifetime_write_kbytes_show()
522 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_register_sysfs()
556 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_unregister_sysfs()
Dextents.c53 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()
2440 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_rereserve_cluster()
2459 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_remove_blocks()
2595 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_ext_rm_leaf()
2817 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_ext_remove_space()
3100 spin_lock_init(&EXT4_SB(sb)->s_ext_stats_lock); in ext4_ext_init()
3101 EXT4_SB(sb)->s_ext_min = 1 << 30; in ext4_ext_init()
3102 EXT4_SB(sb)->s_ext_max = 0; in ext4_ext_init()
3116 if (EXT4_SB(sb)->s_ext_blocks && EXT4_SB(sb)->s_ext_extents) { in ext4_ext_release()
[all …]

12