Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
dir-item.c File Reference
#include "ctree.h"
#include "disk-io.h"
#include "hash.h"
#include "transaction.h"

Go to the source code of this file.

Functions

int btrfs_insert_xattr_item (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, u64 objectid, const char *name, u16 name_len, const void *data, u16 data_len)
 
int btrfs_insert_dir_item (struct btrfs_trans_handle *trans, struct btrfs_root *root, const char *name, int name_len, struct inode *dir, struct btrfs_key *location, u8 type, u64 index)
 
struct btrfs_dir_itembtrfs_lookup_dir_item (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, u64 dir, const char *name, int name_len, int mod)
 
struct btrfs_dir_itembtrfs_lookup_dir_index_item (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, u64 dir, u64 objectid, const char *name, int name_len, int mod)
 
struct btrfs_dir_itembtrfs_search_dir_index_item (struct btrfs_root *root, struct btrfs_path *path, u64 dirid, const char *name, int name_len)
 
struct btrfs_dir_itembtrfs_lookup_xattr (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, u64 dir, const char *name, u16 name_len, int mod)
 
struct btrfs_dir_itembtrfs_match_dir_item_name (struct btrfs_root *root, struct btrfs_path *path, const char *name, int name_len)
 
int btrfs_delete_one_dir_name (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, struct btrfs_dir_item *di)
 
int verify_dir_item (struct btrfs_root *root, struct extent_buffer *leaf, struct btrfs_dir_item *dir_item)
 

Function Documentation

int btrfs_delete_one_dir_name ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct btrfs_path path,
struct btrfs_dir_item di 
)

Definition at line 361 of file dir-item.c.

int btrfs_insert_dir_item ( struct btrfs_trans_handle trans,
struct btrfs_root root,
const char name,
int  name_len,
struct inode dir,
struct btrfs_key location,
u8  type,
u64  index 
)

Definition at line 120 of file dir-item.c.

int btrfs_insert_xattr_item ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct btrfs_path path,
u64  objectid,
const char name,
u16  name_len,
const void data,
u16  data_len 
)

Definition at line 68 of file dir-item.c.

struct btrfs_dir_item* btrfs_lookup_dir_index_item ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct btrfs_path path,
u64  dir,
u64  objectid,
const char name,
int  name_len,
int  mod 
)
read

Definition at line 225 of file dir-item.c.

struct btrfs_dir_item* btrfs_lookup_dir_item ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct btrfs_path path,
u64  dir,
const char name,
int  name_len,
int  mod 
)
read

Definition at line 191 of file dir-item.c.

struct btrfs_dir_item* btrfs_lookup_xattr ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct btrfs_path path,
u64  dir,
const char name,
u16  name_len,
int  mod 
)
read

Definition at line 295 of file dir-item.c.

struct btrfs_dir_item* btrfs_match_dir_item_name ( struct btrfs_root root,
struct btrfs_path path,
const char name,
int  name_len 
)
read

Definition at line 323 of file dir-item.c.

struct btrfs_dir_item* btrfs_search_dir_index_item ( struct btrfs_root root,
struct btrfs_path path,
u64  dirid,
const char name,
int  name_len 
)
read

Definition at line 249 of file dir-item.c.

int verify_dir_item ( struct btrfs_root root,
struct extent_buffer leaf,
struct btrfs_dir_item dir_item 
)

Definition at line 392 of file dir-item.c.