/kernel/linux/linux-5.10/fs/btrfs/ |
D | discard.c | 72 struct btrfs_block_group *block_group) in get_discard_list() argument 74 return &discard_ctl->discard_list[block_group->discard_index]; in get_discard_list() 78 struct btrfs_block_group *block_group) in __add_to_discard_list() argument 83 if (list_empty(&block_group->discard_list) || in __add_to_discard_list() 84 block_group->discard_index == BTRFS_DISCARD_INDEX_UNUSED) { in __add_to_discard_list() 85 if (block_group->discard_index == BTRFS_DISCARD_INDEX_UNUSED) in __add_to_discard_list() 86 block_group->discard_index = BTRFS_DISCARD_INDEX_START; in __add_to_discard_list() 87 block_group->discard_eligible_time = (ktime_get_ns() + in __add_to_discard_list() 89 block_group->discard_state = BTRFS_DISCARD_RESET_CURSOR; in __add_to_discard_list() 92 list_move_tail(&block_group->discard_list, in __add_to_discard_list() [all …]
|
D | free-space-tree.c | 16 struct btrfs_block_group *block_group, 51 struct btrfs_block_group *block_group, in add_new_free_space_info() argument 60 key.objectid = block_group->start; in add_new_free_space_info() 62 key.offset = block_group->length; in add_new_free_space_info() 84 struct btrfs_block_group *block_group, in search_free_space_info() argument 87 struct btrfs_fs_info *fs_info = block_group->fs_info; in search_free_space_info() 92 key.objectid = block_group->start; in search_free_space_info() 94 key.offset = block_group->length; in search_free_space_info() 101 block_group->start); in search_free_space_info() 186 struct btrfs_block_group *block_group, in convert_free_space_to_bitmaps() argument [all …]
|
D | block-group.c | 154 struct btrfs_block_group *block_group) in btrfs_add_block_group_cache() argument 160 ASSERT(block_group->length != 0); in btrfs_add_block_group_cache() 168 if (block_group->start < cache->start) { in btrfs_add_block_group_cache() 170 } else if (block_group->start > cache->start) { in btrfs_add_block_group_cache() 178 rb_link_node(&block_group->cache_node, parent, p); in btrfs_add_block_group_cache() 179 rb_insert_color(&block_group->cache_node, in btrfs_add_block_group_cache() 182 if (info->first_logical_byte > block_group->start) in btrfs_add_block_group_cache() 183 info->first_logical_byte = block_group->start; in btrfs_add_block_group_cache() 428 static void fragment_free_space(struct btrfs_block_group *block_group) in fragment_free_space() argument 430 struct btrfs_fs_info *fs_info = block_group->fs_info; in fragment_free_space() [all …]
|
D | free-space-cache.c | 98 struct inode *lookup_free_space_inode(struct btrfs_block_group *block_group, in lookup_free_space_inode() argument 101 struct btrfs_fs_info *fs_info = block_group->fs_info; in lookup_free_space_inode() 105 spin_lock(&block_group->lock); in lookup_free_space_inode() 106 if (block_group->inode) in lookup_free_space_inode() 107 inode = igrab(block_group->inode); in lookup_free_space_inode() 108 spin_unlock(&block_group->lock); in lookup_free_space_inode() 113 block_group->start); in lookup_free_space_inode() 117 spin_lock(&block_group->lock); in lookup_free_space_inode() 122 block_group->disk_cache_state = BTRFS_DC_CLEAR; in lookup_free_space_inode() 125 if (!block_group->iref) { in lookup_free_space_inode() [all …]
|
D | free-space-cache.h | 82 struct inode *lookup_free_space_inode(struct btrfs_block_group *block_group, 85 struct btrfs_block_group *block_group, 91 struct btrfs_block_group *block_group, 93 int load_free_space_cache(struct btrfs_block_group *block_group); 95 struct btrfs_block_group *block_group, 98 struct btrfs_block_group *block_group, 112 void btrfs_init_free_space_ctl(struct btrfs_block_group *block_group); 117 int btrfs_add_free_space(struct btrfs_block_group *block_group, 119 int btrfs_add_free_space_async_trimmed(struct btrfs_block_group *block_group, 121 int btrfs_remove_free_space(struct btrfs_block_group *block_group, [all …]
|
D | free-space-tree.h | 19 void set_free_space_tree_thresholds(struct btrfs_block_group *block_group); 24 struct btrfs_block_group *block_group); 26 struct btrfs_block_group *block_group); 35 struct btrfs_block_group *block_group, 38 struct btrfs_block_group *block_group, 41 struct btrfs_block_group *block_group, 44 struct btrfs_block_group *block_group, 47 struct btrfs_block_group *block_group, 49 int free_space_test_bit(struct btrfs_block_group *block_group,
|
D | block-group.h | 50 struct btrfs_block_group *block_group; member 194 static inline u64 btrfs_block_group_end(struct btrfs_block_group *block_group) in btrfs_block_group_end() argument 196 return (block_group->start + block_group->length); in btrfs_block_group_end() 200 struct btrfs_block_group *block_group) in btrfs_is_block_group_data_only() argument 206 return (block_group->flags & BTRFS_BLOCK_GROUP_DATA) && in btrfs_is_block_group_data_only() 207 !(block_group->flags & BTRFS_BLOCK_GROUP_METADATA); in btrfs_is_block_group_data_only() 212 struct btrfs_block_group *block_group) in btrfs_should_fragment_free_space() argument 214 struct btrfs_fs_info *fs_info = block_group->fs_info; in btrfs_should_fragment_free_space() 217 block_group->flags & BTRFS_BLOCK_GROUP_METADATA) || in btrfs_should_fragment_free_space() 219 block_group->flags & BTRFS_BLOCK_GROUP_DATA); in btrfs_should_fragment_free_space() [all …]
|
D | discard.h | 18 void btrfs_discard_check_filter(struct btrfs_block_group *block_group, u64 bytes); 22 struct btrfs_block_group *block_group); 24 struct btrfs_block_group *block_group); 31 void btrfs_discard_update_discardable(struct btrfs_block_group *block_group,
|
D | extent-tree.c | 2487 struct btrfs_block_group *block_group; in btrfs_extent_readonly() local 2490 block_group = btrfs_lookup_block_group(fs_info, bytenr); in btrfs_extent_readonly() 2491 if (!block_group || block_group->ro) in btrfs_extent_readonly() 2493 if (block_group) in btrfs_extent_readonly() 2494 btrfs_put_block_group(block_group); in btrfs_extent_readonly() 2610 struct btrfs_block_group *block_group; in __exclude_logged_extent() local 2613 block_group = btrfs_lookup_block_group(fs_info, start); in __exclude_logged_extent() 2614 if (!block_group) in __exclude_logged_extent() 2617 btrfs_cache_block_group(block_group, 0); in __exclude_logged_extent() 2618 caching_ctl = btrfs_get_caching_control(block_group); in __exclude_logged_extent() [all …]
|
D | relocation.c | 117 struct btrfs_block_group *block_group; member 162 in_range(node->bytenr, rc->block_group->start, in mark_block_processed() 163 rc->block_group->length)) { in mark_block_processed() 1088 if (!in_range(bytenr, rc->block_group->start, in replace_file_extents() 1089 rc->block_group->length)) in replace_file_extents() 1340 rc->block_group, parent, slot, in replace_path() 2993 struct btrfs_block_group *block_group, in delete_block_group_cache() argument 3020 ret = btrfs_truncate_free_space_cache(trans, block_group, inode); in delete_block_group_cache() 3034 struct btrfs_block_group *block_group, in delete_v1_space_cache() argument 3066 ret = delete_block_group_cache(leaf->fs_info, block_group, NULL, in delete_v1_space_cache() [all …]
|
D | sysfs.c | 577 struct btrfs_block_group *block_group; in raid_bytes_show() local 582 list_for_each_entry(block_group, &sinfo->block_groups[index], list) { in raid_bytes_show() 584 val += block_group->length; in raid_bytes_show() 586 val += block_group->used; in raid_bytes_show()
|
/kernel/linux/linux-5.10/fs/ext4/ |
D | balloc.c | 27 ext4_group_t block_group); 75 ext4_group_t block_group) in ext4_block_in_group() argument 80 return (actual_group == block_group) ? 1 : 0; in ext4_block_in_group() 87 ext4_group_t block_group, in ext4_num_overhead_clusters() argument 92 ext4_fsblk_t start = ext4_group_first_block_no(sb, block_group); in ext4_num_overhead_clusters() 99 num_clusters = ext4_num_base_meta_clusters(sb, block_group); in ext4_num_overhead_clusters() 113 if (ext4_block_in_group(sb, ext4_block_bitmap(sb, gdp), block_group)) { in ext4_num_overhead_clusters() 124 if (ext4_block_in_group(sb, ext4_inode_bitmap(sb, gdp), block_group)) { in ext4_num_overhead_clusters() 137 if (ext4_block_in_group(sb, itbl_blk + i, block_group)) { in ext4_num_overhead_clusters() 160 ext4_group_t block_group) in num_clusters_in_group() argument [all …]
|
D | ialloc.c | 81 ext4_group_t block_group, in ext4_validate_inode_bitmap() argument 90 grp = ext4_get_group_info(sb, block_group); in ext4_validate_inode_bitmap() 97 ext4_lock_group(sb, block_group); in ext4_validate_inode_bitmap() 101 if (!ext4_inode_bitmap_csum_verify(sb, block_group, desc, bh, in ext4_validate_inode_bitmap() 104 ext4_unlock_group(sb, block_group); in ext4_validate_inode_bitmap() 106 "inode_bitmap = %llu", block_group, blk); in ext4_validate_inode_bitmap() 107 ext4_mark_group_bitmap_corrupted(sb, block_group, in ext4_validate_inode_bitmap() 113 ext4_unlock_group(sb, block_group); in ext4_validate_inode_bitmap() 124 ext4_read_inode_bitmap(struct super_block *sb, ext4_group_t block_group) in ext4_read_inode_bitmap() argument 132 desc = ext4_get_group_desc(sb, block_group, NULL); in ext4_read_inode_bitmap() [all …]
|
D | mballoc.c | 3054 ext4_group_t block_group, ext4_grpblk_t cluster, int count, in ext4_issue_discard() argument 3060 ext4_group_first_block_no(sb, block_group)); in ext4_issue_discard() 5365 ext4_group_t block_group; in ext4_free_blocks() local 5450 ext4_get_group_no_and_offset(sb, block, &block_group, &bit); in ext4_free_blocks() 5452 grp = ext4_get_group_info(sb, block_group); in ext4_free_blocks() 5466 bitmap_bh = ext4_read_block_bitmap(sb, block_group); in ext4_free_blocks() 5472 gdp = ext4_get_group_desc(sb, block_group, &gd_bh); in ext4_free_blocks() 5512 trace_ext4_mballoc_free(sb, inode, block_group, bit, count_clusters); in ext4_free_blocks() 5515 err = ext4_mb_load_buddy_gfp(sb, block_group, &e4b, in ext4_free_blocks() 5537 new_entry->efd_group = block_group; in ext4_free_blocks() [all …]
|
D | ext4.h | 2367 ext4_group_t block_group; member 2570 ext4_group_t block_group, 2577 ext4_group_t block_group, 2580 ext4_group_t block_group, 2583 ext4_group_t block_group); 2585 ext4_group_t block_group, 2982 ext4_group_t block_group, 3229 ext4_group_t block_group) in ext4_flex_group() argument 3231 return block_group >> sbi->s_log_groups_per_flex; in ext4_flex_group()
|
/kernel/linux/linux-5.10/fs/udf/ |
D | balloc.c | 55 unsigned int block_group) in __load_block_bitmap() argument 60 if (block_group >= nr_groups) { in __load_block_bitmap() 62 block_group, nr_groups); in __load_block_bitmap() 65 if (bitmap->s_block_bitmap[block_group]) in __load_block_bitmap() 66 return block_group; in __load_block_bitmap() 68 retval = read_block_bitmap(sb, bitmap, block_group, block_group); in __load_block_bitmap() 72 return block_group; in __load_block_bitmap() 77 unsigned int block_group) in load_block_bitmap() argument 81 slot = __load_block_bitmap(sb, bitmap, block_group); in load_block_bitmap() 115 unsigned long block_group; in udf_bitmap_free_blocks() local [all …]
|
/kernel/linux/linux-5.10/fs/ext2/ |
D | balloc.c | 42 unsigned int block_group, in ext2_get_group_desc() argument 50 if (block_group >= sbi->s_groups_count) { in ext2_get_group_desc() 53 block_group, sbi->s_groups_count); in ext2_get_group_desc() 58 group_desc = block_group >> EXT2_DESC_PER_BLOCK_BITS(sb); in ext2_get_group_desc() 59 offset = block_group & (EXT2_DESC_PER_BLOCK(sb) - 1); in ext2_get_group_desc() 63 block_group, group_desc, offset); in ext2_get_group_desc() 75 unsigned int block_group, in ext2_valid_block_bitmap() argument 83 group_first_block = ext2_group_first_block_no(sb, block_group); in ext2_valid_block_bitmap() 113 block_group, bitmap_blk); in ext2_valid_block_bitmap() 124 read_block_bitmap(struct super_block *sb, unsigned int block_group) in read_block_bitmap() argument [all …]
|
D | ialloc.c | 47 read_inode_bitmap(struct super_block * sb, unsigned long block_group) in read_inode_bitmap() argument 52 desc = ext2_get_group_desc(sb, block_group, NULL); in read_inode_bitmap() 61 block_group, le32_to_cpu(desc->bg_inode_bitmap)); in read_inode_bitmap() 111 unsigned long block_group; in ext2_free_inode() local 135 block_group = (ino - 1) / EXT2_INODES_PER_GROUP(sb); in ext2_free_inode() 137 bitmap_bh = read_inode_bitmap(sb, block_group); in ext2_free_inode() 142 if (!ext2_clear_bit_atomic(sb_bgl_lock(EXT2_SB(sb), block_group), in ext2_free_inode() 147 ext2_release_inode(sb, block_group, is_directory); in ext2_free_inode() 169 unsigned long block_group; in ext2_preread_inode() local 179 block_group = (inode->i_ino - 1) / EXT2_INODES_PER_GROUP(inode->i_sb); in ext2_preread_inode() [all …]
|
D | ext2.h | 122 sb_bgl_lock(struct ext2_sb_info *sbi, unsigned int block_group) in sb_bgl_lock() argument 124 return bgl_lock_ptr(sbi->s_blockgroup_lock, block_group); in sb_bgl_lock() 731 unsigned int block_group,
|
/kernel/linux/linux-5.10/include/linux/ |
D | blockgroup_lock.h | 36 bgl_lock_ptr(struct blockgroup_lock *bgl, unsigned int block_group) in bgl_lock_ptr() argument 38 return &bgl->locks[block_group & (NR_BG_LOCKS-1)].lock; in bgl_lock_ptr()
|
/kernel/linux/linux-5.10/include/trace/events/ |
D | btrfs.h | 738 const struct btrfs_block_group *block_group, int create), 740 TP_ARGS(fs_info, block_group, create), 752 __entry->offset = block_group->start; 753 __entry->size = block_group->length; 754 __entry->flags = block_group->flags; 755 __entry->bytes_used = block_group->used; 756 __entry->bytes_super = block_group->bytes_super; 1207 TP_PROTO(const struct btrfs_block_group *block_group, u64 start, 1210 TP_ARGS(block_group, start, len), 1219 TP_fast_assign_btrfs(block_group->fs_info, [all …]
|
/kernel/linux/linux-5.10/fs/nilfs2/ |
D | mdt.h | 110 nilfs_mdt_bgl_lock(struct inode *inode, unsigned int block_group) in nilfs_mdt_bgl_lock() argument 112 return bgl_lock_ptr(NILFS_MDT(inode)->mi_bgl, block_group); in nilfs_mdt_bgl_lock()
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/ |
D | btrfs_tree.h | 231 __le64 block_group; member
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/ |
D | btrfs_tree.h | 243 __le64 block_group; member
|
/kernel/linux/linux-5.10/include/uapi/linux/ |
D | btrfs_tree.h | 565 __le64 block_group; member
|