aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/free-space-cache.c
AgeCommit message (Expand)AuthorFilesLines
2026-06-09btrfs: switch local indicator variables to boolsDavid Sterba1-6/+6
2026-06-08btrfs: remove unnecessary ctl argument from write_cache_extent_entries()Filipe Manana1-3/+2
2026-06-08btrfs: remove unnecessary ctl argument from __btrfs_write_out_cache()Filipe Manana1-3/+2
2026-06-08btrfs: remove block group argument from copy_free_space_cache()Filipe Manana1-5/+4
2026-06-08btrfs: remove op field from struct btrfs_free_space_ctlFilipe Manana1-13/+11
2026-06-08btrfs: remove unit field from struct btrfs_free_space_ctlFilipe Manana1-43/+52
2026-06-08btrfs: remove start field from struct btrfs_free_space_ctlFilipe Manana1-5/+4
2026-06-08btrfs: remove folio checked subpage bitmap trackingQu Wenruo1-4/+0
2026-02-21treewide: Replace kmalloc with kmalloc_obj for non-scalar typesKees Cook1-1/+1
2026-02-03btrfs: remove pointless out labels from free-space-cache.cFilipe Manana1-16/+12
2026-02-03btrfs: don't pass io_ctl to __btrfs_write_out_cache()Johannes Thumshirn1-3/+2
2026-02-03btrfs: use the btrfs_block_group_end() helper everywhereFilipe Manana1-4/+4
2026-02-03btrfs: remove bogus NULL checks in __btrfs_write_out_cache()Johannes Thumshirn1-7/+4
2026-02-03btrfs: populate fully_remapped_bgs_list on mountMark Harmstone1-0/+18
2026-02-03btrfs: handle discarding fully-remapped block groupsMark Harmstone1-0/+33
2026-02-03btrfs: add do_remap parameter to btrfs_discard_extent()Mark Harmstone1-1/+1
2026-02-03btrfs: remove remapped block groups from the free-space-treeMark Harmstone1-0/+3
2025-11-24btrfs: use bool type for btrfs_path members used as booleansFilipe Manana1-2/+2
2025-11-24btrfs: reduce block group critical section in do_trimming()Filipe Manana1-8/+12
2025-09-23btrfs: add unlikely annotations to branches leading to transaction abortDavid Sterba1-1/+1
2025-09-23btrfs: fix typos in comments and stringsDavid Sterba1-2/+2
2025-07-21btrfs: use pgoff_t for page index variablesDavid Sterba1-1/+1
2025-07-21btrfs: rename err to ret in btrfs_alloc_from_bitmap()David Sterba1-3/+3
2025-05-15btrfs: return real error from __filemap_get_folio() callsFilipe Manana1-1/+1
2025-05-15btrfs: use list_first_entry() everywhereDavid Sterba1-6/+4
2025-05-15btrfs: rename the functions to search for bits in extent rangesFilipe Manana1-3/+3
2025-05-15btrfs: rename the functions to clear bits for an extent rangeFilipe Manana1-7/+7
2025-05-15btrfs: add btrfs prefix to main lock, try lock and unlock extent functionsFilipe Manana1-8/+8
2025-05-15btrfs: do more trivial BTRFS_PATH_AUTO_FREE conversionsDavid Sterba1-2/+2
2025-03-18btrfs: make btrfs_iget_path() return a btrfs inode insteadFilipe Manana1-5/+5
2025-03-18btrfs: use BTRFS_PATH_AUTO_FREE in btrfs_remove_free_space_inode()David Sterba1-8/+5
2025-03-18btrfs: unify ordering of btrfs_key initializationsDavid Sterba1-4/+4
2025-03-17btrfs: convert io_ctl_prepare_pages() to work on foliosMatthew Wilcox (Oracle)1-12/+14
2025-01-13btrfs: open code set_page_extent_mapped()David Sterba1-1/+1
2025-01-13btrfs: free-space-cache: remove unnecessary calls to btrfs_mark_buffer_dirty()Filipe Manana1-3/+0
2025-01-13btrfs: move extent-tree function declarations out of ctree.hFilipe Manana1-1/+1
2024-11-11btrfs: convert btrfs_buffered_write() to use foliosQu Wenruo1-2/+2
2024-11-11btrfs: make buffered write to copy one page a timeQu Wenruo1-4/+11
2024-11-11btrfs: use str_yes_no() helper function in btrfs_dump_free_space()Thorsten Blum1-3/+3
2024-11-11btrfs: remove the dirty_page local variableQu Wenruo1-2/+1
2024-10-07btrfs: add cancellation points to trim loopsLuca Stefani1-2/+2
2024-08-15btrfs: zoned: properly take lock to read/update block group's zoned variablesNaohiro Aota1-6/+8
2024-07-29btrfs: zoned: fix zone_unusable accounting on making block group read-write a...Naohiro Aota1-1/+3
2024-07-11btrfs: fix bitmap leak when loading free space cache on duplicate entryFilipe Manana1-0/+1
2024-07-11btrfs: switch btrfs_block_group::inode to struct btrfs_inodeDavid Sterba1-2/+2
2024-07-11btrfs: remove super block argument from btrfs_iget_path()Filipe Manana1-2/+1
2024-07-11btrfs: pass a btrfs_inode to btrfs_wait_ordered_range()Filipe Manana1-1/+1
2024-07-11btrfs: pass a btrfs_inode to btrfs_fdatawrite_range()Filipe Manana1-1/+1
2024-06-27Merge tag 'for-6.10-rc5-tag' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-1/+1
2024-06-25btrfs: zoned: fix initial free space detectionNaohiro Aota1-1/+1
2024-04-01btrfs: rename bitmap_set_bits() -> btrfs_bitmap_set_bits()Alexander Lobakin1-4/+4
2024-03-05btrfs: remove SLAB_MEM_SPREAD flag useChengming Zhou1-2/+2
2024-03-04btrfs: use KMEM_CACHE() to create btrfs_free_space cacheKunwu Chan1-3/+1
2024-03-04btrfs: add helper to get fs_info from struct inode pointerDavid Sterba1-1/+1
2024-03-04btrfs: mark __btrfs_add_free_space staticLijuan Li1-1/+1
2024-03-04btrfs: remove unused included headersDavid Sterba1-2/+0
2023-12-15btrfs: migrate subpage code to folio interfacesQu Wenruo1-2/+2
2023-10-12btrfs: remove redundant root argument from btrfs_update_inode()Filipe Manana1-7/+6
2023-10-12btrfs: abort transaction on generation mismatch when marking eb as dirtyFilipe Manana1-3/+3
2023-10-12btrfs: remove btrfs_crc32c wrapperJosef Bacik1-2/+2
2023-10-12btrfs: move btrfs_crc32c_final into free-space-cache.cJosef Bacik1-0/+5
2023-08-21btrfs: zoned: no longer count fresh BG region as zone unusableNaohiro Aota1-7/+1
2023-08-21btrfs: print target number of bytes when dumping free spaceFilipe Manana1-1/+2
2023-08-21btrfs: make find_first_extent_bit() return a booleanFilipe Manana1-4/+3
2023-06-19btrfs: move btrfs_check_trunc_cache_free_space into block-rsv.cJosef Bacik1-19/+0
2023-06-19btrfs: assert tree lock is held when removing free space entriesFilipe Manana1-10/+24
2023-06-19btrfs: assert tree lock is held when linking free spaceFilipe Manana1-0/+2
2023-06-19btrfs: assert tree lock is held when searching for free space entriesFilipe Manana1-0/+2
2023-06-19btrfs: assert proper locks are held at tree_insert_offset()Filipe Manana1-6/+19
2023-06-19btrfs: simplify arguments to tree_insert_offset()Filipe Manana1-21/+16
2023-06-19btrfs: use precomputed end offsets at do_trimming()Filipe Manana1-1/+1
2023-06-19btrfs: avoid searching twice for previous node when merging free space entriesFilipe Manana1-3/+6
2023-06-19btrfs: avoid extra memory allocation when copying free space cacheFilipe Manana1-2/+4
2023-05-09btrfs: fix space cache inconsistency after error loading it from diskFilipe Manana1-3/+4
2023-03-15btrfs: zoned: count fresh BG region as zone unusableNaohiro Aota1-1/+7
2022-12-05btrfs: pass btrfs_inode to btrfs_add_delayed_iputDavid Sterba1-2/+2
2022-12-05btrfs: simplify percent calculation helpers, rename div_factorDavid Sterba1-2/+1
2022-12-05btrfs: move super_block specific helpers into super.hJosef Bacik1-0/+1
2022-12-05btrfs: move file prototypes to file.hJosef Bacik1-0/+1
2022-12-05btrfs: move file-item prototypes into their own headerJosef Bacik1-0/+1
2022-12-05btrfs: update function commentsDavid Sterba1-6/+3
2022-12-05btrfs: move accessor helpers into accessors.hJosef Bacik1-0/+1
2022-12-05btrfs: move BTRFS_FS_STATE* definitions and helpers to fs.hJosef Bacik1-1/+2
2022-12-05btrfs: move the printk helpers out of ctree.hJosef Bacik1-0/+1
2022-12-05btrfs: move free space cachep's out of ctree.hJosef Bacik1-0/+28
2022-09-29btrfs: move btrfs_drop_extent_cache() to extent_map.cFilipe Manana1-1/+1
2022-09-26btrfs: replace delete argument with EXTENT_CLEAR_ALL_BITSJosef Bacik1-3/+3
2022-09-26btrfs: unify the lock/unlock extent variantsJosef Bacik1-8/+8
2022-09-26btrfs: remove the wake argument from clear_extent_bitsJosef Bacik1-3/+3
2022-09-26btrfs: remove use btrfs_remove_free_space_cache instead of variantJosef Bacik1-17/+3
2022-09-26btrfs: call __btrfs_remove_free_space_cache_locked on cache load failureJosef Bacik1-20/+33
2022-09-26btrfs: convert block group bit field to use bit helpersJosef Bacik1-9/+7
2022-09-26btrfs: change the lockdep class of free space inode's invalidate_lockIoannis Angelakopoulos1-0/+10
2022-09-26btrfs: dump extra info if one free space cache has more bitmaps than it shouldQu Wenruo1-0/+6
2022-07-25btrfs: clean up chained assignmentsDavid Sterba1-1/+2
2022-05-24Merge tag 'folio-5.19' of git://git.infradead.org/users/willy/pagecacheLinus Torvalds1-1/+1
2022-05-16btrfs: use rbtree with leftmost node cached for tracking lowest block groupFilipe Manana1-1/+1
2022-05-16btrfs: make the bg_reclaim_threshold per-space infoJosef Bacik1-2/+5
2022-05-09btrfs: Convert btrfs to read_folioMatthew Wilcox (Oracle)1-1/+1
2022-01-07btrfs: add inode to truncate controlJosef Bacik1-1/+2
2022-01-07btrfs: pass the ino via truncate controlJosef Bacik1-0/+1
2022-01-07btrfs: use a flag to control when to clear the file extent rangeJosef Bacik1-0/+1
2022-01-07btrfs: only call inode_sub_bytes in truncate paths that careJosef Bacik1-0/+1
2022-01-07btrfs: only update i_size in truncate paths that careJosef Bacik1-0/+3
2022-01-07btrfs: add truncate control structJosef Bacik1-2/+5
2022-01-07btrfs: move extent locking outside of btrfs_truncate_inode_itemsJosef Bacik1-7/+13
2022-01-07btrfs: add an inode-item.hJosef Bacik1-0/+1
2022-01-03btrfs: change name and type of private member of btrfs_free_space_ctlNikolay Borisov1-6/+6
2022-01-03btrfs: make __btrfs_add_free_space take just block group referenceNikolay Borisov1-15/+10
2022-01-03btrfs: consolidate unlink_free_space/__unlink_free_space functionsNikolay Borisov1-25/+15
2022-01-03btrfs: consolidate bitmap_clear_bits/__bitmap_clear_bitsNikolay Borisov1-24/+13
2022-01-03btrfs: eliminate if in main loop in tree_search_offsetNikolay Borisov1-7/+4
2022-01-03btrfs: get next entry in tree_search_offset before doing checksNikolay Borisov1-5/+4
2022-01-03btrfs: index free space entries on sizeJosef Bacik1-44/+137
2022-01-03btrfs: only use ->max_extent_size if it is set in the bitmapJosef Bacik1-1/+25
2021-10-26btrfs: subpage: add bitmap for PageChecked flagQu Wenruo1-1/+5
2021-10-26btrfs: zoned: implement active zone trackingNaohiro Aota1-2/+3
2021-10-26btrfs: zoned: tweak reclaim threshold for zone capacityNaohiro Aota1-2/+6
2021-10-26btrfs: zoned: calculate free space from zone capacityNaohiro Aota1-1/+6
2021-08-23btrfs: zoned: fix block group alloc_offset calculationNaohiro Aota1-2/+5
2021-08-23btrfs: zoned: allow disabling of zone auto reclaimJohannes Thumshirn1-3/+4
2021-08-23btrfs: allocate file_ra_state on stack in readahead_cacheGoldwyn Rodrigues1-9/+3
2021-06-21btrfs: don't set the full sync flag when truncation does not touch extentsFilipe Manana1-1/+1
2021-05-04btrfs: initialize return variable in cleanup_free_space_cache_v1Tom Rix1-1/+1
2021-04-20btrfs: zoned: automatically reclaim zonesJohannes Thumshirn1-1/+8
2021-03-04btrfs: zoned: do not account freed region of read-only block group as zone_un...Naohiro Aota1-1/+6
2021-02-22btrfs: avoid double put of block group when emptying clusterJosef Bacik1-4/+4
2021-02-22btrfs: fix race between extent freeing/allocation when using bitmapsNikolay Borisov1-2/+4
2021-02-09btrfs: zoned: advance allocation pointer after tree log nodeNaohiro Aota1-1/+15
2021-02-09btrfs: zoned: implement sequential extent allocationNaohiro Aota1-0/+6
2021-02-09btrfs: zoned: track unusable bytes for zonesNaohiro Aota1-0/+67
2021-02-08btrfs: introduce btrfs_subpage for data inodesQu Wenruo1-3/+12
2021-02-08btrfs: improve parameter description for __btrfs_write_out_cacheNikolay Borisov1-5/+8
2021-02-08btrfs: rename btrfs_find_free_objectid to btrfs_get_free_objectidNikolay Borisov1-1/+1
2021-02-08btrfs: clarify error returns values in __load_free_space_cacheZhihao Cheng1-1/+5
2020-12-09btrfs: remove free space items when disabling space cache v1Boris Burkov1-4/+95
2020-12-09btrfs: keep sb cache_generation consistent with space_cacheBoris Burkov1-0/+28
2020-12-09btrfs: remove recalc_thresholds from free space opsDavid Sterba1-44/+42
2020-12-09btrfs: always set NODATASUM/NODATACOW in __create_free_space_inodeNikolay Borisov1-5/+3
2020-12-09btrfs: remove crc_check logic from free spaceNikolay Borisov1-32/+5
2020-12-09btrfs: remove inode number cache featureNikolay Borisov1-177/+0
2020-12-08btrfs: make btrfs_update_inode take btrfs_inodeNikolay Borisov1-3/+3
2020-12-08btrfs: make btrfs_truncate_inode_items take btrfs_inodeNikolay Borisov1-1/+1
2020-12-08btrfs: load free space cache into a temporary ctlJosef Bacik1-89/+66
2020-12-08btrfs: cleanup btrfs_discard_update_discardable usageJosef Bacik1-6/+8
2020-12-08btrfs: set EXTENT_NORESERVE bits side btrfs_dirty_pages()Goldwyn Rodrigues1-1/+1
2020-10-07btrfs: free-space-cache: use unaligned helpers to access dataDavid Sterba1-12/+9
2020-10-07btrfs: delete duplicated words + other fixes in commentsRandy Dunlap1-1/+1
2020-08-19btrfs: fix space cache memory leak after transaction abortFilipe Manana1-1/+1
2020-08-10btrfs: only search for left_info if there is no right_info in try_merge_free_...Josef Bacik1-2/+2
2020-07-27btrfs: make btrfs_dirty_pages take btrfs_inodeNikolay Borisov1-2/+3
2020-07-27btrfs: use helper btrfs_get_block_groupAnand Jain1-2/+2
2020-07-27btrfs: let btrfs_return_cluster_to_free_space() return voidAnand Jain1-9/+5
2020-05-25btrfs: turn space cache writeout failure messages into debug messagesFilipe Manana1-11/+4
2020-05-25btrfs: include error on messages about failure to write space/inode cachesFilipe Manana1-6/+6
2020-05-25btrfs: simplify iget helpersDavid Sterba1-1/+1
2020-05-25btrfs: move the block group freeze/unfreeze helpers into block-group.cFilipe Manana1-41/+0
2020-05-25btrfs: rename member 'trimming' of block group to a more generic nameFilipe Manana1-12/+13
2020-03-23btrfs: simplify error handling in __btrfs_write_out_cache()Johannes Thumshirn1-13/+11
2020-03-23btrfs: use standard debug config option to enable free-space-cache debug printsJohannes Thumshirn1-3/+3
2020-03-23btrfs: make the uptodate argument of io_ctl_add_pages() booleanJohannes Thumshirn1-3/+3
2020-03-23btrfs: use inode from io_ctl in io_ctl_prepare_pagesJohannes Thumshirn1-4/+4
2020-03-23btrfs: switch to per-transaction pinned extentsNikolay Borisov1-1/+1
2020-03-23btrfs: Pass transaction handle to write_pinned_extent_entriesNikolay Borisov1-1/+2
2020-01-20btrfs: ensure removal of discardable_* in free_bitmap()Dennis Zhou1-0/+14
2020-01-20btrfs: make smaller extents more likely to go into bitmapsDennis Zhou1-2/+2
2020-01-20btrfs: increase the metadata allowance for the free_space_cacheDennis Zhou1-15/+11
2020-01-20btrfs: keep track of discard reuse statsDennis Zhou1-0/+14
2020-01-20btrfs: have multiple discard listsDennis Zhou1-13/+42
2020-01-20btrfs: make max async discard size tunableDennis Zhou1-7/+13
2020-01-20btrfs: limit max discard size for async discardDennis Zhou1-9/+32
2020-01-20btrfs: keep track of discardable_bytes for async discardDennis Zhou1-9/+32
2020-01-20btrfs: track discardable extents for async discardDennis Zhou1-9/+97
2020-01-20btrfs: discard one region at a time in async discardDennis Zhou1-29/+102
2020-01-20btrfs: handle empty block_group removal for async discardDennis Zhou1-0/+33
2020-01-20btrfs: add the beginning of async discard, discard workqueueDennis Zhou1-6/+48
2020-01-20btrfs: keep track of free space bitmap trim status cleanlinessDennis Zhou1-9/+80
2020-01-20btrfs: keep track of which extents have been discardedDennis Zhou1-7/+56
2019-11-18btrfs: rename btrfs_block_group_cacheDavid Sterba1-36/+35
2019-11-18btrfs: add dedicated members for start and length of a block groupDavid Sterba1-19/+18
2019-11-18btrfs: move block_group_item::used to block groupDavid Sterba1-1/+1
2019-11-18btrfs: check page->mapping when loading free space cacheJosef Bacik1-0/+6
2019-11-18btrfs: drop unused parameter is_new from btrfs_igetDavid Sterba1-1/+1
2019-09-09btrfs: stop clearing EXTENT_DIRTY in inode I/O treeOmar Sandoval1-5/+4
2019-09-09btrfs: fix allocation of free space cache v1 bitmap pagesChristophe Leroy1-7/+13
2019-09-09btrfs: rename the btrfs_calc_*_metadata_size helpersJosef Bacik1-2/+2
2019-09-09btrfs: move basic block_group definitions to their own headerJosef Bacik1-0/+1
2019-09-09btrfs: move btrfs_add_free_space out of a header fileJosef Bacik1-0/+8
2019-07-04btrfs: migrate the delalloc space stuff to it's own homeJosef Bacik1-0/+1
2019-07-02btrfs: move space_info to space-info.hJosef Bacik1-0/+1
2019-07-01btrfs: use btrfs_crc32c{,_final}() in for free space cacheJohannes Thumshirn1-6/+4
2019-07-01btrfs: remove mapping tree structures indirectionDavid Sterba1-1/+1
2019-07-01btrfs: switch order of unlocks of space_info and bg in do_trimming()Su Yue1-1/+1
2019-04-29btrfs: get fs_info from block group in btrfs_find_space_clusterDavid Sterba1-2/+2
2019-04-29btrfs: get fs_info from block group in write_pinned_extent_entriesDavid Sterba1-6/+3
2019-04-29btrfs: get fs_info from block group in load_free_space_cacheDavid Sterba1-2/+2
2019-04-29btrfs: get fs_info from block group in lookup_free_space_inodeDavid Sterba1-5/+6
2019-04-29btrfs: get fs_info from trans in btrfs_write_out_cacheDavid Sterba1-2/+2
2019-04-29btrfs: get fs_info from trans in create_free_space_inodeDavid Sterba1-5/+4
2019-04-29btrfs: replace pending/pinned chunks lists with io treeJeff Mahoney1-4/+0