revert-mm-fix-blkdev-size-calculation-in-generic_write_checks
[linux-2.6/linux-trees-mm.git] / fs / reiser4 / plugin / compress / compress.h
blobcf00ce103ce65956cc6a00840e5e2ddc31a7a195
1 #if !defined( __FS_REISER4_COMPRESS_H__ )
2 #define __FS_REISER4_COMPRESS_H__
4 #include <linux/types.h>
5 #include <linux/string.h>
7 /* transform direction */
8 typedef enum {
9 TFMA_READ, /* decrypt, decompress */
10 TFMA_WRITE, /* encrypt, compress */
11 TFMA_LAST
12 } tfm_action;
14 /* supported compression algorithms */
15 typedef enum {
16 LZO1_COMPRESSION_ID,
17 GZIP1_COMPRESSION_ID,
18 LAST_COMPRESSION_ID,
19 } reiser4_compression_id;
21 /* the same as pgoff, but units are page clusters */
22 typedef unsigned long cloff_t;
24 /* working data of a (de)compression algorithm */
25 typedef void *coa_t;
27 /* table for all supported (de)compression algorithms */
28 typedef coa_t coa_set[LAST_COMPRESSION_ID][TFMA_LAST];
30 __u32 reiser4_adler32(char *data, __u32 len);
32 #endif /* __FS_REISER4_COMPRESS_H__ */
34 /* Make Linus happy.
35 Local variables:
36 c-indentation-style: "K&R"
37 mode-name: "LC"
38 c-basic-offset: 8
39 tab-width: 8
40 fill-column: 120
41 scroll-step: 1
42 End: