Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
backref.h File Reference
#include "ioctl.h"
#include "ulist.h"
#include "extent_io.h"

Go to the source code of this file.

Data Structures

struct  inode_fs_paths
 

Macros

#define BTRFS_BACKREF_SEARCH_COMMIT_ROOT   ((struct btrfs_trans_handle *)0)
 

Typedefs

typedef intiterate_extent_inodes_t )(u64 inum, u64 offset, u64 root, void *ctx)
 

Functions

int inode_item_info (u64 inum, u64 ioff, struct btrfs_root *fs_root, struct btrfs_path *path)
 
int extent_from_logical (struct btrfs_fs_info *fs_info, u64 logical, struct btrfs_path *path, struct btrfs_key *found_key, u64 *flags)
 
int tree_backref_for_extent (unsigned long *ptr, struct extent_buffer *eb, struct btrfs_extent_item *ei, u32 item_size, u64 *out_root, u8 *out_level)
 
int iterate_extent_inodes (struct btrfs_fs_info *fs_info, u64 extent_item_objectid, u64 extent_offset, int search_commit_root, iterate_extent_inodes_t *iterate, void *ctx)
 
int iterate_inodes_from_logical (u64 logical, struct btrfs_fs_info *fs_info, struct btrfs_path *path, iterate_extent_inodes_t *iterate, void *ctx)
 
int paths_from_inode (u64 inum, struct inode_fs_paths *ipath)
 
int btrfs_find_all_roots (struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info, u64 bytenr, u64 time_seq, struct ulist **roots)
 
charbtrfs_iref_to_path (struct btrfs_root *fs_root, struct btrfs_path *path, struct btrfs_inode_ref *iref, struct extent_buffer *eb, u64 parent, char *dest, u32 size)
 
charbtrfs_ref_to_path (struct btrfs_root *fs_root, struct btrfs_path *path, u32 name_len, unsigned long name_off, struct extent_buffer *eb_in, u64 parent, char *dest, u32 size)
 
struct btrfs_data_containerinit_data_container (u32 total_bytes)
 
struct inode_fs_pathsinit_ipath (s32 total_bytes, struct btrfs_root *fs_root, struct btrfs_path *path)
 
void free_ipath (struct inode_fs_paths *ipath)
 
int btrfs_find_one_extref (struct btrfs_root *root, u64 inode_objectid, u64 start_off, struct btrfs_path *path, struct btrfs_inode_extref **ret_extref, u64 *found_off)
 

Macro Definition Documentation

#define BTRFS_BACKREF_SEARCH_COMMIT_ROOT   ((struct btrfs_trans_handle *)0)

Definition at line 26 of file backref.h.

Typedef Documentation

typedef int( iterate_extent_inodes_t)(u64 inum, u64 offset, u64 root, void *ctx)

Definition at line 34 of file backref.h.

Function Documentation

int btrfs_find_all_roots ( struct btrfs_trans_handle trans,
struct btrfs_fs_info fs_info,
u64  bytenr,
u64  time_seq,
struct ulist **  roots 
)

Definition at line 1022 of file backref.c.

int btrfs_find_one_extref ( struct btrfs_root root,
u64  inode_objectid,
u64  start_off,
struct btrfs_path path,
struct btrfs_inode_extref **  ret_extref,
u64 found_off 
)

Definition at line 1110 of file backref.c.

char* btrfs_iref_to_path ( struct btrfs_root fs_root,
struct btrfs_path path,
struct btrfs_inode_ref iref,
struct extent_buffer eb,
u64  parent,
char dest,
u32  size 
)

Definition at line 1260 of file backref.c.

char* btrfs_ref_to_path ( struct btrfs_root fs_root,
struct btrfs_path path,
u32  name_len,
unsigned long  name_off,
struct extent_buffer eb_in,
u64  parent,
char dest,
u32  size 
)

Definition at line 1178 of file backref.c.

int extent_from_logical ( struct btrfs_fs_info fs_info,
u64  logical,
struct btrfs_path path,
struct btrfs_key found_key,
u64 flags 
)

Definition at line 1277 of file backref.c.

void free_ipath ( struct inode_fs_paths ipath)

Definition at line 1802 of file backref.c.

struct btrfs_data_container* init_data_container ( u32  total_bytes)
read

Definition at line 1749 of file backref.c.

struct inode_fs_paths* init_ipath ( s32  total_bytes,
struct btrfs_root fs_root,
struct btrfs_path path 
)
read

Definition at line 1779 of file backref.c.

int inode_item_info ( u64  inum,
u64  ioff,
struct btrfs_root fs_root,
struct btrfs_path path 
)

Definition at line 1094 of file backref.c.

int iterate_extent_inodes ( struct btrfs_fs_info fs_info,
u64  extent_item_objectid,
u64  extent_offset,
int  search_commit_root,
iterate_extent_inodes_t iterate,
void ctx 
)

Definition at line 1453 of file backref.c.

int iterate_inodes_from_logical ( u64  logical,
struct btrfs_fs_info fs_info,
struct btrfs_path path,
iterate_extent_inodes_t iterate,
void ctx 
)

Definition at line 1520 of file backref.c.

int paths_from_inode ( u64  inum,
struct inode_fs_paths ipath 
)

Definition at line 1743 of file backref.c.

int tree_backref_for_extent ( unsigned long ptr,
struct extent_buffer eb,
struct btrfs_extent_item ei,
u32  item_size,
u64 out_root,
u8 out_level 
)

Definition at line 1389 of file backref.c.