aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent-tree.c
AgeCommit message (Expand)AuthorFilesLines
2025-11-25btrfs: remaining BTRFS_PATH_AUTO_FREE conversionsDavid Sterba1-25/+16
2025-11-24btrfs: use booleans for delalloc arguments and struct find_free_extent_ctlFilipe Manana1-9/+7
2025-11-24btrfs: use bool type for btrfs_path members used as booleansFilipe Manana1-4/+4
2025-11-24btrfs: headers cleanup to remove unnecessary local includesQu Wenruo1-0/+1
2025-11-24btrfs: apply the AUTO_K(V)FREE macros throughout the codeMiquel Sabaté Solà1-10/+7
2025-11-24btrfs: remove pointless label and goto from unpin_extent_range()Filipe Manana1-5/+3
2025-11-24btrfs: reduce block group critical section in unpin_extent_range()Filipe Manana1-8/+8
2025-11-24btrfs: change 'reserved' argument from pin_down_extent() to boolFilipe Manana1-6/+6
2025-11-24btrfs: remove 'reserved' argument from btrfs_pin_extent()Filipe Manana1-8/+7
2025-11-24btrfs: use local variable for space_info in pin_down_extent()Filipe Manana1-9/+10
2025-11-24btrfs: reduce block group critical section in pin_down_extent()Filipe Manana1-5/+5
2025-11-24btrfs: use the key format macros when printing keysFilipe Manana1-7/+7
2025-11-24btrfs: remove fs_info argument from btrfs_dump_space_info()Filipe Manana1-2/+1
2025-09-23btrfs: add unlikely annotations to branches leading to transaction abortDavid Sterba1-19/+19
2025-09-23btrfs: add unlikely annotations to branches leading to EIODavid Sterba1-2/+2
2025-09-23btrfs: add unlikely annotations to branches leading to EUCLEANDavid Sterba1-16/+16
2025-09-23btrfs: fix typos in comments and stringsDavid Sterba1-4/+4
2025-09-22btrfs: convert several int parameters to boolDavid Sterba1-8/+8
2025-09-22btrfs: zoned: refine extent allocator hint selectionNaohiro Aota1-2/+4
2025-07-22btrfs: fix ssd_spread overallocationBoris Burkov1-16/+17
2025-07-21btrfs: add btrfs prefix to is_fstree() and make it return boolFilipe Manana1-3/+3
2025-07-21btrfs: add btrfs prefix to free space tree exported functionsFilipe Manana1-2/+2
2025-07-21btrfs: tree-log: add and rename extent bits for dirty_log_pages treeDavid Sterba1-2/+2
2025-07-21btrfs: switch RCU helper versions to btrfs_warn()David Sterba1-1/+1
2025-07-21btrfs: use btrfs_root_id() where not done yetDavid Sterba1-1/+1
2025-07-21btrfs: use refcount_t type for the extent buffer reference counterFilipe Manana1-1/+1
2025-07-21btrfs: constify more pointer parametersDavid Sterba1-27/+27
2025-07-21btrfs: unfold transaction abort at walk_up_proc()Filipe Manana1-5/+10
2025-07-21btrfs: unfold transaction abort at __btrfs_inc_extent_ref()Filipe Manana1-5/+7
2025-05-15btrfs: fix harmless race getting delayed ref head count when running delayed ...Filipe Manana1-1/+6
2025-05-15btrfs: use boolean for delalloc argument to btrfs_free_reserved_extent()Filipe Manana1-4/+4
2025-05-15btrfs: use boolean for delalloc argument to btrfs_free_reserved_bytes()Filipe Manana1-1/+1
2025-05-15btrfs: tweak extent/chunk allocation for space_info sub-spaceNaohiro Aota1-1/+13
2025-05-15btrfs: add space_info argument to btrfs_chunk_alloc()Naohiro Aota1-2/+4
2025-05-15btrfs: make extent unpinning more efficient when committing transactionFilipe Manana1-13/+26
2025-05-15btrfs: remove variable to track trimmed bytes at btrfs_finish_extent_commit()Filipe Manana1-6/+2
2025-05-15btrfs: don't BUG_ON() when unpinning extents during transaction commitFilipe Manana1-2/+18
2025-05-15btrfs: trivial conversion to return bool instead of intDavid Sterba1-5/+5
2025-05-15btrfs: convert WARN_ON(IS_ENABLED(CONFIG_BTRFS_DEBUG)) to DEBUG_WARNDavid Sterba1-1/+1
2025-05-15btrfs: tracepoints: add btrfs prefix to names where it's missingFilipe Manana1-3/+3
2025-05-15btrfs: rename free_extent_state() to include a btrfs prefixFilipe Manana1-1/+1
2025-05-15btrfs: rename the functions to search for bits in extent rangesFilipe Manana1-5/+5
2025-05-15btrfs: rename set_extent_bit() to include a btrfs prefixFilipe Manana1-12/+12
2025-05-15btrfs: rename the functions to clear bits for an extent rangeFilipe Manana1-1/+1
2025-05-15btrfs: remove unused flag EXTENT_BUFFER_CORRUPTDaniel Vacek1-6/+0
2025-03-18btrfs: harden block_group::bg_list against list_del() racesBoris Burkov1-0/+8
2025-03-18btrfs: use BTRFS_PATH_AUTO_FREE in run_delayed_extent_op()David Sterba1-6/+5
2025-03-18btrfs: use BTRFS_PATH_AUTO_FREE in btrfs_lookup_extent_info()David Sterba1-6/+5
2025-03-18btrfs: do trivial BTRFS_PATH_AUTO_FREE conversionsDavid Sterba1-17/+8
2025-03-18btrfs: unify ordering of btrfs_key initializationsDavid Sterba1-4/+4
2025-01-13btrfs: use SECTOR_SIZE defines in btrfs_issue_discard()David Sterba1-2/+2
2025-01-13btrfs: extent-tree: remove unnecessary calls to btrfs_mark_buffer_dirty()Filipe Manana1-10/+0
2025-01-13btrfs: add assertions and comment about path expectations to btrfs_cross_ref_...Filipe Manana1-0/+25
2025-01-13btrfs: add function comment for check_committed_ref()Filipe Manana1-0/+42
2025-01-13btrfs: simplify arguments for btrfs_cross_ref_exist()Filipe Manana1-10/+12
2025-01-13btrfs: simplify return logic at check_committed_ref()Filipe Manana1-14/+9
2025-01-13btrfs: avoid redundant call to get inline ref type at check_committed_ref()Filipe Manana1-1/+1
2025-01-13btrfs: remove the snapshot check from check_committed_ref()Filipe Manana1-8/+0
2025-01-13btrfs: remove no longer needed strict argument from can_nocow_extent()Filipe Manana1-9/+6
2025-01-13btrfs: drop fs_info argument from btrfs_update_space_info_*()Naohiro Aota1-7/+3
2025-01-13btrfs: factor out btrfs_return_free_space()Naohiro Aota1-21/+4
2025-01-13btrfs: move select_delayed_ref() and export itJosef Bacik1-25/+1
2024-12-18Merge tag 'for-6.13-rc3-tag' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-3/+3
2024-12-17btrfs: fix improper generation check in snapshot deleteJosef Bacik1-3/+3
2024-11-29btrfs: don't loop for nowait writes when checking for cross referencesFilipe Manana1-1/+1
2024-11-11btrfs: track delayed ref heads in an xarrayFilipe Manana1-1/+1
2024-11-11btrfs: pass fs_info to btrfs_delete_ref_head()Filipe Manana1-4/+5
2024-11-11btrfs: pass fs_info to functions that search for delayed ref headsFilipe Manana1-5/+5
2024-11-11btrfs: move delayed ref head unselection to delayed-ref.cFilipe Manana1-13/+3
2024-11-11btrfs: simplify obtaining a delayed ref headFilipe Manana1-34/+1
2024-11-11btrfs: change return type of btrfs_delayed_ref_lock() to booleanFilipe Manana1-3/+3
2024-11-11btrfs: remove num_entries atomic counter from delayed ref rootFilipe Manana1-1/+0
2024-11-11btrfs: reduce extent tree lock contention when searching for inline backrefRobbie Ko1-3/+23
2024-11-11btrfs: drop unused parameter refs from visit_node_for_delete()David Sterba1-4/+3
2024-11-11btrfs: correct typos in multiple comments across various filesShen Lichuan1-1/+1
2024-10-07btrfs: add cancellation points to trim loopsLuca Stefani1-1/+6
2024-10-07btrfs: split remaining space to discard in chunksLuca Stefani1-4/+15
2024-09-10btrfs: always update fstrim_range on failure in FITRIM ioctlLuca Stefani1-2/+2
2024-08-13btrfs: check delayed refs when we're checking if a ref existsJosef Bacik1-6/+45
2024-07-29btrfs: zoned: fix zone_unusable accounting on making block group read-write a...Naohiro Aota1-1/+2
2024-07-11btrfs: avoid allocating and running pointless delayed extent operationsFilipe Manana1-36/+27
2024-07-11btrfs: don't BUG_ON() when 0 reference count at btrfs_lookup_extent_info()Filipe Manana1-4/+20
2024-07-11btrfs: reduce nesting for extent processing at btrfs_lookup_extent_info()Filipe Manana1-13/+9
2024-07-11btrfs: remove superfluous metadata check at btrfs_lookup_extent_info()Filipe Manana1-1/+1
2024-07-11btrfs: remove NULL transaction support for btrfs_lookup_extent_info()Filipe Manana1-14/+2
2024-07-11btrfs: do not BUG_ON() when freeing tree block after errorFilipe Manana1-10/+14
2024-07-11btrfs: add documentation around snapshot deleteJosef Bacik1-0/+51
2024-07-11btrfs: handle errors from btrfs_dec_ref() properlyJosef Bacik1-1/+4
2024-07-11btrfs: convert correctness BUG_ON()'s to ASSERT()'s in walk_up_proc()Josef Bacik1-3/+3
2024-07-11btrfs: clean up our handling of refs == 0 in snapshot deleteJosef Bacik1-5/+23
2024-07-11btrfs: replace BUG_ON with ASSERT in walk_down_proc()Josef Bacik1-2/+2
2024-07-11btrfs: handle errors from ref mods during UPDATE_BACKREF in walk_down_proc()Josef Bacik1-3/+12
2024-07-11btrfs: don't BUG_ON on ENOMEM from btrfs_lookup_extent_info() in walk_down_pr...Josef Bacik1-1/+0
2024-07-11btrfs: extract the reference dropping code into it's own helperJosef Bacik1-70/+87
2024-07-11btrfs: unify logic to decide if we need to walk down into a node during snaps...Josef Bacik1-44/+89
2024-07-11btrfs: remove local variable need_account in do_walk_down()Josef Bacik1-5/+4
2024-07-11btrfs: factor out eb uptodate check from do_walk_down()Josef Bacik1-20/+45
2024-07-11btrfs: push lookup_info into struct walk_controlJosef Bacik1-10/+12
2024-07-11btrfs: use btrfs_read_extent_buffer() in do_walk_down()Josef Bacik1-11/+4
2024-07-11btrfs: don't do extra find_extent_buffer() in do_walk_down()Josef Bacik1-10/+6
2024-07-11btrfs: rename err to ret in btrfs_drop_snapshot()Anand Jain1-25/+26
2024-07-11btrfs: automatically remove the subvolume qgroupQu Wenruo1-0/+8
2024-05-15btrfs: fix end of tree detection when searching for data extent refFilipe Manana1-1/+1
2024-05-07btrfs: simplify return variables in btrfs_drop_subtree()Anand Jain1-9/+7
2024-05-07btrfs: simplify return variables in lookup_extent_data_ref()Anand Jain1-15/+14
2024-05-07btrfs: change root->root_key.objectid to btrfs_root_id()Josef Bacik1-31/+25
2024-05-07btrfs: stop referencing btrfs_delayed_tree_ref directlyJosef Bacik1-5/+5
2024-05-07btrfs: stop referencing btrfs_delayed_data_ref directlyJosef Bacik1-9/+11
2024-05-07btrfs: make the insert backref helpers take a btrfs_delayed_ref_nodeJosef Bacik1-25/+21
2024-05-07btrfs: drop unnecessary arguments from __btrfs_free_extentJosef Bacik1-15/+8
2024-05-07btrfs: make __btrfs_inc_extent_ref take a btrfs_delayed_ref_nodeJosef Bacik1-32/+9
2024-05-07btrfs: move ->parent and ->ref_root into btrfs_delayed_ref_nodeJosef Bacik1-9/+9
2024-05-07btrfs: rename ->len to ->num_bytes in btrfs_refJosef Bacik1-7/+7
2024-05-07btrfs: simplify delayed ref tracepointsJosef Bacik1-2/+2
2024-05-07btrfs: move ref_root into btrfs_refJosef Bacik1-22/+16
2024-05-07btrfs: do not use a function to initialize btrfs_refJosef Bacik1-38/+49
2024-05-07btrfs: locking: rename __btrfs_tree_lock() and __btrfs_tree_read_lock()Filipe Manana1-1/+1
2024-04-09btrfs: zoned: add ASSERT and WARN for EXTENT_BUFFER_ZONED_ZEROOUT handlingNaohiro Aota1-0/+8
2024-03-04btrfs: avoid unnecessary ref initialization when freeing log tree blockFilipe Manana1-6/+7
2024-03-04btrfs: change BUG_ON to assertion when verifying root in btrfs_alloc_reserved...David Sterba1-1/+1
2024-03-04btrfs: handle invalid extent item reference found in check_committed_ref()David Sterba1-1/+8
2024-03-04btrfs: make btrfs_error_unpin_extent_range() return voidDavid Sterba1-7/+6
2024-03-04btrfs: return errors from unpin_extent_range()David Sterba1-4/+15
2024-03-04btrfs: remove unused included headersDavid Sterba1-4/+1
2024-01-18btrfs: don't warn if discard range is not aligned to sectorDavid Sterba1-1/+2
2024-01-12btrfs: zoned: optimize hint byte for zoned allocatorNaohiro Aota1-0/+18
2024-01-12btrfs: zoned: factor out prepare_allocation_zoned()Naohiro Aota1-13/+19
2023-12-15btrfs: reflow btrfs_free_tree_blockJohannes Thumshirn1-49/+50
2023-12-15btrfs: remove now unneeded btrfs_redirty_list_addJohannes Thumshirn1-4/+1
2023-12-15btrfs: rename EXTENT_BUFFER_NO_CHECK to EXTENT_BUFFER_ZONED_ZEROOUTJohannes Thumshirn1-1/+1
2023-12-06btrfs: ensure releasing squota reserve on head refsBoris Burkov1-14/+34
2023-11-03btrfs: get correct owning_root when dropping snapshotJosef Bacik1-8/+17
2023-10-12btrfs: track data relocation with simple quotaBoris Burkov1-5/+8
2023-10-12btrfs: qgroup: track metadata relocation COW with simple quotaBoris Burkov1-2/+5
2023-10-12btrfs: qgroup: check generation when recording simple quota deltaBoris Burkov1-0/+4
2023-10-12btrfs: record simple quota deltas in delayed refsBoris Burkov1-8/+75
2023-10-12btrfs: add helper for inline owner ref lookupBoris Burkov1-0/+48
2023-10-12btrfs: new inline ref storing owning subvol of data extentsBoris Burkov1-11/+46
2023-10-12btrfs: track owning root in btrfs_refBoris Burkov1-8/+13
2023-10-12btrfs: rename tree_ref and data_ref owning_rootBoris Burkov1-5/+5
2023-10-12btrfs: delete stripe extent on extent deletionJohannes Thumshirn1-0/+6
2023-10-12btrfs: add support for inserting raid stripe extentsJohannes Thumshirn1-0/+1
2023-10-12btrfs: remove useless comment from btrfs_pin_extent_for_log_replay()Filipe Manana1-3/+0
2023-10-12btrfs: remove stale comment from btrfs_free_extent()Filipe Manana1-1/+0
2023-10-12btrfs: abort transaction on generation mismatch when marking eb as dirtyFilipe Manana1-16/+20
2023-10-12btrfs: stop doing excessive space reservation for csum deletionFilipe Manana1-5/+5
2023-10-12btrfs: reserve space for delayed refs on a per ref basisFilipe Manana1-14/+15
2023-10-12btrfs: allow to run delayed refs by bytes to be released instead of countFilipe Manana1-19/+34
2023-10-12btrfs: simplify check for extent item overrun at lookup_inline_extent_backref()Filipe Manana1-11/+11
2023-10-12btrfs: return -EUCLEAN if extent item is missing when searching inline backrefFilipe Manana1-1/+1
2023-10-12btrfs: use a single variable for return value at lookup_inline_extent_backref()Filipe Manana1-18/+15
2023-10-12btrfs: use a single variable for return value at run_delayed_extent_op()Filipe Manana1-8/+5
2023-10-12btrfs: remove pointless 'ref_root' variable from run_delayed_data_ref()Filipe Manana1-5/+3
2023-10-12btrfs: initialize key where it's used when running delayed data refFilipe Manana1-6/+8
2023-10-12btrfs: remove refs_to_drop argument from __btrfs_free_extent()Filipe Manana1-5/+5
2023-10-12btrfs: remove refs_to_add argument from __btrfs_inc_extent_ref()Filipe Manana1-5/+4
2023-10-12btrfs: remove unnecessary logic when running new delayed referencesFilipe Manana1-14/+3
2023-10-12btrfs: move extent_buffer::lock_owner to debug sectionDavid Sterba1-9/+23
2023-10-12btrfs: reduce parameters of btrfs_pin_extent_for_log_replayDavid Sterba1-4/+4
2023-10-12btrfs: reduce parameters of btrfs_pin_reserved_extentDavid Sterba1-5/+5
2023-10-12btrfs: reformat remaining kdoc style commentsDavid Sterba1-3/+3
2023-10-12btrfs: remove btrfs_crc32c wrapperJosef Bacik1-3/+3
2023-09-20btrfs: log message if extent item not found when running delayed extent opFilipe Manana1-1/+4
2023-09-20btrfs: remove redundant BUG_ON() from __btrfs_inc_extent_ref()Filipe Manana1-4/+3
2023-09-20btrfs: return -EUCLEAN for delayed tree ref with a ref count not equals to 1Filipe Manana1-3/+3
2023-08-21btrfs: remove v0 extent handlingQu Wenruo1-14/+21
2023-08-21btrfs: output extra debug info if we failed to find an inline backrefQu Wenruo1-0/+5
2023-08-21btrfs: zoned: do not zone finish data relocation block groupNaohiro Aota1-20/+23
2023-08-21btrfs: wait on uncached block groups on every allocation loopJosef Bacik1-43/+18
2023-08-21btrfs: handle errors properly in update_inline_extent_backref()Qu Wenruo1-12/+61
2023-08-21btrfs: zoned: don't activate non-DATA BG on allocationNaohiro Aota1-1/+7
2023-08-21btrfs: move comments to btrfs_loop_type definitionJosef Bacik1-9/+28
2023-08-21btrfs: move btrfs_free_excluded_extents() into block-group.cFilipe Manana1-12/+0
2023-08-21btrfs: open code trivial btrfs_add_excluded_extent()Filipe Manana1-9/+0
2023-08-21btrfs: make find_first_extent_bit() return a booleanFilipe Manana1-3/+2
2023-08-10btrfs: set cache_block_group_error if we find an errorJosef Bacik1-1/+4
2023-06-19btrfs: use bool type for delayed ref head fields that are used as booleansFilipe Manana1-7/+7
2023-06-19btrfs: remove pointless in_tree field from struct btrfs_delayed_ref_nodeFilipe Manana1-1/+0
2023-06-19btrfs: drop gfp from parameter extent state helpersDavid Sterba1-8/+6
2023-06-19btrfs: drop NOFAIL from set_extent_bit allocation masksDavid Sterba1-2/+1
2023-06-19btrfs: open code set_extent_bitsDavid Sterba1-5/+5
2023-06-19btrfs: open code set_extent_dirtyDavid Sterba1-6/+9
2023-06-19btrfs: open code set_extent_newDavid Sterba1-2/+3
2023-06-19btrfs: fix comment referring to no longer existing btrfs_clean_tree_block()Filipe Manana1-1/+1
2023-06-19btrfs: remove level argument from btrfs_set_block_flagsJosef Bacik1-4/+3
2023-06-19btrfs: use SECTOR_SHIFT to convert LBA to physical offsetAnand Jain1-2/+2
2023-06-19btrfs: use SECTOR_SHIFT to convert physical offset to LBAAnand Jain1-2/+4
2023-06-19btrfs: improve leaf dump and error handlingQu Wenruo1-66/+57
2023-06-19btrfs: print-tree: pass const extent buffer pointerQu Wenruo1-1/+1
2023-04-17btrfs: remove obsolete delayed ref throttling logic when truncating itemsFilipe Manana1-25/+2
2023-04-17btrfs: abort the transaction if we get an error during snapshot dropJosef Bacik1-0/+2
2023-04-17btrfs: handle errors in walk_down_tree properlyJosef Bacik1-4/+4
2023-02-15btrfs: rename btrfs_clean_tree_block to btrfs_clear_buffer_dirtyJosef Bacik1-3/+3
2023-02-15btrfs: add trans argument to btrfs_clean_tree_blockJosef Bacik1-2/+2
2023-02-15btrfs: always lock the block before calling btrfs_clean_tree_blockJosef Bacik1-2/+1
2023-02-13btrfs: remove duplicate include header in extent-tree.cye xingchen1-1/+0
2023-02-13btrfs: don't use size classes for zoned file systemsBoris Burkov1-1/+1
2023-02-13btrfs: introduce size class to block group allocatorBoris Burkov1-34/+37
2023-02-13btrfs: add more find_free_extent tracepointsBoris Burkov1-0/+4
2023-02-13btrfs: pass find_free_extent_ctl to allocator tracepointsBoris Burkov1-86/+6