Home
last modified time | relevance | path

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

12

/Linux-v5.15/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.c49 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_resize_begin()
61 le32_to_cpu(EXT4_SB(sb)->s_es->s_first_data_block)) { in ext4_resize_begin()
63 (unsigned long long)EXT4_SB(sb)->s_sbh->b_blocknr); in ext4_resize_begin()
71 if (EXT4_SB(sb)->s_mount_state & EXT4_ERROR_FS) { in ext4_resize_begin()
83 &EXT4_SB(sb)->s_ext4_flags)) in ext4_resize_begin()
91 clear_bit_unlock(EXT4_FLAGS_RESIZING, &EXT4_SB(sb)->s_ext4_flags); in ext4_resize_end()
113 le16_to_cpu(EXT4_SB(sb)->s_es->s_reserved_gdt_blocks); in ext4_group_overhead_blocks()
123 struct ext4_sb_info *sbi = EXT4_SB(sb); in verify_group_input()
352 unsigned int itb = EXT4_SB(sb)->s_itb_per_group; in ext4_alloc_group_tables()
371 start_blk += EXT4_SB(sb)->s_itb_per_group; in ext4_alloc_group_tables()
[all …]
Dfast_commit.c220 __releases(&EXT4_SB(inode->i_sb)->s_fc_lock) in ext4_fc_wait_committing_inode()
236 lockdep_assert_held(&EXT4_SB(inode->i_sb)->s_fc_lock); in ext4_fc_wait_committing_inode()
238 spin_unlock(&EXT4_SB(inode->i_sb)->s_fc_lock); in ext4_fc_wait_committing_inode()
255 (EXT4_SB(inode->i_sb)->s_mount_state & EXT4_FC_REPLAY)) in ext4_fc_start_update()
259 spin_lock(&EXT4_SB(inode->i_sb)->s_fc_lock); in ext4_fc_start_update()
269 spin_unlock(&EXT4_SB(inode->i_sb)->s_fc_lock); in ext4_fc_start_update()
280 (EXT4_SB(inode->i_sb)->s_mount_state & EXT4_FC_REPLAY)) in ext4_fc_stop_update()
296 (EXT4_SB(inode->i_sb)->s_mount_state & EXT4_FC_REPLAY)) in ext4_fc_del()
300 spin_lock(&EXT4_SB(inode->i_sb)->s_fc_lock); in ext4_fc_del()
302 spin_unlock(&EXT4_SB(inode->i_sb)->s_fc_lock); in ext4_fc_del()
[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()
282 struct ext4_super_block *es = EXT4_SB(sb)->s_es; in ext4_multi_mount_protect()
373 EXT4_SB(sb)->s_mmp_bh = bh; in ext4_multi_mount_protect()
378 EXT4_SB(sb)->s_mmp_tsk = kthread_run(kmmpd, sb, "kmmpd-%.*s", in ext4_multi_mount_protect()
382 if (IS_ERR(EXT4_SB(sb)->s_mmp_tsk)) { in ext4_multi_mount_protect()
383 EXT4_SB(sb)->s_mmp_tsk = NULL; in ext4_multi_mount_protect()
Dioctl.c93 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_reset_inode_seed()
502 EXT4_SB(sb)->s_want_extra_isize, in ext4_ioctl_setproject()
559 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_shutdown()
707 if (EXT4_SB(sb)->s_journal) { in ext4_ioctl_group_add()
708 jbd2_journal_lock_updates(EXT4_SB(sb)->s_journal); in ext4_ioctl_group_add()
709 err2 = jbd2_journal_flush(EXT4_SB(sb)->s_journal, 0); in ext4_ioctl_group_add()
710 jbd2_journal_unlock_updates(EXT4_SB(sb)->s_journal); in ext4_ioctl_group_add()
823 if (!EXT4_SB(sb)->s_journal) in ext4_ioctl_checkpoint()
829 q = bdev_get_queue(EXT4_SB(sb)->s_journal->j_dev); in ext4_ioctl_checkpoint()
846 jbd2_journal_lock_updates(EXT4_SB(sb)->s_journal); in ext4_ioctl_checkpoint()
[all …]
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()
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()
201 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_check_bdev_write_error()
244 &EXT4_SB(sb)->s_journal_triggers[trigger_type].tr_triggers); in __ext4_journal_get_write_access()
332 &EXT4_SB(sb)->s_journal_triggers[trigger_type].tr_triggers); in __ext4_journal_get_create_access()
Dext4.h290 EXT4_SB(s)->s_cluster_bits)
293 # define EXT4_CLUSTER_BITS(s) (EXT4_SB(s)->s_cluster_bits)
298 #define EXT4_ADDR_PER_BLOCK_BITS(s) (EXT4_SB(s)->s_addr_per_block_bits)
299 #define EXT4_INODE_SIZE(s) (EXT4_SB(s)->s_inode_size)
300 #define EXT4_FIRST_INO(s) (EXT4_SB(s)->s_first_ino)
392 #define EXT4_DESC_SIZE(s) (EXT4_SB(s)->s_desc_size)
394 # define EXT4_BLOCKS_PER_GROUP(s) (EXT4_SB(s)->s_blocks_per_group)
395 # define EXT4_CLUSTERS_PER_GROUP(s) (EXT4_SB(s)->s_clusters_per_group)
396 # define EXT4_DESC_PER_BLOCK(s) (EXT4_SB(s)->s_desc_per_block)
397 # define EXT4_INODES_PER_GROUP(s) (EXT4_SB(s)->s_inodes_per_group)
[all …]
Dsuper.c265 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_superblock_csum()
285 struct ext4_super_block *es = EXT4_SB(sb)->s_es; in ext4_superblock_csum_set()
442 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_journal_commit_callback()
591 struct ext4_sb_info *sbi = EXT4_SB(sb); in save_error_info()
640 journal_t *journal = EXT4_SB(sb)->s_journal; in ext4_handle_error()
643 EXT4_SB(sb)->s_mount_state |= EXT4_ERROR_FS; in ext4_handle_error()
662 schedule_work(&EXT4_SB(sb)->s_error_work); in ext4_handle_error()
739 ___ratelimit(&(EXT4_SB(sb)->s_err_ratelimit_state), \
749 if (unlikely(ext4_forced_shutdown(EXT4_SB(sb)))) in __ext4_error()
772 if (unlikely(ext4_forced_shutdown(EXT4_SB(inode->i_sb)))) in __ext4_error_inode()
[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 …]
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()
303 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_inode_block_valid()
349 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()
205 journal_t *journal = EXT4_SB(inode->i_sb)->s_journal; in ext4_evict_inode()
358 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_da_update_reserve_space()
406 le32_to_cpu(EXT4_SB(inode->i_sb)->s_es->s_journal_inum))) in __check_block_validity()
528 if (!(EXT4_SB(inode->i_sb)->s_mount_state & EXT4_FC_REPLAY) && in ext4_map_blocks()
842 ASSERT((EXT4_SB(inode->i_sb)->s_mount_state & EXT4_FC_REPLAY) in ext4_getblk()
859 ASSERT((EXT4_SB(inode->i_sb)->s_mount_state & EXT4_FC_REPLAY) in ext4_getblk()
1144 if (unlikely(ext4_forced_shutdown(EXT4_SB(inode->i_sb)))) in ext4_write_begin()
[all …]
Dmballoc.c530 bb = e4b->bd_buddy + EXT4_SB(e4b->bd_sb)->s_mb_offsets[order]; in mb_find_buddy()
531 *max = EXT4_SB(e4b->bd_sb)->s_mb_maxs[order]; in mb_find_buddy()
551 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()
851 struct ext4_sb_info *sbi = EXT4_SB(sb); in mb_update_avg_fragment_size()
876 struct ext4_sb_info *sbi = EXT4_SB(ac->ac_sb); in ext4_mb_choose_next_group_cr0()
929 struct ext4_sb_info *sbi = EXT4_SB(ac->ac_sb); in ext4_mb_choose_next_group_cr1()
1078 struct ext4_sb_info *sbi = EXT4_SB(sb); in mb_set_largest_free_order()
1112 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_mb_generate_buddy()
1353 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()
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()
576 int flex_size = ext4_flex_bg_size(EXT4_SB(sb)); in find_group_other()
680 int inodes_per_block = EXT4_SB(sb)->s_inodes_per_block; in recently_deleted()
721 bool check_recently_deleted = EXT4_SB(sb)->s_journal == NULL; in find_inode_bit()
754 unsigned long max_ino = le32_to_cpu(EXT4_SB(sb)->s_es->s_inodes_count); in ext4_mark_inode_used()
953 sbi = EXT4_SB(sb); in __ext4_new_inode()
[all …]
Dfile.c117 if (unlikely(ext4_forced_shutdown(EXT4_SB(inode->i_sb)))) in ext4_file_read_iter()
229 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_generic_write_checks()
670 if (unlikely(ext4_forced_shutdown(EXT4_SB(inode->i_sb)))) in ext4_file_write_iter()
768 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_file_mmap()
794 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_sample_last_mounted()
847 if (unlikely(ext4_forced_shutdown(EXT4_SB(inode->i_sb)))) in ext4_file_open()
887 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()
447 hash = ext4_xattr_inode_hash(EXT4_SB(ea_inode->i_sb), buffer, size); in ext4_xattr_inode_verify_hashes()
592 end = (void *)raw_inode + EXT4_SB(inode->i_sb)->s_inode_size; in ext4_xattr_ibody_get()
644 if (unlikely(ext4_forced_shutdown(EXT4_SB(inode->i_sb)))) in ext4_xattr_get()
737 end = (void *)raw_inode + EXT4_SB(inode->i_sb)->s_inode_size; in ext4_xattr_ibody_list()
793 BUFFER_TRACE(EXT4_SB(sb)->s_sbh, "get_write_access"); in ext4_xattr_update_super_block()
794 if (ext4_journal_get_write_access(handle, sb, EXT4_SB(sb)->s_sbh, in ext4_xattr_update_super_block()
796 lock_buffer(EXT4_SB(sb)->s_sbh); in ext4_xattr_update_super_block()
799 unlock_buffer(EXT4_SB(sb)->s_sbh); in ext4_xattr_update_super_block()
800 ext4_handle_dirty_metadata(handle, NULL, EXT4_SB(sb)->s_sbh); in ext4_xattr_update_super_block()
[all …]
Dmballoc.h219 (fex->fe_start << EXT4_SB(sb)->s_cluster_bits); in ext4_grp_offs_to_block()
Dsysfs.c78 EXT4_SB(sb)->s_sectors_written_start) >> 1))); in lifetime_write_kbytes_show()
520 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_register_sysfs()
554 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_unregister_sysfs()
Dnamei.c60 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()
349 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_dirblock_csum()
444 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_dx_csum()
818 hinfo->hash_version += EXT4_SB(dir->i_sb)->s_hash_unsigned; in dx_probe()
819 hinfo->seed = EXT4_SB(dir->i_sb)->s_hash_seed; in dx_probe()
1144 EXT4_SB(dir->i_sb)->s_def_hash_version; in ext4_htree_fill_tree()
1147 EXT4_SB(dir->i_sb)->s_hash_unsigned; in ext4_htree_fill_tree()
1148 hinfo.seed = EXT4_SB(dir->i_sb)->s_hash_seed; in ext4_htree_fill_tree()
2225 EXT4_SB(dir->i_sb)->s_def_hash_version; in make_indexed_dir()
[all …]
Dextents.c53 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_extent_block_csum()
1270 struct ext4_super_block *es = EXT4_SB(inode->i_sb)->s_es; in ext4_ext_grow_indepth()
2401 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_rereserve_cluster()
2420 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_remove_blocks()
2556 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_ext_rm_leaf()
2778 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_ext_remove_space()
3062 spin_lock_init(&EXT4_SB(sb)->s_ext_stats_lock); in ext4_ext_init()
3063 EXT4_SB(sb)->s_ext_min = 1 << 30; in ext4_ext_init()
3064 EXT4_SB(sb)->s_ext_max = 0; in ext4_ext_init()
3078 if (EXT4_SB(sb)->s_ext_blocks && EXT4_SB(sb)->s_ext_extents) { in ext4_ext_release()
[all …]
Dpage-io.c185 if (ret < 0 && !ext4_forced_shutdown(EXT4_SB(inode->i_sb))) { in ext4_end_io_end()
223 struct ext4_sb_info *sbi = EXT4_SB(io_end->inode->i_sb); in ext4_add_complete_io()

12