Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
btrfs_compress_op Struct Reference

#include <compression.h>

Data Fields

struct list_head *(* alloc_workspace )(void)
 
void(* free_workspace )(struct list_head *workspace)
 
int(* compress_pages )(struct list_head *workspace, struct address_space *mapping, u64 start, unsigned long len, struct page **pages, unsigned long nr_dest_pages, unsigned long *out_pages, unsigned long *total_in, unsigned long *total_out, unsigned long max_out)
 
int(* decompress_biovec )(struct list_head *workspace, struct page **pages_in, u64 disk_start, struct bio_vec *bvec, int vcnt, size_t srclen)
 
int(* decompress )(struct list_head *workspace, unsigned char *data_in, struct page *dest_page, unsigned long start_byte, size_t srclen, size_t destlen)
 

Detailed Description

Definition at line 51 of file compression.h.

Field Documentation

struct list_head*(* alloc_workspace)(void)
read

Definition at line 52 of file compression.h.

int(* compress_pages)(struct list_head *workspace, struct address_space *mapping, u64 start, unsigned long len, struct page **pages, unsigned long nr_dest_pages, unsigned long *out_pages, unsigned long *total_in, unsigned long *total_out, unsigned long max_out)

Definition at line 56 of file compression.h.

int(* decompress)(struct list_head *workspace, unsigned char *data_in, struct page *dest_page, unsigned long start_byte, size_t srclen, size_t destlen)

Definition at line 73 of file compression.h.

int(* decompress_biovec)(struct list_head *workspace, struct page **pages_in, u64 disk_start, struct bio_vec *bvec, int vcnt, size_t srclen)

Definition at line 66 of file compression.h.

void(* free_workspace)(struct list_head *workspace)

Definition at line 54 of file compression.h.


The documentation for this struct was generated from the following file: