Lines Matching defs:compression

46 #include "compression.h"
725 * Check if the inode needs to be submitted to compression, based on mount
737 DEBUG_WARN("BTRFS: unexpected compression for ino %llu", btrfs_ino(inode));
743 * do not even bother try compression, as there will be no space saving
759 /* bad compression ratios */
792 "missing a folio inside the compression range, index %lu start %llu end %llu",
851 * Work queue call back to started compression on a file and pages.
853 * This is done inside an ordered work queue, and the compression is spread
858 * If this code finds it can't get good compression, it puts an entry onto the
910 * compression, that's just a waste of CPU time. So, if the
922 * We do compression for mount -o compress and when the inode has not
924 * discover bad compression ratios.
956 * One last check to make sure the compression is really a win, compare
957 * the page count read with the blocks on disk, compression must free at
1082 file_extent.compression = async_extent->cb->compress_type;
1219 file_extent.compression = BTRFS_COMPRESS_NONE;
1827 args->file_extent.compression = btrfs_file_extent_compression(leaf, fi);
6485 /* 1 to add compression property */
6527 * Currently only the compression flags and the cow flags are inherited.
6651 * If we inherited compression from the parent directory, it
6653 * compression along with nodatacow/nodatasun, otherwise if a
7525 ASSERT(file_extent->compression != BTRFS_COMPRESS_NONE);
7548 btrfs_extent_map_set_compression(em, file_extent->compression);
9463 encoded->compression = ret;
9464 if (encoded->compression) {
9793 encoded->compression = ret;
9847 int compression;
9858 switch (encoded->compression) {
9860 compression = BTRFS_COMPRESS_ZLIB;
9863 compression = BTRFS_COMPRESS_ZSTD;
9871 if (encoded->compression -
9875 compression = BTRFS_COMPRESS_LZO;
9901 * size, but the buffered I/O path falls back to no compression for such
10012 orig_count, compression,
10033 file_extent.compression = compression;