Lines Matching defs:compression

47 #include "compression.h"
745 * Check if the inode needs to be submitted to compression, based on mount
755 KERN_ERR "BTRFS: unexpected compression for ino %llu\n",
773 * So here we add an artificial limit that subpage compression can only
777 * the tailing partial page will be locked until the full compression
797 /* bad compression ratios */
817 * Work queue call back to started compression on a file and pages.
819 * This is done inside an ordered work queue, and the compression is spread
824 * If this code finds it can't get good compression, it puts an entry onto the
879 * compression, that's just a waste of CPU time. So, if the
893 * Skip compression for a small file range(<=blocksize) that
917 * We do compression for mount -o compress and when the inode has not
919 * discover bad compression ratios.
1008 * One last check to make sure the compression is really a win, compare
1009 * the page count read with the blocks on disk, compression must free at
6112 /* 1 to add compression property */
6154 * Currently only the compression flags and the cow flags are inherited.
7478 * compression on the data, while keeping the pages locked, so by the
7483 * are locked, likely due to compression still in progress, we don't want
7485 * dirty or under writeback (same as for the non-compression case).
7825 * compression enabled. The first filemap_fdatawrite_range() only kicks
7826 * in the compression of data (in an async thread) and will return
7827 * before the compression is done and writeback is started. A second
7828 * filemap_fdatawrite_range() is needed to wait for the compression to
9874 encoded->compression = ret;
9875 if (encoded->compression) {
10148 encoded->compression = ret;
10177 encoded->compression,
10205 int compression;
10216 switch (encoded->compression) {
10218 compression = BTRFS_COMPRESS_ZLIB;
10221 compression = BTRFS_COMPRESS_ZSTD;
10229 if (encoded->compression -
10233 compression = BTRFS_COMPRESS_LZO;
10259 * size, but the buffered I/O path falls back to no compression for such
10364 compression, pages, true);
10380 ins.offset, ins.offset, ram_bytes, compression,
10393 compression);