Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
ordered-data.c File Reference
#include <linux/slab.h>
#include <linux/blkdev.h>
#include <linux/writeback.h>
#include <linux/pagevec.h>
#include "ctree.h"
#include "transaction.h"
#include "btrfs_inode.h"
#include "extent_io.h"

Go to the source code of this file.

Functions

int btrfs_add_ordered_extent (struct inode *inode, u64 file_offset, u64 start, u64 len, u64 disk_len, int type)
 
int btrfs_add_ordered_extent_dio (struct inode *inode, u64 file_offset, u64 start, u64 len, u64 disk_len, int type)
 
int btrfs_add_ordered_extent_compress (struct inode *inode, u64 file_offset, u64 start, u64 len, u64 disk_len, int type, int compress_type)
 
void btrfs_add_ordered_sum (struct inode *inode, struct btrfs_ordered_extent *entry, struct btrfs_ordered_sum *sum)
 
int btrfs_dec_test_first_ordered_pending (struct inode *inode, struct btrfs_ordered_extent **cached, u64 *file_offset, u64 io_size, int uptodate)
 
int btrfs_dec_test_ordered_pending (struct inode *inode, struct btrfs_ordered_extent **cached, u64 file_offset, u64 io_size, int uptodate)
 
void btrfs_put_ordered_extent (struct btrfs_ordered_extent *entry)
 
void btrfs_remove_ordered_extent (struct inode *inode, struct btrfs_ordered_extent *entry)
 
void btrfs_wait_ordered_extents (struct btrfs_root *root, int delay_iput)
 
void btrfs_run_ordered_operations (struct btrfs_root *root, int wait)
 
void btrfs_start_ordered_extent (struct inode *inode, struct btrfs_ordered_extent *entry, int wait)
 
void btrfs_wait_ordered_range (struct inode *inode, u64 start, u64 len)
 
struct btrfs_ordered_extentbtrfs_lookup_ordered_extent (struct inode *inode, u64 file_offset)
 
struct btrfs_ordered_extentbtrfs_lookup_ordered_range (struct inode *inode, u64 file_offset, u64 len)
 
struct btrfs_ordered_extentbtrfs_lookup_first_ordered_extent (struct inode *inode, u64 file_offset)
 
int btrfs_ordered_update_i_size (struct inode *inode, u64 offset, struct btrfs_ordered_extent *ordered)
 
int btrfs_find_ordered_sum (struct inode *inode, u64 offset, u64 disk_bytenr, u32 *sum)
 
void btrfs_add_ordered_operation (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct inode *inode)
 
int __init ordered_data_init (void)
 
void ordered_data_exit (void)
 

Function Documentation

int btrfs_add_ordered_extent ( struct inode inode,
u64  file_offset,
u64  start,
u64  len,
u64  disk_len,
int  type 
)

Definition at line 232 of file ordered-data.c.

int btrfs_add_ordered_extent_compress ( struct inode inode,
u64  file_offset,
u64  start,
u64  len,
u64  disk_len,
int  type,
int  compress_type 
)

Definition at line 248 of file ordered-data.c.

int btrfs_add_ordered_extent_dio ( struct inode inode,
u64  file_offset,
u64  start,
u64  len,
u64  disk_len,
int  type 
)

Definition at line 240 of file ordered-data.c.

void btrfs_add_ordered_operation ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct inode inode 
)

Definition at line 923 of file ordered-data.c.

void btrfs_add_ordered_sum ( struct inode inode,
struct btrfs_ordered_extent entry,
struct btrfs_ordered_sum sum 
)

Definition at line 262 of file ordered-data.c.

int btrfs_dec_test_first_ordered_pending ( struct inode inode,
struct btrfs_ordered_extent **  cached,
u64 file_offset,
u64  io_size,
int  uptodate 
)

Definition at line 286 of file ordered-data.c.

int btrfs_dec_test_ordered_pending ( struct inode inode,
struct btrfs_ordered_extent **  cached,
u64  file_offset,
u64  io_size,
int  uptodate 
)

Definition at line 354 of file ordered-data.c.

int btrfs_find_ordered_sum ( struct inode inode,
u64  offset,
u64  disk_bytenr,
u32 sum 
)

Definition at line 874 of file ordered-data.c.

struct btrfs_ordered_extent* btrfs_lookup_first_ordered_extent ( struct inode inode,
u64  file_offset 
)
read

Definition at line 741 of file ordered-data.c.

struct btrfs_ordered_extent* btrfs_lookup_ordered_extent ( struct inode inode,
u64  file_offset 
)
read

Definition at line 672 of file ordered-data.c.

struct btrfs_ordered_extent* btrfs_lookup_ordered_range ( struct inode inode,
u64  file_offset,
u64  len 
)
read

Definition at line 698 of file ordered-data.c.

int btrfs_ordered_update_i_size ( struct inode inode,
u64  offset,
struct btrfs_ordered_extent ordered 
)

Definition at line 764 of file ordered-data.c.

void btrfs_put_ordered_extent ( struct btrfs_ordered_extent entry)

Definition at line 410 of file ordered-data.c.

void btrfs_remove_ordered_extent ( struct inode inode,
struct btrfs_ordered_extent entry 
)

Definition at line 434 of file ordered-data.c.

void btrfs_run_ordered_operations ( struct btrfs_root root,
int  wait 
)

Definition at line 522 of file ordered-data.c.

void btrfs_start_ordered_extent ( struct inode inode,
struct btrfs_ordered_extent entry,
int  wait 
)

Definition at line 579 of file ordered-data.c.

void btrfs_wait_ordered_extents ( struct btrfs_root root,
int  delay_iput 
)

Definition at line 471 of file ordered-data.c.

void btrfs_wait_ordered_range ( struct inode inode,
u64  start,
u64  len 
)

Definition at line 604 of file ordered-data.c.

void ordered_data_exit ( void  )

Definition at line 965 of file ordered-data.c.

int __init ordered_data_init ( void  )

Definition at line 954 of file ordered-data.c.