Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
xfs_dir2_leaf.c File Reference
#include "xfs.h"
#include "xfs_fs.h"
#include "xfs_types.h"
#include "xfs_bit.h"
#include "xfs_log.h"
#include "xfs_trans.h"
#include "xfs_sb.h"
#include "xfs_ag.h"
#include "xfs_mount.h"
#include "xfs_da_btree.h"
#include "xfs_bmap_btree.h"
#include "xfs_dinode.h"
#include "xfs_inode.h"
#include "xfs_bmap.h"
#include "xfs_dir2_format.h"
#include "xfs_dir2_priv.h"
#include "xfs_error.h"
#include "xfs_trace.h"

Go to the source code of this file.

Data Structures

struct  xfs_dir2_leaf_map_info
 

Macros

#define xfs_dir2_leaf_check(dp, bp)
 

Functions

int xfs_dir2_block_to_leaf (xfs_da_args_t *args, struct xfs_buf *dbp)
 
STATIC void xfs_dir2_leaf_find_stale (struct xfs_dir2_leaf *leaf, int index, int *lowstale, int *highstale)
 
struct xfs_dir2_leaf_entryxfs_dir2_leaf_find_entry (xfs_dir2_leaf_t *leaf, int index, int compact, int lowstale, int highstale, int *lfloglow, int *lfloghigh)
 
int xfs_dir2_leaf_addname (xfs_da_args_t *args)
 
void xfs_dir2_leaf_compact (xfs_da_args_t *args, struct xfs_buf *bp)
 
void xfs_dir2_leaf_compact_x1 (struct xfs_buf *bp, int *indexp, int *lowstalep, int *highstalep, int *lowlogp, int *highlogp)
 
STATIC int xfs_dir2_leaf_readbuf (struct xfs_inode *dp, size_t bufsize, struct xfs_dir2_leaf_map_info *mip, xfs_dir2_off_t *curoff, struct xfs_buf **bpp)
 
int xfs_dir2_leaf_getdents (xfs_inode_t *dp, void *dirent, size_t bufsize, xfs_off_t *offset, filldir_t filldir)
 
int xfs_dir2_leaf_init (xfs_da_args_t *args, xfs_dir2_db_t bno, struct xfs_buf **bpp, int magic)
 
void xfs_dir2_leaf_log_ents (xfs_trans_t *tp, struct xfs_buf *bp, int first, int last)
 
void xfs_dir2_leaf_log_header (struct xfs_trans *tp, struct xfs_buf *bp)
 
int xfs_dir2_leaf_lookup (xfs_da_args_t *args)
 
int xfs_dir2_leaf_removename (xfs_da_args_t *args)
 
int xfs_dir2_leaf_replace (xfs_da_args_t *args)
 
int xfs_dir2_leaf_search_hash (xfs_da_args_t *args, struct xfs_buf *lbp)
 
int xfs_dir2_leaf_trim_data (xfs_da_args_t *args, struct xfs_buf *lbp, xfs_dir2_db_t db)
 
int xfs_dir2_node_to_leaf (xfs_da_state_t *state)
 

Macro Definition Documentation

#define xfs_dir2_leaf_check (   dp,
  bp 
)

Definition at line 43 of file xfs_dir2_leaf.c.

Function Documentation

int xfs_dir2_block_to_leaf ( xfs_da_args_t args,
struct xfs_buf dbp 
)

Definition at line 56 of file xfs_dir2_leaf.c.

int xfs_dir2_leaf_addname ( xfs_da_args_t args)

Definition at line 278 of file xfs_dir2_leaf.c.

void xfs_dir2_leaf_compact ( xfs_da_args_t args,
struct xfs_buf bp 
)

Definition at line 625 of file xfs_dir2_leaf.c.

void xfs_dir2_leaf_compact_x1 ( struct xfs_buf bp,
int indexp,
int lowstalep,
int highstalep,
int lowlogp,
int highlogp 
)

Definition at line 675 of file xfs_dir2_leaf.c.

struct xfs_dir2_leaf_entry* xfs_dir2_leaf_find_entry ( xfs_dir2_leaf_t leaf,
int  index,
int  compact,
int  lowstale,
int  highstale,
int lfloglow,
int lfloghigh 
)
read

Definition at line 182 of file xfs_dir2_leaf.c.

STATIC void xfs_dir2_leaf_find_stale ( struct xfs_dir2_leaf leaf,
int  index,
int lowstale,
int highstale 
)

Definition at line 150 of file xfs_dir2_leaf.c.

int xfs_dir2_leaf_getdents ( xfs_inode_t *  dp,
void dirent,
size_t  bufsize,
xfs_off_t *  offset,
filldir_t  filldir 
)

Definition at line 979 of file xfs_dir2_leaf.c.

int xfs_dir2_leaf_init ( xfs_da_args_t args,
xfs_dir2_db_t  bno,
struct xfs_buf **  bpp,
int  magic 
)

Definition at line 1156 of file xfs_dir2_leaf.c.

void xfs_dir2_leaf_log_ents ( xfs_trans_t *  tp,
struct xfs_buf bp,
int  first,
int  last 
)

Definition at line 1237 of file xfs_dir2_leaf.c.

void xfs_dir2_leaf_log_header ( struct xfs_trans *  tp,
struct xfs_buf bp 
)

Definition at line 1260 of file xfs_dir2_leaf.c.

int xfs_dir2_leaf_lookup ( xfs_da_args_t args)

Definition at line 1299 of file xfs_dir2_leaf.c.

STATIC int xfs_dir2_leaf_readbuf ( struct xfs_inode *  dp,
size_t  bufsize,
struct xfs_dir2_leaf_map_info mip,
xfs_dir2_off_t curoff,
struct xfs_buf **  bpp 
)

Definition at line 777 of file xfs_dir2_leaf.c.

int xfs_dir2_leaf_removename ( xfs_da_args_t args)

Definition at line 1479 of file xfs_dir2_leaf.c.

int xfs_dir2_leaf_replace ( xfs_da_args_t args)

Definition at line 1617 of file xfs_dir2_leaf.c.

int xfs_dir2_leaf_search_hash ( xfs_da_args_t args,
struct xfs_buf lbp 
)

Definition at line 1668 of file xfs_dir2_leaf.c.

int xfs_dir2_leaf_trim_data ( xfs_da_args_t args,
struct xfs_buf lbp,
xfs_dir2_db_t  db 
)

Definition at line 1721 of file xfs_dir2_leaf.c.

int xfs_dir2_node_to_leaf ( xfs_da_state_t state)

Definition at line 1799 of file xfs_dir2_leaf.c.