Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
namei.c File Reference
#include <linux/fs.h>
#include <linux/pagemap.h>
#include <linux/jbd2.h>
#include <linux/time.h>
#include <linux/fcntl.h>
#include <linux/stat.h>
#include <linux/string.h>
#include <linux/quotaops.h>
#include <linux/buffer_head.h>
#include <linux/bio.h>
#include "ext4.h"
#include "ext4_jbd2.h"
#include "xattr.h"
#include "acl.h"
#include <trace/events/ext4.h>

Go to the source code of this file.

Data Structures

struct  fake_dirent
 
struct  dx_countlimit
 
struct  dx_entry
 
struct  dx_root
 
struct  dx_root::dx_root_info
 
struct  dx_node
 
struct  dx_frame
 
struct  dx_map_entry
 
struct  dx_tail
 

Macros

#define NAMEI_RA_CHUNKS   2
 
#define NAMEI_RA_BLOCKS   4
 
#define NAMEI_RA_SIZE   (NAMEI_RA_CHUNKS * NAMEI_RA_BLOCKS)
 
#define NAMEI_RA_INDEX(c, b)   (((c) * NAMEI_RA_BLOCKS) + (b))
 
#define assert(test)   J_ASSERT(test)
 
#define dxtrace(command)
 
#define EXT4_DIRENT_TAIL(block, blocksize)
 
#define S_SHIFT   12
 
#define PARENT_INO(buffer, size)   (ext4_next_entry((struct ext4_dir_entry_2 *)(buffer), size)->inode)
 

Functions

int ext4_dirent_csum_verify (struct inode *inode, struct ext4_dir_entry *dirent)
 
int ext4_htree_fill_tree (struct file *dir_file, __u32 start_hash, __u32 start_minor_hash, __u32 *next_hash)
 
struct dentryext4_get_parent (struct dentry *child)
 
int ext4_orphan_add (handle_t *handle, struct inode *inode)
 
int ext4_orphan_del (handle_t *handle, struct inode *inode)
 

Variables

struct inode_operations ext4_dir_inode_operations
 
struct inode_operations ext4_special_inode_operations
 

Macro Definition Documentation

#define assert (   test)    J_ASSERT(test)

Definition at line 87 of file namei.c.

#define dxtrace (   command)

Definition at line 93 of file namei.c.

#define EXT4_DIRENT_TAIL (   block,
  blocksize 
)
Value:
((struct ext4_dir_entry_tail *)(((void *)(block)) + \
((blocksize) - \
sizeof(struct ext4_dir_entry_tail))))

Definition at line 205 of file namei.c.

#define NAMEI_RA_BLOCKS   4

Definition at line 48 of file namei.c.

#define NAMEI_RA_CHUNKS   2

Definition at line 47 of file namei.c.

#define NAMEI_RA_INDEX (   c,
  b 
)    (((c) * NAMEI_RA_BLOCKS) + (b))

Definition at line 50 of file namei.c.

#define NAMEI_RA_SIZE   (NAMEI_RA_CHUNKS * NAMEI_RA_BLOCKS)

Definition at line 49 of file namei.c.

#define PARENT_INO (   buffer,
  size 
)    (ext4_next_entry((struct ext4_dir_entry_2 *)(buffer), size)->inode)

Definition at line 2829 of file namei.c.

#define S_SHIFT   12

Definition at line 1413 of file namei.c.

Function Documentation

int ext4_dirent_csum_verify ( struct inode inode,
struct ext4_dir_entry dirent 
)

Definition at line 264 of file namei.c.

struct dentry* ext4_get_parent ( struct dentry child)
read

Definition at line 1391 of file namei.c.

int ext4_htree_fill_tree ( struct file dir_file,
__u32  start_hash,
__u32  start_minor_hash,
__u32 next_hash 
)

Definition at line 928 of file namei.c.

int ext4_orphan_add ( handle_t *  handle,
struct inode inode 
)

Definition at line 2421 of file namei.c.

int ext4_orphan_del ( handle_t *  handle,
struct inode inode 
)

Definition at line 2492 of file namei.c.

Variable Documentation

struct inode_operations ext4_dir_inode_operations
Initial value:
= {
.create = ext4_create,
.lookup = ext4_lookup,
.link = ext4_link,
.unlink = ext4_unlink,
.symlink = ext4_symlink,
.mkdir = ext4_mkdir,
.rmdir = ext4_rmdir,
.mknod = ext4_mknod,
.rename = ext4_rename,
.setattr = ext4_setattr,
.get_acl = ext4_get_acl,
.fiemap = ext4_fiemap,
}

Definition at line 3035 of file namei.c.

struct inode_operations ext4_special_inode_operations
Initial value:
= {
.setattr = ext4_setattr,
.get_acl = ext4_get_acl,
}

Definition at line 3056 of file namei.c.