aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/block-group.c
AgeCommit message (Expand)AuthorFilesLines
8 daysMerge 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-97/+68
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-24/+21
2022-09-26btrfs: simplify block group traversal in btrfs_put_block_group_cacheJosef Bacik1-27/+15
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
2022-07-25btrfs: reset block group chunk force if we have to waitJosef Bacik1-0/+1
2022-05-16btrfs: zoned: zone finish unused block groupNaohiro Aota1-0/+8
2022-05-16btrfs: avoid double search for block group during NOCOW writesFilipe Manana1-17/+41
2022-05-16btrfs: return block group directly at btrfs_next_block_group()Filipe Manana1-1/+1
2022-05-16btrfs: use a read/write lock for protecting the block groups treeFilipe Manana1-20/+20
2022-05-16btrfs: use rbtree with leftmost node cached for tracking lowest block groupFilipe Manana1-18/+12
2022-05-16btrfs: zoned: make auto-reclaim less aggressiveJohannes Thumshirn1-0/+10
2022-05-16btrfs: allow block group background reclaim for non-zoned filesystemsJosef Bacik1-0/+31
2022-05-16btrfs: use btrfs_for_each_slot in find_first_block_groupGabriel Niebler1-24/+2
2022-04-06btrfs: zoned: activate block group only for extent allocationNaohiro Aota1-8/+16
2022-04-06btrfs: return allocated block group from do_chunk_alloc()Naohiro Aota1-3/+13
2022-04-06btrfs: remove unused variable in btrfs_{start,write}_dirty_block_groups()Nathan Chancellor1-4/+0
2022-03-14btrfs: zoned: mark relocation as writingNaohiro Aota1-1/+7
2022-03-14btrfs: add support for multiple global rootsJosef Bacik1-2/+26
2022-01-31btrfs: skip reserved bytes warning on unmount after log cleanup failureFilipe Manana1-2/+24
2022-01-31btrfs: don't start transaction for scrub if the fs is mounted read-onlyQu Wenruo1-0/+13
2022-01-07btrfs: make send work with concurrent block group relocationFilipe Manana1-7/+2
2022-01-03btrfs: stop accessing ->extent_root directlyJosef Bacik1-1/+2
2022-01-03btrfs: add a btrfs_block_group_root() helperJosef Bacik1-9/+10
2022-01-03btrfs: change root to fs_info for btrfs_reserve_metadata_bytesJosef Bacik1-1/+1
2022-01-03btrfs: remove spurious unlock/lock of unused_bgs_lockNikolay Borisov1-2/+0
2021-10-26btrfs: update comments for chunk allocation -ENOSPC casesFilipe Manana1-3/+18
2021-10-26btrfs: fix deadlock between chunk allocation and chunk btree modificationsFilipe Manana1-55/+91
2021-10-26btrfs: zoned: use greedy gc for auto reclaimJohannes Thumshirn1-0/+22
2021-10-26btrfs: reduce btrfs_update_block_group alloc argument to boolAnand Jain1-1/+1
2021-10-26btrfs: zoned: add a dedicated data relocation block groupJohannes Thumshirn1-0/+1
2021-10-26btrfs: zoned: activate new block groupNaohiro Aota1-0/+6
2021-10-26btrfs: zoned: implement active zone trackingNaohiro Aota1-0/+11
2021-10-26btrfs: zoned: introduce physical_map to btrfs_block_groupNaohiro Aota1-0/+1
2021-10-26btrfs: zoned: calculate free space from zone capacityNaohiro Aota1-2/+5
2021-10-26btrfs: zoned: move btrfs_free_excluded_extents out of btrfs_calc_zone_unusableNaohiro Aota1-0/+2
2021-10-26btrfs: rename and switch to bool btrfs_chunk_readonlyAnand Jain1-7/+10
2021-10-25btrfs: rename btrfs_alloc_chunk to btrfs_create_chunkNikolay Borisov1-3/+3
2021-08-23btrfs: zoned: suppress reclaim error message on EAGAINNaohiro Aota1-1/+1
2021-08-23btrfs: rescue: allow ibadroots to skip bad extent tree when reading block gro...Qu Wenruo1-0/+19
2021-08-23btrfs: make btrfs_finish_chunk_alloc private to block-group.cNikolay Borisov1-2/+91
2021-07-07btrfs: don't block if we can't acquire the reclaim lockJohannes Thumshirn1-1/+9
2021-07-07btrfs: rework chunk allocation to avoid exhaustion of the system chunk arrayFilipe Manana1-36/+249
2021-07-07btrfs: fix deadlock with concurrent chunk allocations involving system chunksFilipe Manana1-57/+1
2021-07-07btrfs: zoned: print unusable percentage when reclaiming block groupsJohannes Thumshirn1-2/+12
2021-07-07btrfs: zoned: fix types for u64 division in btrfs_reclaim_bgs_workDavid Sterba1-1/+1
2021-06-22btrfs: rip out btrfs_space_info::total_bytes_pinnedJosef Bacik1-3/+0
2021-06-22btrfs: ensure relocation never runs while we have send operations runningFilipe Manana1-2/+8
2021-06-21btrfs: make free space cache size consistent across different PAGE_SIZEQu Wenruo1-9/+9