|
Linux Kernel
3.7.1
|
#include <linux/kernel.h>#include <linux/bio.h>#include <linux/buffer_head.h>#include <linux/file.h>#include <linux/fs.h>#include <linux/pagemap.h>#include <linux/highmem.h>#include <linux/time.h>#include <linux/init.h>#include <linux/string.h>#include <linux/backing-dev.h>#include <linux/mpage.h>#include <linux/swap.h>#include <linux/writeback.h>#include <linux/bit_spinlock.h>#include <linux/slab.h>#include "compat.h"#include "ctree.h"#include "disk-io.h"#include "transaction.h"#include "btrfs_inode.h"#include "volumes.h"#include "ordered-data.h"#include "compression.h"#include "extent_io.h"#include "extent_map.h"Go to the source code of this file.
Data Structures | |
| struct | compressed_bio |
Functions | |
| int | btrfs_submit_compressed_write (struct inode *inode, u64 start, unsigned long len, u64 disk_start, unsigned long compressed_len, struct page **compressed_pages, unsigned long nr_pages) |
| int | btrfs_submit_compressed_read (struct inode *inode, struct bio *bio, int mirror_num, unsigned long bio_flags) |
| void __init | btrfs_init_compress (void) |
| int | btrfs_compress_pages (int type, 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 | btrfs_decompress_biovec (int type, struct page **pages_in, u64 disk_start, struct bio_vec *bvec, int vcnt, size_t srclen) |
| int | btrfs_decompress (int type, unsigned char *data_in, struct page *dest_page, unsigned long start_byte, size_t srclen, size_t destlen) |
| void | btrfs_exit_compress (void) |
| int | btrfs_decompress_buf2page (char *buf, unsigned long buf_start, unsigned long total_out, u64 disk_start, struct bio_vec *bvec, int vcnt, unsigned long *pg_index, unsigned long *pg_offset) |
Variables | |
| struct btrfs_compress_op * | btrfs_compress_op [] |
| int btrfs_compress_pages | ( | int | type, |
| 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 870 of file compression.c.
| int btrfs_decompress | ( | int | type, |
| unsigned char * | data_in, | ||
| struct page * | dest_page, | ||
| unsigned long | start_byte, | ||
| size_t | srclen, | ||
| size_t | destlen | ||
| ) |
Definition at line 933 of file compression.c.
| int btrfs_decompress_biovec | ( | int | type, |
| struct page ** | pages_in, | ||
| u64 | disk_start, | ||
| struct bio_vec * | bvec, | ||
| int | vcnt, | ||
| size_t | srclen | ||
| ) |
Definition at line 911 of file compression.c.
| int btrfs_decompress_buf2page | ( | char * | buf, |
| unsigned long | buf_start, | ||
| unsigned long | total_out, | ||
| u64 | disk_start, | ||
| struct bio_vec * | bvec, | ||
| int | vcnt, | ||
| unsigned long * | pg_index, | ||
| unsigned long * | pg_offset | ||
| ) |
Definition at line 963 of file compression.c.
Definition at line 951 of file compression.c.
Definition at line 745 of file compression.c.
| int btrfs_submit_compressed_read | ( | struct inode * | inode, |
| struct bio * | bio, | ||
| int | mirror_num, | ||
| unsigned long | bio_flags | ||
| ) |
Definition at line 561 of file compression.c.
| int btrfs_submit_compressed_write | ( | struct inode * | inode, |
| u64 | start, | ||
| unsigned long | len, | ||
| u64 | disk_start, | ||
| unsigned long | compressed_len, | ||
| struct page ** | compressed_pages, | ||
| unsigned long | nr_pages | ||
| ) |
Definition at line 325 of file compression.c.
Definition at line 740 of file compression.c.
1.8.2