Lines Matching refs:super_block
1469 struct super_block *sb;
1486 static inline int ext4_inodes_per_orphan_block(struct super_block *sb) in ext4_inodes_per_orphan_block()
1556 struct super_block *s_sb;
1767 static inline struct ext4_sb_info *EXT4_SB(struct super_block *sb) in EXT4_SB()
1776 static inline int ext4_valid_inum(struct super_block *sb, unsigned long ino) in ext4_valid_inum()
1809 static inline void ext4_set_mount_flag(struct super_block *sb, int bit) in ext4_set_mount_flag()
1814 static inline void ext4_clear_mount_flag(struct super_block *sb, int bit) in ext4_clear_mount_flag()
1819 static inline int ext4_test_mount_flag(struct super_block *sb, int bit) in ext4_test_mount_flag()
1837 static inline bool ext4_simulate_fail(struct super_block *sb, in ext4_simulate_fail()
1851 static inline void ext4_simulate_fail_bh(struct super_block *sb, in ext4_simulate_fail_bh()
2044 extern void ext4_update_dynamic_rev(struct super_block *sb);
2047 static inline bool ext4_has_feature_##name(struct super_block *sb) \
2052 static inline void ext4_set_feature_##name(struct super_block *sb) \
2058 static inline void ext4_clear_feature_##name(struct super_block *sb) \
2065 static inline bool ext4_has_feature_##name(struct super_block *sb) \
2070 static inline void ext4_set_feature_##name(struct super_block *sb) \
2076 static inline void ext4_clear_feature_##name(struct super_block *sb) \
2083 static inline bool ext4_has_feature_##name(struct super_block *sb) \
2088 static inline void ext4_set_feature_##name(struct super_block *sb) \
2094 static inline void ext4_clear_feature_##name(struct super_block *sb) \
2188 static inline bool ext4_has_unknown_ext##ver##_compat_features(struct super_block *sb) \ in EXT4_FEATURE_COMPAT_FUNCS()
2193 static inline bool ext4_has_unknown_ext##ver##_ro_compat_features(struct super_block *sb) \
2198 static inline bool ext4_has_unknown_ext##ver##_incompat_features(struct super_block *sb) \
2208 static inline bool ext4_has_compat_features(struct super_block *sb)
2212 static inline bool ext4_has_ro_compat_features(struct super_block *sb) in ext4_has_ro_compat_features()
2216 static inline bool ext4_has_incompat_features(struct super_block *sb) in ext4_has_incompat_features()
2221 extern int ext4_feature_set_ok(struct super_block *sb, int readonly);
2544 ext4_group_first_block_no(struct super_block *sb, ext4_group_t group_no) in ext4_group_first_block_no()
2559 static inline int ext4_dir_htree_level(struct super_block *sb) in ext4_dir_htree_level()
2588 struct super_block *lr_super;
2641 struct super_block *sb; /* super block of the fs */
2678 void ext4_inode_bitmap_csum_set(struct super_block *sb, ext4_group_t group,
2681 int ext4_inode_bitmap_csum_verify(struct super_block *sb, ext4_group_t group,
2684 void ext4_block_bitmap_csum_set(struct super_block *sb, ext4_group_t group,
2687 int ext4_block_bitmap_csum_verify(struct super_block *sb, ext4_group_t group,
2692 extern void ext4_get_group_no_and_offset(struct super_block *sb,
2696 extern ext4_group_t ext4_get_group_number(struct super_block *sb,
2699 extern unsigned int ext4_block_group(struct super_block *sb,
2701 extern ext4_grpblk_t ext4_block_group_offset(struct super_block *sb,
2703 extern int ext4_bg_has_super(struct super_block *sb, ext4_group_t group);
2704 extern unsigned long ext4_bg_num_gdb(struct super_block *sb,
2713 extern ext4_fsblk_t ext4_count_free_clusters(struct super_block *);
2714 extern void ext4_check_blocks_bitmap(struct super_block *);
2715 extern struct ext4_group_desc * ext4_get_group_desc(struct super_block * sb,
2718 extern int ext4_should_retry_alloc(struct super_block *sb, int *retries);
2720 extern struct buffer_head *ext4_read_block_bitmap_nowait(struct super_block *sb,
2723 extern int ext4_wait_block_bitmap(struct super_block *sb,
2726 extern struct buffer_head *ext4_read_block_bitmap(struct super_block *sb,
2728 extern unsigned ext4_free_clusters_after_init(struct super_block *sb,
2829 static inline unsigned char get_dtype(struct super_block *sb, int filetype) in get_dtype()
2847 extern int ext4_mark_inode_used(struct super_block *sb, int ino);
2865 extern struct inode * ext4_orphan_get(struct super_block *, unsigned long);
2866 extern unsigned long ext4_count_free_inodes(struct super_block *);
2867 extern unsigned long ext4_count_dirs(struct super_block *);
2868 extern void ext4_check_inodes_bitmap(struct super_block *);
2870 extern int ext4_init_inode_table(struct super_block *sb,
2876 void ext4_fc_init(struct super_block *sb, journal_t *journal);
2890 void ext4_fc_mark_ineligible(struct super_block *sb, int reason, handle_t *handle);
2894 bool ext4_fc_replay_check_excluded(struct super_block *sb, ext4_fsblk_t block);
2895 void ext4_fc_replay_cleanup(struct super_block *sb);
2899 int ext4_fc_record_regions(struct super_block *sb, int ino,
2909 extern int ext4_mb_init(struct super_block *);
2910 extern int ext4_mb_release(struct super_block *);
2913 extern int ext4_mb_reserve_blocks(struct super_block *, int);
2917 extern ext4_group_t ext4_mb_prefetch(struct super_block *sb,
2920 extern void ext4_mb_prefetch_fini(struct super_block *sb, ext4_group_t group,
2926 extern int ext4_mb_alloc_groupinfo(struct super_block *sb,
2928 extern int ext4_mb_add_groupinfo(struct super_block *sb,
2930 extern int ext4_group_add_blocks(handle_t *handle, struct super_block *sb,
2932 extern int ext4_trim_fs(struct super_block *, struct fstrim_range *);
2933 extern void ext4_process_freed_data(struct super_block *sb, tid_t commit_tid);
2934 extern void ext4_mb_mark_bb(struct super_block *sb, ext4_fsblk_t block,
2970 extern struct inode *__ext4_iget(struct super_block *sb, unsigned long ino,
2991 extern int ext4_get_fc_inode_loc(struct super_block *sb, unsigned long ino,
3029 int ext4_update_overhead(struct super_block *sb, bool force);
3059 extern int ext4_group_add(struct super_block *sb,
3061 extern int ext4_group_extend(struct super_block *sb,
3064 extern int ext4_resize_fs(struct super_block *sb, ext4_fsblk_t n_blocks_count);
3065 extern unsigned int ext4_list_backups(struct super_block *sb,
3070 extern struct buffer_head *ext4_sb_bread(struct super_block *sb,
3072 extern struct buffer_head *ext4_sb_bread_unmovable(struct super_block *sb,
3079 extern void ext4_sb_breadahead_unmovable(struct super_block *sb, sector_t block);
3081 extern int ext4_calculate_overhead(struct super_block *sb);
3082 extern __le32 ext4_superblock_csum(struct super_block *sb,
3084 extern void ext4_superblock_csum_set(struct super_block *sb);
3085 extern int ext4_alloc_flex_bg_array(struct super_block *sb,
3087 extern const char *ext4_decode_error(struct super_block *sb, int errno,
3089 extern void ext4_mark_group_bitmap_corrupted(struct super_block *sb,
3094 void __ext4_error(struct super_block *, const char *, unsigned int, bool,
3102 extern void __ext4_std_error(struct super_block *, const char *,
3105 void __ext4_warning(struct super_block *, const char *, unsigned int,
3111 void __ext4_msg(struct super_block *, const char *, const char *, ...);
3112 extern void __dump_mmp_msg(struct super_block *, struct mmp_struct *mmp,
3116 struct super_block *, ext4_group_t,
3215 extern ext4_fsblk_t ext4_block_bitmap(struct super_block *sb,
3217 extern ext4_fsblk_t ext4_inode_bitmap(struct super_block *sb,
3219 extern ext4_fsblk_t ext4_inode_table(struct super_block *sb,
3221 extern __u32 ext4_free_group_clusters(struct super_block *sb,
3223 extern __u32 ext4_free_inodes_count(struct super_block *sb,
3225 extern __u32 ext4_used_dirs_count(struct super_block *sb,
3227 extern __u32 ext4_itable_unused_count(struct super_block *sb,
3229 extern void ext4_block_bitmap_set(struct super_block *sb,
3231 extern void ext4_inode_bitmap_set(struct super_block *sb,
3233 extern void ext4_inode_table_set(struct super_block *sb,
3235 extern void ext4_free_group_clusters_set(struct super_block *sb,
3238 extern void ext4_free_inodes_set(struct super_block *sb,
3240 extern void ext4_used_dirs_set(struct super_block *sb,
3242 extern void ext4_itable_unused_set(struct super_block *sb,
3244 extern int ext4_group_desc_csum_verify(struct super_block *sb, __u32 group,
3246 extern void ext4_group_desc_csum_set(struct super_block *sb, __u32 group,
3248 extern int ext4_register_li_request(struct super_block *sb,
3251 static inline int ext4_has_metadata_csum(struct super_block *sb) in ext4_has_metadata_csum()
3260 static inline int ext4_has_group_desc_csum(struct super_block *sb) in ext4_has_group_desc_csum()
3306 static inline loff_t ext4_isize(struct super_block *sb, in ext4_isize()
3324 struct ext4_group_info *ext4_get_group_info(struct super_block *sb, in ext4_get_group_info()
3341 static inline ext4_group_t ext4_get_groups_count(struct super_block *sb) in ext4_get_groups_count()
3461 static inline spinlock_t *ext4_group_lock_ptr(struct super_block *sb, in ext4_group_lock_ptr()
3476 static inline void ext4_lock_group(struct super_block *sb, ext4_group_t group) in ext4_lock_group()
3496 static inline void ext4_unlock_group(struct super_block *sb, in ext4_unlock_group()
3503 static inline bool ext4_quota_capable(struct super_block *sb) in ext4_quota_capable()
3508 static inline bool ext4_is_quota_journalled(struct super_block *sb) in ext4_is_quota_journalled()
3515 int ext4_enable_quotas(struct super_block *sb);
3638 static inline void ext4_set_de_type(struct super_block *sb, in ext4_set_de_type()
3658 extern int ext4_register_sysfs(struct super_block *sb);
3659 extern void ext4_unregister_sysfs(struct super_block *sb);
3664 extern void ext4_release_system_zone(struct super_block *sb);
3665 extern int ext4_setup_system_zone(struct super_block *sb);
3673 extern int ext4_sb_block_valid(struct super_block *sb, struct inode *inode,
3694 extern void ext4_ext_init(struct super_block *);
3695 extern void ext4_ext_release(struct super_block *);
3765 extern int ext4_multi_mount_protect(struct super_block *, ext4_fsblk_t);
3776 extern void ext4_orphan_cleanup(struct super_block *sb,
3778 extern void ext4_release_orphan_info(struct super_block *sb);
3779 extern int ext4_init_orphan_info(struct super_block *sb);
3780 extern int ext4_orphan_file_empty(struct super_block *sb);
3811 extern int ext4_resize_begin(struct super_block *sb);
3812 extern int ext4_resize_end(struct super_block *sb, bool update_backups);