Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
dir.c File Reference
#include <linux/ceph/ceph_debug.h>
#include <linux/spinlock.h>
#include <linux/fs_struct.h>
#include <linux/namei.h>
#include <linux/slab.h>
#include <linux/sched.h>
#include "super.h"
#include "mds_client.h"

Go to the source code of this file.

Functions

int ceph_init_dentry (struct dentry *dentry)
 
struct inodeceph_get_dentry_parent_inode (struct dentry *dentry)
 
int ceph_handle_snapdir (struct ceph_mds_request *req, struct dentry *dentry, int err)
 
struct dentryceph_finish_lookup (struct ceph_mds_request *req, struct dentry *dentry, int err)
 
int ceph_handle_notrace_create (struct inode *dir, struct dentry *dentry)
 
void ceph_invalidate_dentry_lease (struct dentry *dentry)
 
void ceph_dir_set_complete (struct inode *inode)
 
void ceph_dir_clear_complete (struct inode *inode)
 
bool ceph_dir_test_complete (struct inode *inode)
 
void ceph_dentry_lru_add (struct dentry *dn)
 
void ceph_dentry_lru_touch (struct dentry *dn)
 
void ceph_dentry_lru_del (struct dentry *dn)
 
unsigned ceph_dentry_hash (struct inode *dir, struct dentry *dn)
 

Variables

struct inode_operations ceph_dir_iops
 
struct file_operations ceph_dir_fops
 
struct dentry_operations ceph_dentry_ops
 
struct dentry_operations ceph_snapdir_dentry_ops
 
struct dentry_operations ceph_snap_dentry_ops
 

Function Documentation

unsigned ceph_dentry_hash ( struct inode dir,
struct dentry dn 
)

Definition at line 1293 of file dir.c.

void ceph_dentry_lru_add ( struct dentry dn)

Definition at line 1248 of file dir.c.

void ceph_dentry_lru_del ( struct dentry dn)

Definition at line 1275 of file dir.c.

void ceph_dentry_lru_touch ( struct dentry dn)

Definition at line 1262 of file dir.c.

void ceph_dir_clear_complete ( struct inode inode)

Definition at line 1082 of file dir.c.

void ceph_dir_set_complete ( struct inode inode)

Definition at line 1070 of file dir.c.

bool ceph_dir_test_complete ( struct inode inode)

Definition at line 1093 of file dir.c.

struct dentry* ceph_finish_lookup ( struct ceph_mds_request req,
struct dentry dentry,
int  err 
)
read

Definition at line 541 of file dir.c.

struct inode* ceph_get_dentry_parent_inode ( struct dentry dentry)
read

Definition at line 73 of file dir.c.

int ceph_handle_notrace_create ( struct inode dir,
struct dentry dentry 
)

Definition at line 640 of file dir.c.

int ceph_handle_snapdir ( struct ceph_mds_request req,
struct dentry dentry,
int  err 
)

Definition at line 509 of file dir.c.

int ceph_init_dentry ( struct dentry dentry)

Definition at line 36 of file dir.c.

void ceph_invalidate_dentry_lease ( struct dentry dentry)

Definition at line 926 of file dir.c.

Variable Documentation

struct dentry_operations ceph_dentry_ops
Initial value:
= {
.d_revalidate = ceph_d_revalidate,
.d_release = ceph_d_release,
.d_prune = ceph_d_prune,
}

Definition at line 31 of file dir.c.

struct file_operations ceph_dir_fops
Initial value:
= {
.read = ceph_read_dir,
.readdir = ceph_readdir,
.llseek = ceph_dir_llseek,
.open = ceph_open,
.release = ceph_release,
.unlocked_ioctl = ceph_ioctl,
.fsync = ceph_dir_fsync,
}

Definition at line 30 of file dir.c.

struct inode_operations ceph_dir_iops
Initial value:
= {
.lookup = ceph_lookup,
.permission = ceph_permission,
.getattr = ceph_getattr,
.setattr = ceph_setattr,
.setxattr = ceph_setxattr,
.getxattr = ceph_getxattr,
.listxattr = ceph_listxattr,
.removexattr = ceph_removexattr,
.mknod = ceph_mknod,
.symlink = ceph_symlink,
.mkdir = ceph_mkdir,
.link = ceph_link,
.unlink = ceph_unlink,
.rmdir = ceph_unlink,
.rename = ceph_rename,
.create = ceph_create,
.atomic_open = ceph_atomic_open,
}

Definition at line 29 of file dir.c.

struct dentry_operations ceph_snap_dentry_ops
Initial value:
= {
.d_release = ceph_d_release,
.d_prune = ceph_d_prune,
}

Definition at line 1349 of file dir.c.

struct dentry_operations ceph_snapdir_dentry_ops
Initial value:
= {
.d_revalidate = ceph_snapdir_d_revalidate,
.d_release = ceph_d_release,
}

Definition at line 1344 of file dir.c.