aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/block-group.c
AgeCommit message (Expand)AuthorFilesLines
8 daysbtrfs: add missing unlikely to if branches leading to a DEBUG_WARN()Filipe Manana1-1/+1
8 daysbtrfs: use a kmem_cache for free space control structuresFilipe Manana1-2/+13
8 daysbtrfs: use a kmem_cache for block groupsFilipe Manana1-3/+20
2026-05-08btrfs: fix check_chunk_block_group_mappings() to iterate all chunk mapsZhengYuan Huang1-15/+8
2026-04-07btrfs: replace BUG_ON() with error return in cache_save_setup()Teng Liu1-1/+7
2026-04-07btrfs: zoned: limit number of zones reclaimed in flush_space()Johannes Thumshirn1-4/+9
2026-04-07btrfs: create btrfs_reclaim_block_groups()Johannes Thumshirn1-3/+9
2026-04-07btrfs: move reclaiming of a single block group into its own functionJohannes Thumshirn1-123/+133
2026-04-07btrfs: replace kcalloc() calls to kzalloc_objs()Miquel Sabaté Solà1-1/+1
2026-04-07btrfs: remove bogus root search condition in load_extent_tree_free()Filipe Manana1-2/+1
2026-04-07btrfs: change return type of cache_save_setup to voidJohannes Thumshirn1-10/+7
2026-04-07btrfs: zoned: move partially zone_unusable block groups to reclaim listJohannes Thumshirn1-0/+18
2026-04-07btrfs: pass boolean literals as the last argument to inc_block_group_ro()Filipe Manana1-8/+8
2026-03-28Merge tag 'for-7.0-rc5-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-1/+1
2026-03-23btrfs: fix leak of kobject name for sub-group space_infoShin'ichiro Kawasaki1-1/+1
2026-03-21Merge tag 'for-7.0-rc4-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-0/+36
2026-03-17btrfs: check for NULL root after calls to btrfs_extent_root()Filipe Manana1-0/+36
2026-03-03Merge tag 'for-7.0-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-1/+0
2026-02-26btrfs: remove pointless WARN_ON() in cache_save_setup()Filipe Manana1-1/+0
2026-02-21treewide: Replace kmalloc with kmalloc_obj for non-scalar typesKees Cook1-4/+3
2026-02-18btrfs: reset block group size class when it becomes emptyJiasheng Jiang1-0/+10
2026-02-03btrfs: do not BUG_ON() in btrfs_remove_block_group()Filipe Manana1-1/+6
2026-02-03btrfs: abort transaction on error in btrfs_remove_block_group()Filipe Manana1-5/+14
2026-02-03btrfs: remove out label in load_extent_tree_free()Filipe Manana1-6/+4
2026-02-03btrfs: deal with missing root in sample_block_group_extent_item()Filipe Manana1-0/+6
2026-02-03btrfs: remove bogus root search condition in sample_block_group_extent_item()Filipe Manana1-2/+1
2026-02-03btrfs: assert block group is locked in btrfs_use_block_group_size_class()Filipe Manana1-0/+1
2026-02-03btrfs: don't pass block group argument to load_block_group_size_class()Filipe Manana1-7/+6
2026-02-03btrfs: allocate path on stack in load_block_group_size_class()Filipe Manana1-13/+19
2026-02-03btrfs: make load_block_group_size_class() return voidFilipe Manana1-8/+8
2026-02-03btrfs: consolidate reclaim readiness checks in btrfs_should_reclaim()Sun YangKai1-6/+6
2026-02-03btrfs: fix periodic reclaim conditionSun YangKai1-2/+4
2026-02-03btrfs: use the btrfs_block_group_end() helper everywhereFilipe Manana1-11/+10
2026-02-03btrfs: populate fully_remapped_bgs_list on mountMark Harmstone1-0/+75
2026-02-03btrfs: handle discarding fully-remapped block groupsMark Harmstone1-13/+17
2026-02-03btrfs: handle setting up relocation of block group with remap-treeMark Harmstone1-1/+5
2026-02-03btrfs: handle deletions from remapped block groupMark Harmstone1-26/+61
2026-02-03btrfs: add extended version of struct block_group_itemMark Harmstone1-24/+68
2026-02-03btrfs: rename struct btrfs_block_group field commit_used to last_usedMark Harmstone1-12/+12
2026-02-03btrfs: remove remapped block groups from the free-space-treeMark Harmstone1-3/+16
2026-02-03btrfs: add and use helper to compute the available space for a block groupFilipe Manana1-7/+2
2026-02-03btrfs: split btrfs_fs_closing() and change return type to boolDavid Sterba1-1/+1
2026-02-03btrfs: rename btrfs_create_block_group_cache to btrfs_create_block_groupJohannes Thumshirn1-4/+4
2026-02-03btrfs: merge setting ret and return retDavid Sterba1-2/+1
2025-12-03Merge tag 'for-6.19-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kda...Linus Torvalds1-35/+44
2025-11-25btrfs: remaining BTRFS_PATH_AUTO_FREE conversionsDavid Sterba1-2/+1
2025-11-24btrfs: use booleans for delalloc arguments and struct find_free_extent_ctlFilipe Manana1-1/+1
2025-11-24btrfs: use bool type for btrfs_path members used as booleansFilipe Manana1-4/+4
2025-11-24btrfs: reduce block group critical section in btrfs_add_reserved_bytes()Filipe Manana1-6/+14
2025-11-24btrfs: reduce block group critical section in btrfs_free_reserved_bytes()Filipe Manana1-6/+9
2025-11-24btrfs: reduce space_info critical section in btrfs_chunk_alloc()Filipe Manana1-3/+3
2025-11-24btrfs: remove fs_info argument from btrfs_zoned_activate_one_bg()Filipe Manana1-2/+2
2025-11-24btrfs: remove fs_info argument from btrfs_dump_space_info()Filipe Manana1-4/+4
2025-11-24btrfs: remove fs_info argument from btrfs_can_overcommit()Filipe Manana1-2/+1
2025-11-24btrfs: remove fs_info argument from btrfs_try_granting_tickets()Filipe Manana1-2/+2
2025-11-24btrfs: fix racy bitfield write in btrfs_clear_space_info_full()Boris Burkov1-3/+3
2025-11-05btrfs: use super write guard in btrfs_reclaim_bgs_work()Christian Brauner1-7/+3
2025-09-30Merge tag 'for-6.18-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kda...Linus Torvalds1-15/+15
2025-09-29Merge tag 'vfs-6.18-rc1.workqueue' of git://git.kernel.org/pub/scm/linux/kern...Linus Torvalds1-1/+1
2025-09-23btrfs: add unlikely annotations to branches leading to transaction abortDavid Sterba1-5/+5
2025-09-23btrfs: add unlikely annotations to branches leading to EUCLEANDavid Sterba1-7/+7
2025-09-23btrfs: fix typos in comments and stringsDavid Sterba1-2/+2
2025-09-22btrfs: convert several int parameters to boolDavid Sterba1-1/+1
2025-09-19fs: replace use of system_unbound_wq with system_dfl_wqMarco Crivellari1-1/+1
2025-09-15btrfs: annotate block group access with data_race() when sorting for reclaimFilipe Manana1-1/+8
2025-07-22btrfs: unfold transaction aborts when writing dirty block groupsFilipe Manana1-2/+4
2025-07-22btrfs: zoned: requeue to unused block group list if zone finish failedNaohiro Aota1-1/+3
2025-07-22btrfs: zoned: do not remove unwritten non-data block groupNaohiro Aota1-2/+25
2025-07-22btrfs: remove btrfs_clear_extent_bits()Filipe Manana1-6/+6
2025-07-22btrfs: don't print relocation messages from auto reclaimJohannes Thumshirn1-1/+1
2025-07-22btrfs: remove redundant auto reclaim log messageJohannes Thumshirn1-17/+0
2025-07-21btrfs: change dump_block_groups() in btrfs_dump_space_info() from int to boolJohannes Thumshirn1-4/+4
2025-07-21btrfs: add btrfs prefix to free space tree exported functionsFilipe Manana1-5/+5
2025-05-15btrfs: use boolean for delalloc argument to btrfs_free_reserved_bytes()Filipe Manana1-6/+6
2025-05-15btrfs: simplify getting and extracting previous transaction at clean_pinned_e...Filipe Manana1-3/+2
2025-05-15btrfs: tweak extent/chunk allocation for space_info sub-spaceNaohiro Aota1-0/+3
2025-05-15btrfs: introduce btrfs_space_info sub-groupNaohiro Aota1-0/+11
2025-05-15btrfs: add space_info parameter for block group creationNaohiro Aota1-8/+22
2025-05-15btrfs: add space_info argument to btrfs_chunk_alloc()Naohiro Aota1-10/+17
2025-05-15btrfs: factor out check_removing_space_info() from btrfs_free_block_groups()Naohiro Aota1-22/+27
2025-05-15btrfs: trivial conversion to return bool instead of intDavid Sterba1-6/+6
2025-05-15btrfs: use list_first_entry() everywhereDavid Sterba1-5/+4
2025-05-15btrfs: rename the functions to search for bits in extent rangesFilipe Manana1-3/+3
2025-05-15btrfs: rename set_extent_bit() to include a btrfs prefixFilipe Manana1-8/+8
2025-05-15btrfs: rename the functions to clear bits for an extent rangeFilipe Manana1-6/+6
2025-05-15btrfs: do more trivial BTRFS_PATH_AUTO_FREE conversionsDavid Sterba1-2/+1
2025-05-15btrfs: remove EXTENT_UPTODATE io tree flagFilipe Manana1-4/+4
2025-05-15btrfs: stop searching for EXTENT_DIRTY bit in the excluded extents io treeFilipe Manana1-2/+1
2025-03-18btrfs: codify pattern for adding block_group to bg_listBoris Burkov1-24/+31
2025-03-18btrfs: explicitly ref count block_group on new_bgs listBoris Burkov1-0/+2
2025-03-18btrfs: fix block group refcount race in btrfs_create_pending_block_groups()Boris Burkov1-0/+3
2025-03-18btrfs: remove unnecessary fs_info argument from btrfs_add_block_group_cache()Filipe Manana1-8/+8
2025-03-18btrfs: do trivial BTRFS_PATH_AUTO_FREE conversionsDavid Sterba1-13/+7
2025-03-18btrfs: fix reclaimed bytes accounting after automatic block group reclaimFilipe Manana1-7/+21
2025-03-18btrfs: get used bytes while holding lock at btrfs_reclaim_bgs_work()Filipe Manana1-5/+16
2025-03-18btrfs: get zone unusable bytes while holding lock at btrfs_reclaim_bgs_work()Filipe Manana1-7/+11
2025-03-18btrfs: unify ordering of btrfs_key initializationsDavid Sterba1-3/+3
2025-01-13btrfs: block-group: remove unnecessary calls to btrfs_mark_buffer_dirty()Filipe Manana1-2/+0
2025-01-13btrfs: update btrfs_add_block_group_cache() to use rb helperRoger L. Beckermeyer III1-24/+22
2025-01-13btrfs: drop fs_info argument from btrfs_update_space_info_*()Naohiro Aota1-10/+6
2024-11-11btrfs: correct typos in multiple comments across various filesShen Lichuan1-1/+1
2024-10-17btrfs: zoned: fix zone unusable accounting for freed reserved extentNaohiro Aota1-0/+2
2024-09-10btrfs: constify more pointer parametersDavid Sterba1-17/+17
2024-07-29btrfs: zoned: fix zone_unusable accounting on making block group read-write a...Naohiro Aota1-5/+8
2024-07-11btrfs: switch btrfs_block_group::inode to struct btrfs_inodeDavid Sterba1-2/+2
2024-07-11btrfs: prevent pathological periodic reclaim loopsBoris Burkov1-3/+9
2024-07-11btrfs: periodic block_group reclaimBoris Burkov1-0/+2
2024-07-11btrfs: dynamic block_group reclaim thresholdBoris Burkov1-8/+10
2024-07-11btrfs: report reclaim stats in sysfsBoris Burkov1-0/+10
2024-07-11btrfs: move btrfs_block_group_root() to block-group.cAnand Jain1-0/+7
2024-07-01btrfs: fix adding block group to a reclaim list and the unused list during re...Naohiro Aota1-2/+11
2024-06-13btrfs: retry block group reclaim without infinite loopBoris Burkov1-2/+9
2024-03-26btrfs: zoned: don't skip block groups with 100% zone unusableJohannes Thumshirn1-1/+2
2024-03-05btrfs: mark btrfs_put_caching_control() staticLijuan Li1-1/+1
2024-03-04btrfs: handle block group lookup error when it's being removedDavid Sterba1-1/+3
2024-03-04btrfs: add comment about list_is_singular() use at btrfs_delete_unused_bgs()Filipe Manana1-0/+7
2024-03-04btrfs: return errors from unpin_extent_range()David Sterba1-1/+1
2024-02-09btrfs: add new unused block groups to the list of unused block groupsFilipe Manana1-0/+31
2024-02-09btrfs: do not delete unused block group if it may be used soonFilipe Manana1-0/+46
2024-02-09btrfs: add and use helper to check if block group is usedFilipe Manana1-2/+1
2023-12-15btrfs: fix typos found by codespellDavid Sterba1-1/+1
2023-12-15btrfs: remove stripe size local variable from insert_dev_extents()Filipe Manana1-4/+1
2023-12-15btrfs: use a dedicated data structure for chunk mapsFilipe Manana1-96/+67
2023-12-15btrfs: split assert into two different asserts when removing block groupFilipe Manana1-1/+2
2023-10-12btrfs: stop reserving excessive space for block group item insertionsFilipe Manana1-3/+2
2023-10-12btrfs: stop reserving excessive space for block group item updatesFilipe Manana1-5/+7
2023-10-12btrfs: remove redundant root argument from btrfs_update_inode()Filipe Manana1-2/+1
2023-10-12btrfs: merge ordered work callbacks in btrfs_work into oneDavid Sterba1-1/+1
2023-10-12btrfs: remove pointless loop from btrfs_update_block_group()Filipe Manana1-80/+67
2023-10-12btrfs: abort transaction on generation mismatch when marking eb as dirtyFilipe Manana1-2/+2
2023-10-12btrfs: stop doing excessive space reservation for csum deletionFilipe Manana1-4/+4
2023-10-12btrfs: allow to run delayed refs by bytes to be released instead of countFilipe Manana1-2/+1
2023-09-08btrfs: fix race between finishing block group creation and its item updateFilipe Manana1-2/+10
2023-08-21btrfs: zoned: don't activate non-DATA BG on allocationNaohiro Aota1-1/+1
2023-08-21btrfs: zoned: activate metadata block group on write timeNaohiro Aota1-0/+11
2023-08-21btrfs: move btrfs_free_excluded_extents() into block-group.cFilipe Manana1-0/+6
2023-08-21btrfs: open code trivial btrfs_add_excluded_extent()Filipe Manana1-4/+6
2023-08-21btrfs: make find_first_extent_bit() return a booleanFilipe Manana1-5/+4
2023-08-21btrfs: rename add_new_free_space() to btrfs_add_new_free_space()Filipe Manana1-10/+10
2023-08-21btrfs: update documentation for add_new_free_space()Filipe Manana1-4/+11
2023-08-12Merge tag 'for-6.5-rc5-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-2/+15
2023-08-10btrfs: wait for actual caching progress during allocationJosef Bacik1-2/+15
2023-07-27Merge tag 'for-6.5-rc3-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-17/+34
2023-07-24btrfs: remove BUG_ON()'s in add_new_free_space()Filipe Manana1-17/+34
2023-07-20Merge tag 'for-6.5-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-2/+12
2023-07-18btrfs: zoned: fix memory leak after finding block group with super blocksFilipe Manana1-0/+1
2023-07-11btrfs: fix use-after-free of new block group that became unusedFilipe Manana1-2/+11
2023-06-26Merge tag 'for-6.5-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdav...Linus Torvalds1-7/+40
2023-06-22btrfs: fix remaining u32 overflows when left shifting stripe_nrQu Wenruo1-1/+1
2023-06-19btrfs: add handling for RAID1C23/DUP to btrfs_reduce_alloc_profileMatt Corallo1-1/+8
2023-06-19btrfs: reinsert BGs failed to reclaimNaohiro Aota1-0/+2
2023-06-19btrfs: bail out reclaim process if filesystem is read-onlyNaohiro Aota1-2/+9
2023-06-19btrfs: move out now unused BG from the reclaim listNaohiro Aota1-1/+4
2023-06-19btrfs: delete unused BGs while reclaiming BGsNaohiro Aota1-0/+14
2023-06-19btrfs: drop gfp from parameter extent state helpersDavid Sterba1-1/+1
2023-06-19btrfs: drop NOFAIL from set_extent_bit allocation masksDavid Sterba1-2/+1
2023-06-19btrfs: open code set_extent_dirtyDavid Sterba1-3/+4
2023-05-17btrfs: scrub: try harder to mark RAID56 block groups read-onlyQu Wenruo1-2/+12
2023-04-17btrfs: scrub: remove the old scrub recheck codeQu Wenruo1-11/+0
2023-04-17btrfs: remove bytes_used argument from btrfs_make_block_group()Filipe Manana1-5/+2
2023-04-17btrfs: reduce div64 calls by limiting the number of stripes of a chunk to u32Qu Wenruo1-7/+5
2023-04-17btrfs: replace map_lookup->stripe_len by BTRFS_STRIPE_LENQu Wenruo1-4/+6
2023-03-15btrfs: zoned: drop space_info->active_total_bytesNaohiro Aota1-6/+0
2023-03-15btrfs: use temporary variable for space_info in btrfs_update_block_groupJosef Bacik1-10/+12
2023-03-08btrfs: fix block group item corruption after inserting new block groupFilipe Manana1-1/+12
2023-03-06btrfs: fix percent calculation for bg reclaim messageJohannes Thumshirn1-1/+2
2023-03-06btrfs: fix potential dead lock in size class loading logicBoris Burkov1-26/+16
2023-02-15btrfs: remove the bdev argument to btrfs_rmap_blockChristoph Hellwig1-7/+2
2023-02-13btrfs: don't use size classes for zoned file systemsBoris Burkov1-2/+11
2023-02-13btrfs: load block group size class when cachingBoris Burkov1-0/+148
2023-02-13btrfs: introduce size class to block group allocatorBoris Burkov1-16/+89
2023-02-13btrfs: fix uninitialized variable warning in btrfs_update_block_groupJosef Bacik1-1/+1
2022-12-05btrfs: convert btrfs_block_group::needs_free_space to runtime flagDavid Sterba1-1/+1
2022-12-05btrfs: simplify percent calculation helpers, rename div_factorDavid Sterba1-3/+3
2022-12-05btrfs: update function commentsDavid Sterba1-10/+10
2022-12-05btrfs: move extent-tree helpers into their own header fileJosef Bacik1-0/+1
2022-12-05btrfs: move accessor helpers into accessors.hJosef Bacik1-0/+1
2022-12-05btrfs: move fs wide helpers out of ctree.hJosef Bacik1-0/+1
2022-12-05btrfs: skip update of block group item if used bytes are the sameQu Wenruo1-1/+27
2022-12-05btrfs: re-check reclaim condition in reclaim workerBoris Burkov1-25/+40
2022-12-05btrfs: skip reclaim if block_group is emptyBoris Burkov1-0/+18
2022-12-05btrfs: move btrfs_should_fragment_free_space into block-group.cJosef Bacik1-0/+12
2022-10-11btrfs: delete stale comments after merge conflict resolutionDavid Sterba1-2/+0
2022-09-29btrfs: add the ability to use NO_FLUSH for data reservationsJosef Bacik1-1/+1
2022-09-26btrfs: move btrfs_full_stripe_locks_tree into block-group.hJosef Bacik1-1/+2
2022-09-26btrfs: enhance unsupported compat RO flags handlingQu Wenruo1-1/+10
2022-09-26btrfs: remove use btrfs_remove_free_space_cache instead of variantJosef Bacik1-1/+1
2022-09-26btrfs: get rid of block group caching progress logicOmar Sandoval1-13/+0
2022-09-26btrfs: delete btrfs_wait_space_cache_v1_finishedJosef Bacik1-0/+2
2022-09-26btrfs: remove BLOCK_GROUP_FLAG_HAS_CACHING_CTLJosef Bacik1-23/+20
2022-09-26btrfs: simplify block group traversal in btrfs_put_block_group_cacheJosef Bacik1-26/+14
2022-09-26btrfs: convert block group bit field to use bit helpersJosef Bacik1-10/+15
2022-09-26btrfs: handle space_info setting of bg in btrfs_add_bg_to_space_infoJosef Bacik1-22/+3
2022-09-26btrfs: simplify arguments of btrfs_update_space_info and renameJosef Bacik1-17/+11
2022-09-26btrfs: use btrfs_fs_closing for background bg workJosef Bacik1-0/+6
2022-08-23btrfs: fix space cache corruption and potential double allocationsOmar Sandoval1-32/+15
2022-07-27btrfs: reset RO counter on block group if we fail to relocateJosef Bacik1-1/+3
2022-07-25btrfs: zoned: activate necessary block groupNaohiro Aota1-0/+16
2022-07-25btrfs: zoned: introduce space_info->active_total_bytesNaohiro Aota1-3/+9
2022-07-25btrfs: merge calculations for simple striped profiles in btrfs_rmap_blockDavid Sterba1-3/+2