Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
xfs_dir2.c File Reference
#include "xfs.h"
#include "xfs_fs.h"
#include "xfs_types.h"
#include "xfs_log.h"
#include "xfs_inum.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_alloc_btree.h"
#include "xfs_dinode.h"
#include "xfs_inode.h"
#include "xfs_inode_item.h"
#include "xfs_bmap.h"
#include "xfs_dir2.h"
#include "xfs_dir2_format.h"
#include "xfs_dir2_priv.h"
#include "xfs_error.h"
#include "xfs_vnodeops.h"
#include "xfs_trace.h"

Go to the source code of this file.

Functions

STATIC xfs_dahash_t xfs_ascii_ci_hashname (struct xfs_name *name)
 
STATIC enum xfs_dacmp xfs_ascii_ci_compname (struct xfs_da_args *args, const unsigned char *name, int len)
 
void xfs_dir_mount (xfs_mount_t *mp)
 
int xfs_dir_isempty (xfs_inode_t *dp)
 
int xfs_dir_ino_validate (xfs_mount_t *mp, xfs_ino_t ino)
 
int xfs_dir_init (xfs_trans_t *tp, xfs_inode_t *dp, xfs_inode_t *pdp)
 
int xfs_dir_createname (xfs_trans_t *tp, xfs_inode_t *dp, struct xfs_name *name, xfs_ino_t inum, xfs_fsblock_t *first, xfs_bmap_free_t *flist, xfs_extlen_t total)
 
int xfs_dir_cilookup_result (struct xfs_da_args *args, const unsigned char *name, int len)
 
int xfs_dir_lookup (xfs_trans_t *tp, xfs_inode_t *dp, struct xfs_name *name, xfs_ino_t *inum, struct xfs_name *ci_name)
 
int xfs_dir_removename (xfs_trans_t *tp, xfs_inode_t *dp, struct xfs_name *name, xfs_ino_t ino, xfs_fsblock_t *first, xfs_bmap_free_t *flist, xfs_extlen_t total)
 
int xfs_readdir (xfs_inode_t *dp, void *dirent, size_t bufsize, xfs_off_t *offset, filldir_t filldir)
 
int xfs_dir_replace (xfs_trans_t *tp, xfs_inode_t *dp, struct xfs_name *name, xfs_ino_t inum, xfs_fsblock_t *first, xfs_bmap_free_t *flist, xfs_extlen_t total)
 
int xfs_dir_canenter (xfs_trans_t *tp, xfs_inode_t *dp, struct xfs_name *name, uint resblks)
 
int xfs_dir2_grow_inode (struct xfs_da_args *args, int space, xfs_dir2_db_t *dbp)
 
int xfs_dir2_isblock (xfs_trans_t *tp, xfs_inode_t *dp, int *vp)
 
int xfs_dir2_isleaf (xfs_trans_t *tp, xfs_inode_t *dp, int *vp)
 
int xfs_dir2_shrink_inode (xfs_da_args_t *args, xfs_dir2_db_t db, struct xfs_buf *bp)
 

Variables

struct xfs_name xfs_name_dotdot = { (unsigned char *)"..", 2}
 

Function Documentation

STATIC enum xfs_dacmp xfs_ascii_ci_compname ( struct xfs_da_args args,
const unsigned char name,
int  len 
)

Definition at line 61 of file xfs_dir2.c.

STATIC xfs_dahash_t xfs_ascii_ci_hashname ( struct xfs_name name)

Definition at line 48 of file xfs_dir2.c.

int xfs_dir2_grow_inode ( struct xfs_da_args args,
int  space,
xfs_dir2_db_t dbp 
)

Definition at line 504 of file xfs_dir2.c.

int xfs_dir2_isblock ( xfs_trans_t *  tp,
xfs_inode_t *  dp,
int vp 
)

Definition at line 548 of file xfs_dir2.c.

int xfs_dir2_isleaf ( xfs_trans_t *  tp,
xfs_inode_t *  dp,
int vp 
)

Definition at line 570 of file xfs_dir2.c.

int xfs_dir2_shrink_inode ( xfs_da_args_t args,
xfs_dir2_db_t  db,
struct xfs_buf bp 
)

Definition at line 592 of file xfs_dir2.c.

int xfs_dir_canenter ( xfs_trans_t *  tp,
xfs_inode_t *  dp,
struct xfs_name name,
uint  resblks 
)

Definition at line 453 of file xfs_dir2.c.

int xfs_dir_cilookup_result ( struct xfs_da_args args,
const unsigned char name,
int  len 
)

Definition at line 242 of file xfs_dir2.c.

int xfs_dir_createname ( xfs_trans_t *  tp,
xfs_inode_t *  dp,
struct xfs_name name,
xfs_ino_t  inum,
xfs_fsblock_t first,
xfs_bmap_free_t flist,
xfs_extlen_t  total 
)

Definition at line 191 of file xfs_dir2.c.

int xfs_dir_init ( xfs_trans_t *  tp,
xfs_inode_t *  dp,
xfs_inode_t *  pdp 
)

Definition at line 170 of file xfs_dir2.c.

int xfs_dir_ino_validate ( xfs_mount_t *  mp,
xfs_ino_t  ino 
)

Definition at line 136 of file xfs_dir2.c.

int xfs_dir_isempty ( xfs_inode_t *  dp)

Definition at line 118 of file xfs_dir2.c.

int xfs_dir_lookup ( xfs_trans_t *  tp,
xfs_inode_t *  dp,
struct xfs_name name,
xfs_ino_t *  inum,
struct xfs_name ci_name 
)

Definition at line 269 of file xfs_dir2.c.

void xfs_dir_mount ( xfs_mount_t *  mp)

Definition at line 90 of file xfs_dir2.c.

int xfs_dir_removename ( xfs_trans_t *  tp,
xfs_inode_t *  dp,
struct xfs_name name,
xfs_ino_t  ino,
xfs_fsblock_t first,
xfs_bmap_free_t flist,
xfs_extlen_t  total 
)

Definition at line 322 of file xfs_dir2.c.

int xfs_dir_replace ( xfs_trans_t *  tp,
xfs_inode_t *  dp,
struct xfs_name name,
xfs_ino_t  inum,
xfs_fsblock_t first,
xfs_bmap_free_t flist,
xfs_extlen_t  total 
)

Definition at line 403 of file xfs_dir2.c.

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

Definition at line 369 of file xfs_dir2.c.

Variable Documentation

struct xfs_name xfs_name_dotdot = { (unsigned char *)"..", 2}

Definition at line 41 of file xfs_dir2.c.