aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/block-group.c
AgeCommit message (Expand)AuthorFilesLines
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
2021-06-17btrfs: zoned: fix negative space_info->bytes_readonlyNaohiro Aota1-4/+4
2021-04-20btrfs: zoned: automatically reclaim zonesJohannes Thumshirn1-0/+101
2021-04-20btrfs: rename delete_unused_bgs_mutex to reclaim_bgs_lockJohannes Thumshirn1-3/+3
2021-04-19btrfs: fix exhaustion of the system chunk array due to concurrent allocationsFilipe Manana1-1/+57
2021-04-19btrfs: replace open coded while loop with proper constructNikolay Borisov1-19/+23
2021-02-22btrfs: fix race between writes to swap files and scrubFilipe Manana1-1/+32
2021-02-09btrfs: zoned: extend zoned allocator to use dedicated tree-log block groupNaohiro Aota1-0/+2
2021-02-09btrfs: extend btrfs_rmap_block for specifying a deviceNaohiro Aota1-5/+11
2021-02-09btrfs: zoned: reset zones of unused block groupsNaohiro Aota1-2/+6
2021-02-09btrfs: zoned: implement sequential extent allocationNaohiro Aota1-0/+4
2021-02-09btrfs: zoned: track unusable bytes for zonesNaohiro Aota1-12/+39
2021-02-09btrfs: zoned: calculate allocation offset for conventional zonesNaohiro Aota1-2/+2
2021-02-09btrfs: zoned: load zone's allocation offsetNaohiro Aota1-0/+15
2021-02-09btrfs: release path before calling to btrfs_load_block_group_zone_infoJohannes Thumshirn1-21/+17
2021-02-08btrfs: do not block on deleted bgs mutex in the cleanerJosef Bacik1-3/+8
2021-02-08btrfs: splice remaining dirty_bg's onto the transaction dirty bg listJosef Bacik1-7/+12
2021-02-08btrfs: handle space_info::total_bytes_pinned inside the delayed ref itselfJosef Bacik1-7/+3
2021-02-08btrfs: document fs_info in btrfs_rmap_blockNikolay Borisov1-1/+3
2021-01-25btrfs: fix possible free space tree corruption with online conversionJosef Bacik1-1/+9
2021-01-18btrfs: don't clear ret in btrfs_start_dirty_block_groupsJosef Bacik1-1/+2
2020-12-09btrfs: skip space_cache v1 setup when not using itBoris Burkov1-0/+3
2020-12-09btrfs: remove free space items when disabling space cache v1Boris Burkov1-37/+2
2020-12-09btrfs: only mark bg->needs_free_space if free space tree is onBoris Burkov1-1/+2
2020-12-09btrfs: implement log-structured superblock for ZONED modeNaohiro Aota1-0/+9
2020-12-08btrfs: make btrfs_update_inode take btrfs_inodeNikolay Borisov1-1/+1
2020-12-08btrfs: protect fs_info->caching_block_groups by block_group_cache_lockJosef Bacik1-6/+6
2020-12-08btrfs: load free space cache asynchronouslyJosef Bacik1-70/+53
2020-12-08btrfs: load free space cache into a temporary ctlJosef Bacik1-28/+1
2020-12-08btrfs: introduce mount option rescue=ignorebadrootsJosef Bacik1-0/+48
2020-10-26btrfs: drop the path before adding block group sysfs filesJosef Bacik1-0/+1
2020-10-07btrfs: do not create raid sysfs entries under any locksJosef Bacik1-6/+25
2020-10-07btrfs: kill the RCU protection for fs_info->space_infoJosef Bacik1-14/+2
2020-10-07btrfs: make read_block_group_item return voidMarcos Paulo de Souza1-6/+2
2020-10-07btrfs: call btrfs_try_granting_tickets when reserving spaceJosef Bacik1-0/+7
2020-10-07btrfs: call btrfs_try_granting_tickets when freeing reserved bytesJosef Bacik1-0/+2
2020-10-07btrfs: delete duplicated words + other fixes in commentsRandy Dunlap1-1/+1
2020-08-27btrfs: block-group: fix free-space bitmap thresholdMarcos Paulo de Souza1-1/+3
2020-07-27btrfs: if we're restriping, use the target restripe profileJosef Bacik1-5/+2
2020-07-27btrfs: don't adjust bg flags and use default allocation profilesJosef Bacik1-50/+2
2020-07-27btrfs: convert block group refcount to refcount_tJosef Bacik1-4/+4
2020-07-27btrfs: make btrfs_check_data_free_space take btrfs_inodeNikolay Borisov1-1/+2
2020-07-27btrfs: remove no longer necessary chunk mutex locking casesFilipe Manana1-5/+0
2020-07-27btrfs: factor out reading of bg from find_frist_block_groupJohannes Thumshirn1-46/+56
2020-07-27btrfs: get mapping tree directly from fsinfo in find_first_block_groupJohannes Thumshirn1-1/+1
2020-07-27btrfs: simplify checks when adding excluded rangesNikolay Borisov1-17/+4
2020-07-27btrfs: read stripe len directly in btrfs_rmap_blockNikolay Borisov1-10/+3
2020-06-16btrfs: fix race between block group removal and block group creationFilipe Manana1-8/+19
2020-06-16btrfs: fix a block group ref counter leak after failure to remove block groupFilipe Manana1-10/+9
2020-05-25btrfs: remove duplicated include in block-group.cTiezhu Yang1-1/+0
2020-05-25btrfs: block-group: rename write_one_cache_group()Qu Wenruo1-8/+8
2020-05-25btrfs: block-group: refactor how we insert a block group itemQu Wenruo1-16/+25
2020-05-25btrfs: block-group: refactor how we delete one block group itemQu Wenruo1-12/+25
2020-05-25btrfs: block-group: refactor how we read one block group itemQu Wenruo1-15/+32
2020-05-25btrfs: block-group: don't set the wrong READA flag for btrfs_read_block_groups()Qu Wenruo1-1/+0
2020-05-25btrfs: move the block group freeze/unfreeze helpers into block-group.cFilipe Manana1-0/+41
2020-05-25btrfs: rename member 'trimming' of block group to a more generic nameFilipe Manana1-13/+16
2020-05-25btrfs: simplify error handling of clean_pinned_extents()Filipe Manana1-12/+6
2020-05-25btrfs: improve global reserve stealing logicJosef Bacik1-1/+1
2020-04-23btrfs: fix block group leak when removing failsXiyu Yang1-6/+10
2020-04-23btrfs: fix memory leak of transaction when deleting unused block groupFilipe Manana1-0/+4
2020-04-08btrfs: fix reclaim counter leak of space_info objectsFilipe Manana1-0/+1
2020-03-23btrfs: add RCU locks around block group initializationMadhuparna Bhowmik1-0/+2
2020-03-23btrfs: switch to per-transaction pinned extentsNikolay Borisov1-13/+25
2020-03-23btrfs: Factor out pinned extent clean up in btrfs_delete_unused_bgsNikolay Borisov1-29/+38
2020-03-23btrfs: add wrapper for transaction abort predicateDavid Sterba1-1/+1
2020-03-20btrfs: fix removal of raid[56|1c34} incompat flags after removing block groupFilipe Manana1-2/+2
2020-01-31btrfs: take overcommit into account in inc_block_group_roJosef Bacik1-11/+26
2020-01-31btrfs: fix force usage in inc_block_group_roJosef Bacik1-2/+2