Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
jfs_dtree.c File Reference
#include <linux/fs.h>
#include <linux/quotaops.h>
#include <linux/slab.h>
#include "jfs_incore.h"
#include "jfs_superblock.h"
#include "jfs_filsys.h"
#include "jfs_metapage.h"
#include "jfs_dmap.h"
#include "jfs_unicode.h"
#include "jfs_debug.h"

Go to the source code of this file.

Data Structures

struct  dtsplit
 
struct  jfs_dirent
 

Macros

#define DT_PAGE(IP, MP)   BT_PAGE(IP, MP, dtpage_t, i_dtroot)
 
#define DT_GETPAGE(IP, BN, MP, SIZE, P, RC)
 
#define DT_PUTPAGE(MP)   BT_PUTPAGE(MP)
 
#define DT_GETSEARCH(IP, LEAF, BN, MP, P, INDEX)   BT_GETSEARCH(IP, LEAF, BN, MP, dtpage_t, P, INDEX, i_dtroot)
 
#define ciToUpper(c)   UniStrupr((c)->name)
 

Functions

int dtSearch (struct inode *ip, struct component_name *key, ino_t *data, struct btstack *btstack, int flag)
 
int dtInsert (tid_t tid, struct inode *ip, struct component_name *name, ino_t *fsn, struct btstack *btstack)
 
int dtDelete (tid_t tid, struct inode *ip, struct component_name *key, ino_t *ino, int flag)
 
void dtInitRoot (tid_t tid, struct inode *ip, u32 idotdot)
 
int jfs_readdir (struct file *filp, void *dirent, filldir_t filldir)
 
int dtModify (tid_t tid, struct inode *ip, struct component_name *key, ino_t *orig_ino, ino_t new_ino, int flag)
 

Macro Definition Documentation

#define ciToUpper (   c)    UniStrupr((c)->name)

Definition at line 198 of file jfs_dtree.c.

#define DT_GETPAGE (   IP,
  BN,
  MP,
  SIZE,
  P,
  RC 
)
Value:
{\
BT_GETPAGE(IP, BN, MP, dtpage_t, SIZE, P, RC, i_dtroot)\
if (!(RC))\
{\
if (((P)->header.nextindex > (((BN)==0)?DTROOTMAXSLOT:(P)->header.maxslot)) ||\
((BN) && ((P)->header.maxslot > DTPAGEMAXSLOT)))\
{\
BT_PUTPAGE(MP);\
jfs_error((IP)->i_sb, "DT_GETPAGE: dtree page corrupt");\
MP = NULL;\
RC = -EIO;\
}\
}\
}

Definition at line 127 of file jfs_dtree.c.

#define DT_GETSEARCH (   IP,
  LEAF,
  BN,
  MP,
  P,
  INDEX 
)    BT_GETSEARCH(IP, LEAF, BN, MP, dtpage_t, P, INDEX, i_dtroot)

Definition at line 146 of file jfs_dtree.c.

#define DT_PAGE (   IP,
  MP 
)    BT_PAGE(IP, MP, dtpage_t, i_dtroot)

Definition at line 124 of file jfs_dtree.c.

#define DT_PUTPAGE (   MP)    BT_PUTPAGE(MP)

Definition at line 144 of file jfs_dtree.c.

Function Documentation

int dtDelete ( tid_t  tid,
struct inode ip,
struct component_name key,
ino_t ino,
int  flag 
)

Definition at line 2082 of file jfs_dtree.c.

void dtInitRoot ( tid_t  tid,
struct inode ip,
u32  idotdot 
)

Definition at line 2826 of file jfs_dtree.c.

int dtInsert ( tid_t  tid,
struct inode ip,
struct component_name name,
ino_t fsn,
struct btstack btstack 
)

Definition at line 821 of file jfs_dtree.c.

int dtModify ( tid_t  tid,
struct inode ip,
struct component_name key,
ino_t orig_ino,
ino_t  new_ino,
int  flag 
)

Definition at line 4512 of file jfs_dtree.c.

int dtSearch ( struct inode ip,
struct component_name key,
ino_t data,
struct btstack btstack,
int  flag 
)

Definition at line 580 of file jfs_dtree.c.

int jfs_readdir ( struct file filp,
void dirent,
filldir_t  filldir 
)

Definition at line 3005 of file jfs_dtree.c.