aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/compression.c
AgeCommit message (Expand)AuthorFilesLines
2024-03-05btrfs: compression: remove dead comments in btrfs_compress_heuristic()Qu Wenruo1-5/+0
2024-03-04btrfs: add helper to get fs_info from struct inode pointerDavid Sterba1-3/+3
2024-03-04btrfs: add helpers to get fs_info from page/folio pointersDavid Sterba1-1/+1
2024-03-04btrfs: remove unused included headersDavid Sterba1-4/+1
2024-01-18btrfs: zlib: fix and simplify the inline extent decompressionQu Wenruo1-7/+16
2023-12-15btrfs: migrate various end io functions to foliosQu Wenruo1-4/+4
2023-12-15btrfs: migrate subpage code to folio interfacesQu Wenruo1-3/+4
2023-12-15btrfs: refactor alloc_extent_buffer() to allocate-then-attach methodQu Wenruo1-1/+1
2023-12-15btrfs: use the flags of an extent map to identify the compression typeFilipe Manana1-2/+2
2023-12-15btrfs: use shrinker for compression page poolDavid Sterba1-0/+102
2023-12-15btrfs: use page alloc/free wrappers for compression pagesDavid Sterba1-1/+15
2023-10-12btrfs: rename errno identifiers to errorDavid Sterba1-3/+3
2023-06-19btrfs: make btrfs_compressed_bioset staticBen Dooks1-1/+1
2023-06-19btrfs: use btrfs_finish_ordered_extent to complete compressed writesChristoph Hellwig1-7/+2
2023-06-19btrfs: add an ordered_extent pointer to struct btrfs_bioChristoph Hellwig1-1/+1
2023-06-19btrfs: pass an ordered_extent to btrfs_submit_compressed_writeChristoph Hellwig1-14/+15
2023-06-19btrfs: limit write bios to a single ordered extentChristoph Hellwig1-2/+0
2023-06-19btrfs: stop setting PageError in the data I/O pathChristoph Hellwig1-2/+0
2023-06-19btrfs: remove the mirror_num argument to btrfs_submit_compressed_readChristoph Hellwig1-2/+2
2023-06-19btrfs: use SECTOR_SHIFT to convert physical offset to LBAAnand Jain1-1/+1
2023-04-17btrfs: introduce btrfs_bio::fs_info memberQu Wenruo1-1/+2
2023-04-17btrfs: move kthread_associate_blkcg out of btrfs_submit_compressed_writeChristoph Hellwig1-8/+0
2023-04-17btrfs: simplify adding pages in btrfs_add_compressed_bio_pagesChristoph Hellwig1-27/+7
2023-04-17btrfs: move the bi_sector assignment out of btrfs_add_compressed_bio_pagesChristoph Hellwig1-7/+6
2023-04-17btrfs: store a pointer to the original btrfs_bio in struct compressed_bioChristoph Hellwig1-7/+8
2023-04-17btrfs: pass a btrfs_bio to btrfs_submit_compressed_readChristoph Hellwig1-8/+8
2023-04-17btrfs: pass a btrfs_bio to btrfs_submit_bioChristoph Hellwig1-2/+2
2023-04-17btrfs: move zero filling of compressed read bios into common codeChristoph Hellwig1-0/+2
2023-04-17btrfs: fold finish_compressed_bio_write into btrfs_finish_compressed_write_workChristoph Hellwig1-9/+4
2023-04-17btrfs: don't clear page->mapping in btrfs_free_compressed_pagesChristoph Hellwig1-6/+2
2023-04-17btrfs: factor out a btrfs_free_compressed_pages helperChristoph Hellwig1-28/+13
2023-04-17btrfs: factor out a btrfs_add_compressed_bio_pages helperChristoph Hellwig1-63/+41
2023-04-17btrfs: use the bbio file offset in add_ra_bio_pagesChristoph Hellwig1-8/+1
2023-04-17btrfs: use the bbio file offset in btrfs_submit_compressed_readChristoph Hellwig1-4/+1
2023-04-17btrfs: remove redundant free_extent_map in btrfs_submit_compressed_readChristoph Hellwig1-2/+0
2023-04-17btrfs: embed a btrfs_bio into struct compressed_bioChristoph Hellwig1-78/+68
2023-02-15btrfs: split zone append bios in btrfs_submit_bioChristoph Hellwig1-90/+22
2023-02-15btrfs: remove the fs_info argument to btrfs_submit_bioChristoph Hellwig1-2/+2
2023-02-15btrfs: remove stripe boundary calculation for compressed I/OQu Wenruo1-97/+33
2023-02-15btrfs: handle recording of zoned writes in the storage layerChristoph Hellwig1-1/+0
2023-02-15btrfs: handle checksum generation in the storage layerChristoph Hellwig1-9/+0
2023-02-15btrfs: simplify the btrfs_csum_one_bio calling conventionChristoph Hellwig1-2/+4
2023-02-15btrfs: handle checksum validation and repair at the storage layerChristoph Hellwig1-39/+2
2023-02-15btrfs: pre-load data checksum for reads in btrfs_submit_bioChristoph Hellwig1-6/+0
2023-02-15btrfs: save the bio iter for checksum validation in common codeChristoph Hellwig1-4/+0
2023-02-15btrfs: simplify parameters of btrfs_lookup_bio_sumsChristoph Hellwig1-1/+1
2023-02-15btrfs: add a btrfs_inode pointer to struct btrfs_bioChristoph Hellwig1-1/+2
2023-02-15btrfs: fix spelling mistakes found using codespellColin Ian King1-2/+2
2023-02-13btrfs: use PAGE_{ALIGN, ALIGNED, ALIGN_DOWN} macroYushan Zhou1-1/+1
2022-12-05btrfs: split the bio submission path into a separate fileChristoph Hellwig1-1/+1
2022-12-05btrfs: constify input buffer parameter in compression codeDavid Sterba1-2/+2
2022-12-05btrfs: pass btrfs_inode to btrfs_check_data_csumDavid Sterba1-1/+1
2022-12-05btrfs: pass btrfs_inode to btrfs_repair_one_sectorDavid Sterba1-1/+1
2022-12-05btrfs: change how repair action is passed to btrfs_repair_one_sectorDavid Sterba1-1/+1
2022-12-05btrfs: move super_block specific helpers into super.hJosef Bacik1-0/+1
2022-12-05btrfs: move file-item prototypes into their own headerJosef Bacik1-0/+1
2022-12-05btrfs: move BTRFS_FS_STATE* definitions and helpers to fs.hJosef Bacik1-0/+1
2022-12-05btrfs: make module init/exit match their sequenceQu Wenruo1-1/+2
2022-11-08fs: fix leaked psi pressure stateJohannes Weiner1-6/+8
2022-10-10Merge tag 'mm-stable-2022-10-08' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-16/+15
2022-10-07Merge tag 'for-6.1/block-2022-10-03' of git://git.kernel.dk/linuxLinus Torvalds1-2/+12
2022-09-26btrfs: unify the lock/unlock extent variantsJosef Bacik1-3/+3
2022-09-26btrfs: rename clean_io_failure and remove extraneous argsJosef Bacik1-3/+2
2022-09-26btrfs: give struct btrfs_bio a real end_io handlerChristoph Hellwig1-24/+17
2022-09-26btrfs: pass the operation to btrfs_bio_allocChristoph Hellwig1-3/+1
2022-09-20btrfs: add manual PSI accounting for compressed readsChristoph Hellwig1-2/+12
2022-09-11btrfs: convert end_compressed_writeback() to use filemap_get_folios()Vishal Moola (Oracle)1-16/+15
2022-08-03Merge tag 'for-5.20-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kda...Linus Torvalds1-257/+102
2022-07-25btrfs: don't call btrfs_page_set_checked in finish_compressed_bio_readChristoph Hellwig1-22/+2
2022-07-25btrfs: fix repair of compressed extentsChristoph Hellwig1-113/+58
2022-07-25btrfs: simplify the pending I/O counting in struct compressed_bioChristoph Hellwig1-95/+30
2022-07-25btrfs: do not return errors from btrfs_map_bioChristoph Hellwig1-6/+2
2022-07-25btrfs: remove btrfs_end_io_wqChristoph Hellwig1-4/+0
2022-07-25btrfs: don't use btrfs_bio_wq_end_io for compressed writesChristoph Hellwig1-22/+22
2022-07-25btrfs: remove redundant calls to flush_dcache_pageDavid Sterba1-2/+0
2022-07-25btrfs: introduce a data checksum checking helperQu Wenruo1-9/+4
2022-07-14fs/btrfs: Use the enum req_op and blk_opf_t typesBart Van Assche1-3/+3
2022-05-16btrfs: derive compression type from extent map during readsGoldwyn Rodrigues1-5/+5
2022-05-16btrfs: do not return errors from btrfs_submit_compressed_readChristoph Hellwig1-6/+5
2022-05-16btrfs: do not pass compressed_bio to submit_compressed_bio()Goldwyn Rodrigues1-3/+2
2022-05-16btrfs: factor out allocating an array of pagesSweet Tea Dorminy1-21/+15
2022-04-06btrfs: fix btrfs_submit_compressed_write cgroup attributionDennis Zhou1-0/+8
2022-03-14btrfs: do not double complete bio on errors during compressed readsJosef Bacik1-6/+14
2022-03-14btrfs: track compressed bio errors as blk_status_tJosef Bacik1-11/+13
2022-03-14btrfs: remove the bio argument from finish_compressed_bio_readJosef Bacik1-5/+3
2022-03-14btrfs: check correct bio in finish_compressed_bio_readJosef Bacik1-1/+1
2022-03-14btrfs: add BTRFS_IOC_ENCODED_WRITEOmar Sandoval1-2/+5
2022-03-14btrfs: don't advance offset for compressed bios in btrfs_csum_one_bio()Omar Sandoval1-1/+1
2022-01-07btrfs: remove unnecessary parameter type from compression_decompress_bioSu Yue1-4/+4
2022-01-03btrfs: set BTRFS_FS_STATE_NO_CSUMS if we fail to load the csum rootJosef Bacik1-1/+2
2021-11-01Merge tag 'for-5.16-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kda...Linus Torvalds1-277/+404
2021-11-01Merge tag 'for-5.16/block-2021-10-29' of git://git.kernel.dk/linux-blockLinus Torvalds1-0/+1
2021-10-27Revert "btrfs: compression: drop kmap/kunmap from generic helpers"David Sterba1-1/+2
2021-10-26btrfs: subpage: make end_compressed_bio_writeback() compatibleQu Wenruo1-1/+3
2021-10-26btrfs: subpage: make btrfs_submit_compressed_write() compatibleQu Wenruo1-1/+2
2021-10-26btrfs: determine stripe boundary at bio allocation time in btrfs_submit_compr...Qu Wenruo1-82/+59
2021-10-26btrfs: determine stripe boundary at bio allocation time in btrfs_submit_compr...Qu Wenruo1-71/+97
2021-10-26btrfs: introduce alloc_compressed_bio() for compressionQu Wenruo1-32/+58
2021-10-26btrfs: introduce submit_compressed_bio() for compressionQu Wenruo1-26/+19
2021-10-26btrfs: handle errors properly inside btrfs_submit_compressed_write()Qu Wenruo1-36/+62
2021-10-26btrfs: handle errors properly inside btrfs_submit_compressed_read()Qu Wenruo1-50/+83
2021-10-26btrfs: subpage: add bitmap for PageChecked flagQu Wenruo1-2/+8
2021-10-26btrfs: introduce compressed_bio::pending_sectors to trace compressed bioQu Wenruo1-33/+42
2021-10-26btrfs: subpage: make add_ra_bio_pages() compatibleQu Wenruo1-32/+58
2021-10-26btrfs: remove unused parameter nr_pages in add_ra_bio_pages()Qu Wenruo1-2/+0
2021-10-26btrfs: rename struct btrfs_io_bio to btrfs_bioQu Wenruo1-8/+8
2021-10-26btrfs: remove btrfs_bio_alloc() helperQu Wenruo1-4/+8
2021-10-18mm: don't include <linux/blk-cgroup.h> in <linux/backing-dev.h>Christoph Hellwig1-0/+1
2021-08-23btrfs: rework btrfs_decompress_buf2page()Qu Wenruo1-79/+65
2021-08-23btrfs: grab correct extent map for subpage compressed extent readQu Wenruo1-3/+6
2021-08-23btrfs: disable compressed readahead for subpageQu Wenruo1-0/+10
2021-08-23btrfs: compression: drop kmap/kunmap from generic helpersDavid Sterba1-2/+1
2021-08-23btrfs: drop from __GFP_HIGHMEM all allocationsDavid Sterba1-2/+1
2021-07-28btrfs: mark compressed range uptodate only if all bio succeedGoldwyn Rodrigues1-1/+1
2021-06-22btrfs: remove a stale comment for btrfs_decompress_bio()Qu Wenruo1-14/+0
2021-06-21btrfs: pass btrfs_inode to btrfs_writepage_endio_finish_ordered()Qu Wenruo1-3/+1
2021-06-21btrfs: fix comment about max_out in btrfs_compress_pagesAnand Jain1-3/+0
2021-06-21btrfs: optimize variables size in btrfs_submit_compressed_writeAnand Jain1-3/+3
2021-06-21btrfs: optimize variables size in btrfs_submit_compressed_readAnand Jain1-3/+3
2021-06-21btrfs: reduce the variable size to fit nr_pagesAnand Jain1-3/+3
2021-06-21btrfs: reduce compressed_bio members' typesDavid Sterba1-1/+1
2021-06-21btrfs: zoned: factor out zoned device lookupJohannes Thumshirn1-12/+4
2021-06-03Merge tag 'for-5.13-rc4-tag' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-5/+12
2021-05-27btrfs: fix compressed writes that cross stripe boundaryQu Wenruo1-5/+12
2021-05-21Merge tag 'for-5.13-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-4/+38
2021-05-20btrfs: zoned: fix parallel compressed writesJohannes Thumshirn1-4/+38
2021-05-05btrfs: use memzero_page() instead of open coded kmap patternIra Weiny1-4/+1
2021-04-19btrfs: handle remount to no compress during compressionQu Wenruo1-3/+8
2021-04-19btrfs: convert kmap to kmap_local_page, simple casesIra Weiny1-2/+2
2021-03-01Merge branch 'kmap-conversion-for-5.12' of git://git.kernel.org/pub/scm/linux...Linus Torvalds1-4/+2
2021-02-26btrfs: use memcpy_[to|from]_page() and kmap_local_page()Ira Weiny1-4/+2
2021-02-22btrfs: make check_compressed_csum() to be subpage compatibleQu Wenruo1-13/+26
2021-02-22btrfs: make btrfs_submit_compressed_read() subpage compatibleQu Wenruo1-6/+17
2021-02-08btrfs: introduce btrfs_subpage for data inodesQu Wenruo1-2/+8
2020-12-09btrfs: refactor btrfs_lookup_bio_sums to handle out-of-order bvecsQu Wenruo1-3/+2
2020-12-09btrfs: drop casts of bio bi_sectorDavid Sterba1-2/+2
2020-12-08btrfs: remove unnecessary local variables for checksum sizeDavid Sterba1-4/+2
2020-12-08btrfs: switch cached fs_info::csum_size from u16 to u32David Sterba1-4/+3
2020-12-08btrfs: use cached value of fs_info::csum_size everywhereDavid Sterba1-3/+3
2020-12-08btrfs: introduce mount option rescue=ignorebadrootsJosef Bacik1-1/+1
2020-12-08btrfs: push the NODATASUM check into btrfs_lookup_bio_sumsJosef Bacik1-9/+5
2020-10-07btrfs: compression: move declarations to headerDavid Sterba1-35/+0
2020-07-27btrfs: remove fail label in check_compressed_csumNikolay Borisov1-7/+2
2020-07-27btrfs: increment corrupt device counter during compressed readNikolay Borisov1-3/+7
2020-07-27btrfs: remove needless ASSERT check of orig_bio in end_compressed_bio_readNikolay Borisov1-1/+0
2020-07-27btrfs: make btrfs_submit_compressed_write take btrfs_inodeNikolay Borisov1-8/+7
2020-07-27btrfs: make btrfs_csum_one_bio takae btrfs_inodeNikolay Borisov1-2/+3
2020-05-25btrfs: unexport btrfs_compress_set_level()Anand Jain1-16/+16
2020-05-25btrfs: use crypto_shash_digest() instead of open codingEric Biggers1-3/+1
2020-01-31btrfs: use larger zlib buffer for s390 hardware compressionMikhail Zaslonko1-1/+1
2020-01-20btrfs: get rid of at_offset parameter to btrfs_lookup_bio_sums()Omar Sandoval1-2/+2
2020-01-20btrfs: get rid of trivial __btrfs_lookup_bio_sums() wrappersOmar Sandoval1-2/+2
2019-12-30btrfs: fix compressed write bio blkcg attributionDennis Zhou1-4/+5
2019-12-30btrfs: punt all bios created in btrfs_submit_compressed_write()Dennis Zhou1-0/+4
2019-11-18btrfs: drop bio_set_dev where not neededDavid Sterba1-10/+0
2019-11-18btrfs: compression: remove ops pointer from workspace_managerDavid Sterba1-4/+2
2019-11-18btrfs: compression: inline free_workspaceDavid Sterba1-3/+18
2019-11-18btrfs: compression: pass type to btrfs_put_workspaceDavid Sterba1-7/+6
2019-11-18btrfs: compression: inline alloc_workspaceDavid Sterba1-3/+18
2019-11-18btrfs: compression: pass type to btrfs_get_workspaceDavid Sterba1-7/+5
2019-11-18btrfs: compression: inline put_workspaceDavid Sterba1-9/+15
2019-11-18btrfs: compression: inline get_workspaceDavid Sterba1-8/+15
2019-11-18btrfs: compression: export alloc/free/get/put callbacks of all algosDavid Sterba1-0/+12
2019-11-18btrfs: compression: inline cleanup_workspace_managerDavid Sterba1-11/+6
2019-11-18btrfs: compression: let workspace manager cleanup take only the typeDavid Sterba1-2/+4
2019-11-18btrfs: compression: inline init_workspace_managerDavid Sterba1-11/+6
2019-11-18btrfs: compression: let workspace manager init take only the typeDavid Sterba1-3/+4
2019-11-18btrfs: compression: attach workspace manager to the opsDavid Sterba1-0/+1
2019-11-18btrfs: switch compression callbacks to direct callsDavid Sterba1-8/+69
2019-11-18btrfs: export compression and decompression callbacksDavid Sterba1-0/+24
2019-11-18btrfs: use better definition of number of compression typeChengguang Xu1-0/+2
2019-11-18Btrfs: use REQ_CGROUP_PUNT for worker thread submitted biosChris Mason1-1/+7
2019-11-18Btrfs: stop using btrfs_schedule_bio()Chris Mason1-4/+4
2019-09-09btrfs: move cond_wake_up functions out of ctreeDavid Sterba1-0/+1
2019-09-09btrfs: compression: replace set_level callbacks by a common helperDavid Sterba1-2/+18
2019-07-02btrfs: lift bio_set_dev from bio allocation helpersDavid Sterba1-4/+8
2019-07-02btrfs: correctly validate compression typeJohannes Thumshirn1-0/+16
2019-07-01btrfs: remove assumption about csum type form btrfs_print_data_csum_error()Johannes Thumshirn1-2/+1
2019-07-01btrfs: directly call into crypto framework for checksummingJohannes Thumshirn1-6/+11
2019-07-01btrfs: don't assume compressed_bio sums to be 4 bytesJohannes Thumshirn1-10/+17
2019-07-01btrfs: don't assume ordered sums to be 4 bytesJohannes Thumshirn1-2/+2
2019-05-20Merge tag 'for-5.2-rc1-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-0/+1
2019-05-07Merge tag 'for-5.2/block-20190507' of git://git.kernel.dk/linux-blockLinus Torvalds1-2/+1
2019-05-03btrfs: Check the compression level before getting a workspaceJohnny Chang1-0/+1
2019-04-30block: remove the i argument to bio_for_each_segment_allChristoph Hellwig1-2/+1
2019-04-29btrfs: Use less confusing condition for uptodate parameter to btrfs_writepage...Nikolay Borisov1-1/+1
2019-03-08Merge tag 'for-5.1/block-20190302' of git://git.kernel.dk/linux-blockLinus Torvalds1-1/+2
2019-02-25btrfs: change set_level() to bound the level passed inDennis Zhou1-8/+17
2019-02-25btrfs: plumb level through the compression interfaceDennis Zhou1-15/+16
2019-02-25btrfs: move to function pointers for get/put workspacesDennis Zhou1-45/+56
2019-02-25btrfs: add compression interface in (get/put)_workspaceDennis Zhou1-23/+34
2019-02-25btrfs: add helper methods for workspace manager init and cleanupDennis Zhou1-39/+43
2019-02-25btrfs: unify compression ops with workspace_managerDennis Zhou1-4/+7
2019-02-25btrfs: manage heuristic workspace as index 0Dennis Zhou1-82/+30
2019-02-25btrfs: rename workspaces_list to workspace_managerDennis Zhou1-23/+23
2019-02-25btrfs: add helpers for compression type and levelDennis Zhou1-1/+1
2019-02-15block: allow bio_for_each_segment_all() to iterate over multi-page bvecMing Lei1-1/+2
2018-12-17btrfs: Fix typos in comments and stringsAndrea Gelmini1-2/+2
2018-12-17btrfs: use PAGE_ALIGNED instead of open-coding itJohannes Thumshirn1-1/+1
2018-12-17btrfs: use offset_in_page instead of open-coding itJohannes Thumshirn1-1/+1