/fs/ocfs2/ |
D | suballoc.c | 106 static inline int ocfs2_block_group_reasonably_empty(struct ocfs2_group_desc *bg, 321 struct ocfs2_group_desc *bg, in ocfs2_bg_discontig_add_extent() argument 325 struct ocfs2_extent_list *el = &bg->bg_list; in ocfs2_bg_discontig_add_extent() 333 rec->e_cpos = cpu_to_le32(le16_to_cpu(bg->bg_bits) / in ocfs2_bg_discontig_add_extent() 336 le16_add_cpu(&bg->bg_bits, clusters * le16_to_cpu(cl->cl_bpc)); in ocfs2_bg_discontig_add_extent() 337 le16_add_cpu(&bg->bg_free_bits_count, in ocfs2_bg_discontig_add_extent() 352 struct ocfs2_group_desc *bg = (struct ocfs2_group_desc *) bg_bh->b_data; in ocfs2_block_group_fill() local 372 memset(bg, 0, sb->s_blocksize); in ocfs2_block_group_fill() 373 strcpy(bg->bg_signature, OCFS2_GROUP_DESC_SIGNATURE); in ocfs2_block_group_fill() 374 bg->bg_generation = cpu_to_le32(osb->fs_generation); in ocfs2_block_group_fill() [all …]
|
D | move_extents.c | 378 struct ocfs2_group_desc *bg; in ocfs2_find_victim_alloc_group() local 417 bg = NULL; in ocfs2_find_victim_alloc_group() 420 if (!bg) in ocfs2_find_victim_alloc_group() 423 blkno = le64_to_cpu(bg->bg_next_group); in ocfs2_find_victim_alloc_group() 436 bg = (struct ocfs2_group_desc *)gd_bh->b_data; in ocfs2_find_victim_alloc_group() 438 if (vict_blkno < (le64_to_cpu(bg->bg_blkno) + in ocfs2_find_victim_alloc_group() 439 (le16_to_cpu(bg->bg_bits) << bits_per_unit))) { in ocfs2_find_victim_alloc_group() 446 blkno, le16_to_cpu(bg->bg_bits), in ocfs2_find_victim_alloc_group() 451 } while (le64_to_cpu(bg->bg_next_group)); in ocfs2_find_victim_alloc_group() 473 struct ocfs2_group_desc *bg; in ocfs2_validate_and_adjust_move_goal() local [all …]
|
D | ioctl.c | 439 struct ocfs2_group_desc *bg = NULL; in ocfs2_info_freefrag_scan_chain() local 449 if (!bg) in ocfs2_info_freefrag_scan_chain() 452 blkno = le64_to_cpu(bg->bg_next_group); in ocfs2_info_freefrag_scan_chain() 473 bg = (struct ocfs2_group_desc *)bh->b_data; in ocfs2_info_freefrag_scan_chain() 475 if (!le16_to_cpu(bg->bg_free_bits_count)) in ocfs2_info_freefrag_scan_chain() 478 max_bits = le16_to_cpu(bg->bg_bits); in ocfs2_info_freefrag_scan_chain() 493 (unsigned long *)bg->bg_bitmap); in ocfs2_info_freefrag_scan_chain() 523 } while (le64_to_cpu(bg->bg_next_group)); in ocfs2_info_freefrag_scan_chain()
|
D | suballoc.h | 86 struct ocfs2_group_desc *bg,
|
/fs/btrfs/ |
D | block-group.c | 288 struct btrfs_block_group *bg; in btrfs_inc_nocow_writers() local 291 bg = btrfs_lookup_block_group(fs_info, bytenr); in btrfs_inc_nocow_writers() 292 if (!bg) in btrfs_inc_nocow_writers() 295 spin_lock(&bg->lock); in btrfs_inc_nocow_writers() 296 if (bg->ro) in btrfs_inc_nocow_writers() 299 atomic_inc(&bg->nocow_writers); in btrfs_inc_nocow_writers() 300 spin_unlock(&bg->lock); in btrfs_inc_nocow_writers() 304 btrfs_put_block_group(bg); in btrfs_inc_nocow_writers() 311 struct btrfs_block_group *bg; in btrfs_dec_nocow_writers() local 313 bg = btrfs_lookup_block_group(fs_info, bytenr); in btrfs_dec_nocow_writers() [all …]
|
D | block-group.h | 233 void btrfs_wait_block_group_reservations(struct btrfs_block_group *bg); 236 void btrfs_wait_nocow_writers(struct btrfs_block_group *bg); 253 void btrfs_mark_bg_unused(struct btrfs_block_group *bg); 308 bool btrfs_inc_block_group_swap_extents(struct btrfs_block_group *bg); 309 void btrfs_dec_block_group_swap_extents(struct btrfs_block_group *bg, int amount);
|
D | extent-tree.c | 2693 btrfs_inc_block_group_reservations(struct btrfs_block_group *bg) in btrfs_inc_block_group_reservations() argument 2695 atomic_inc(&bg->reservations); in btrfs_inc_block_group_reservations() 3553 static int find_free_extent_clustered(struct btrfs_block_group *bg, in find_free_extent_clustered() argument 3563 cluster_bg = btrfs_lock_cluster(bg, last_ptr, ffe_ctl->delalloc); in find_free_extent_clustered() 3566 if (cluster_bg != bg && (cluster_bg->ro || in find_free_extent_clustered() 3596 if (ffe_ctl->loop >= LOOP_NO_EMPTY_SIZE && cluster_bg != bg) { in find_free_extent_clustered() 3605 if (cluster_bg != bg) in find_free_extent_clustered() 3616 bg->full_stripe_len); in find_free_extent_clustered() 3617 ret = btrfs_find_space_cluster(bg, last_ptr, ffe_ctl->search_start, in find_free_extent_clustered() 3621 offset = btrfs_alloc_from_cluster(bg, last_ptr, in find_free_extent_clustered() [all …]
|
D | qgroup.h | 424 struct btrfs_block_group *bg,
|
D | relocation.c | 3595 struct btrfs_block_group *bg; in btrfs_relocate_block_group() local 3604 bg = btrfs_lookup_block_group(fs_info, group_start); in btrfs_relocate_block_group() 3605 if (!bg) in btrfs_relocate_block_group() 3608 if (btrfs_pinned_by_swapfile(fs_info, bg)) { in btrfs_relocate_block_group() 3609 btrfs_put_block_group(bg); in btrfs_relocate_block_group() 3615 btrfs_put_block_group(bg); in btrfs_relocate_block_group() 3620 rc->block_group = bg; in btrfs_relocate_block_group()
|
D | inode.c | 10293 struct btrfs_block_group *bg; in btrfs_swap_activate() local 10374 bg = btrfs_lookup_block_group(fs_info, logical_block_start); in btrfs_swap_activate() 10375 if (!bg) { in btrfs_swap_activate() 10382 if (!btrfs_inc_block_group_swap_extents(bg)) { in btrfs_swap_activate() 10385 bg->start, in btrfs_swap_activate() 10388 btrfs_put_block_group(bg); in btrfs_swap_activate() 10393 ret = btrfs_add_swapfile_pin(inode, bg, true); in btrfs_swap_activate() 10395 btrfs_put_block_group(bg); in btrfs_swap_activate()
|
D | qgroup.c | 4204 struct btrfs_block_group *bg, in btrfs_qgroup_add_swapped_blocks() argument 4254 if (bg && bg->flags & BTRFS_BLOCK_GROUP_DATA) in btrfs_qgroup_add_swapped_blocks()
|
/fs/ext4/ |
D | super.c | 290 struct ext4_group_desc *bg) in ext4_block_bitmap() argument 292 return le32_to_cpu(bg->bg_block_bitmap_lo) | in ext4_block_bitmap() 294 (ext4_fsblk_t)le32_to_cpu(bg->bg_block_bitmap_hi) << 32 : 0); in ext4_block_bitmap() 298 struct ext4_group_desc *bg) in ext4_inode_bitmap() argument 300 return le32_to_cpu(bg->bg_inode_bitmap_lo) | in ext4_inode_bitmap() 302 (ext4_fsblk_t)le32_to_cpu(bg->bg_inode_bitmap_hi) << 32 : 0); in ext4_inode_bitmap() 306 struct ext4_group_desc *bg) in ext4_inode_table() argument 308 return le32_to_cpu(bg->bg_inode_table_lo) | in ext4_inode_table() 310 (ext4_fsblk_t)le32_to_cpu(bg->bg_inode_table_hi) << 32 : 0); in ext4_inode_table() 314 struct ext4_group_desc *bg) in ext4_free_group_clusters() argument [all …]
|
D | ext4.h | 3145 struct ext4_group_desc *bg); 3147 struct ext4_group_desc *bg); 3149 struct ext4_group_desc *bg); 3151 struct ext4_group_desc *bg); 3153 struct ext4_group_desc *bg); 3155 struct ext4_group_desc *bg); 3157 struct ext4_group_desc *bg); 3159 struct ext4_group_desc *bg, ext4_fsblk_t blk); 3161 struct ext4_group_desc *bg, ext4_fsblk_t blk); 3163 struct ext4_group_desc *bg, ext4_fsblk_t blk); [all …]
|
/fs/ext2/ |
D | super.c | 797 unsigned long bg, first_meta_bg; in descriptor_loc() local 804 bg = sbi->s_desc_per_block * nr; in descriptor_loc() 806 return ext2_group_first_block_no(sb, bg) + ext2_bg_has_super(sb, bg); in descriptor_loc()
|