Lines Matching full:compression

31  * Constants used in the compression code
39 /* Compression sub-block constants. */
45 * The maximum compression block size is by definition 16 * the cluster
47 * maximum compression buffer size is 64kiB, so we use this when
48 * initializing the compression buffer.
134 * ntfs_decompress - decompress a compression block into an array of pages
143 * @cb_start: compression block to decompress (IN)
144 * @cb_size: size of compression block @cb_start in bytes (IN)
151 * This decompresses the compression block @cb_start into the array of
158 * @cb_start is a pointer to the compression block which needs decompressing
163 * completed during the decompression of the compression block (@cb_start).
169 * the compression block @cb_start as it is a per-CPU buffer.
178 * Pointers into the compressed data, i.e. the compression block (cb), in ntfs_decompress()
207 * Have we reached the end of the compression block or the end of the in ntfs_decompress()
209 * position in the compression block is one byte before its end so the in ntfs_decompress()
447 * @folio: locked folio in the compression block(s) we need to read
452 * 1. Determine which compression block(s) @page is in.
453 * 2. Get hold of all pages corresponding to this/these compression block(s).
454 * 3. Read the (first) compression block.
456 * 5. Throw the compressed data away and proceed to 3. for the next compression
457 * block or return success if no more compression blocks left.
489 /* Number of compression blocks (cbs) in the wanted vcn range. */ in ntfs_read_compressed_block()
494 * compression blocks (cbs) overlapping @page. Due to alignment in ntfs_read_compressed_block()
580 * Now read the first compression block. in ntfs_read_compressed_block()
674 ntfs_debug("Successfully read the compression block."); in ntfs_read_compressed_block()
681 /* Catch end of file inside a compression block. */ in ntfs_read_compressed_block()
687 ntfs_debug("Found sparse compression block."); in ntfs_read_compressed_block()
734 ntfs_debug("Found uncompressed compression block."); in ntfs_read_compressed_block()
789 ntfs_debug("Found compressed compression block."); in ntfs_read_compressed_block()
800 "ntfs_decompress() failed in inode 0x%llx with error code %i. Skipping this compression block.", in ntfs_read_compressed_block()
850 ntfs_error(vol->sb, "ntfs_map_runlist() failed. Cannot read compression block."); in ntfs_read_compressed_block()
855 ntfs_error(vol->sb, "ntfs_rl_vcn_to_lcn() failed. Cannot read compression block."); in ntfs_read_compressed_block()
895 * are used solely for the match-finding algorithm during compression.
1079 * If compression is not effective, the header and an uncompressed
1135 * compression modes of zlib. in ntfs_compress_block()
1267 * Free the compression context and return the total number of bytes in ntfs_compress_block()