Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Typedefs | Functions | Variables
dir.c File Reference
#include <linux/module.h>
#include <linux/time.h>
#include <linux/errno.h>
#include <linux/stat.h>
#include <linux/fcntl.h>
#include <linux/string.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/mm.h>
#include <linux/sunrpc/clnt.h>
#include <linux/nfs_fs.h>
#include <linux/nfs_mount.h>
#include <linux/pagemap.h>
#include <linux/pagevec.h>
#include <linux/namei.h>
#include <linux/mount.h>
#include <linux/sched.h>
#include <linux/kmemleak.h>
#include <linux/xattr.h>
#include "delegation.h"
#include "iostat.h"
#include "internal.h"
#include "fscache.h"

Go to the source code of this file.

Data Structures

struct  nfs_cache_array_entry
 
struct  nfs_cache_array
 
struct  nfs_readdir_descriptor_t
 

Typedefs

typedef int(* decode_dirent_t )(struct xdr_stream *, struct nfs_entry *, int)
 

Functions

void nfs_force_lookup_revalidate (struct inode *dir)
 
 EXPORT_SYMBOL_GPL (nfs_force_lookup_revalidate)
 
 EXPORT_SYMBOL_GPL (nfs_dentry_operations)
 
struct dentrynfs_lookup (struct inode *dir, struct dentry *dentry, unsigned int flags)
 
 EXPORT_SYMBOL_GPL (nfs_lookup)
 
int nfs_instantiate (struct dentry *dentry, struct nfs_fh *fhandle, struct nfs_fattr *fattr)
 
 EXPORT_SYMBOL_GPL (nfs_instantiate)
 
int nfs_create (struct inode *dir, struct dentry *dentry, umode_t mode, bool excl)
 
 EXPORT_SYMBOL_GPL (nfs_create)
 
int nfs_mknod (struct inode *dir, struct dentry *dentry, umode_t mode, dev_t rdev)
 
 EXPORT_SYMBOL_GPL (nfs_mknod)
 
int nfs_mkdir (struct inode *dir, struct dentry *dentry, umode_t mode)
 
 EXPORT_SYMBOL_GPL (nfs_mkdir)
 
int nfs_rmdir (struct inode *dir, struct dentry *dentry)
 
 EXPORT_SYMBOL_GPL (nfs_rmdir)
 
int nfs_unlink (struct inode *dir, struct dentry *dentry)
 
 EXPORT_SYMBOL_GPL (nfs_unlink)
 
int nfs_symlink (struct inode *dir, struct dentry *dentry, const char *symname)
 
 EXPORT_SYMBOL_GPL (nfs_symlink)
 
int nfs_link (struct dentry *old_dentry, struct inode *dir, struct dentry *dentry)
 
 EXPORT_SYMBOL_GPL (nfs_link)
 
int nfs_rename (struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry)
 
 EXPORT_SYMBOL_GPL (nfs_rename)
 
int nfs_access_cache_shrinker (struct shrinker *shrink, struct shrink_control *sc)
 
void nfs_access_zap_cache (struct inode *inode)
 
 EXPORT_SYMBOL_GPL (nfs_access_zap_cache)
 
void nfs_access_add_cache (struct inode *inode, struct nfs_access_entry *set)
 
 EXPORT_SYMBOL_GPL (nfs_access_add_cache)
 
void nfs_access_set_mask (struct nfs_access_entry *entry, u32 access_result)
 
 EXPORT_SYMBOL_GPL (nfs_access_set_mask)
 
int nfs_may_open (struct inode *inode, struct rpc_cred *cred, int openflags)
 
 EXPORT_SYMBOL_GPL (nfs_may_open)
 
int nfs_permission (struct inode *inode, int mask)
 
 EXPORT_SYMBOL_GPL (nfs_permission)
 

Variables

struct file_operations nfs_dir_operations
 
struct address_space_operations nfs_dir_aops
 
struct dentry_operations nfs_dentry_operations
 

Typedef Documentation

typedef int(* decode_dirent_t)(struct xdr_stream *, struct nfs_entry *, int)

Definition at line 146 of file dir.c.

Function Documentation

EXPORT_SYMBOL_GPL ( nfs_force_lookup_revalidate  )
EXPORT_SYMBOL_GPL ( nfs_dentry_operations  )
EXPORT_SYMBOL_GPL ( nfs_lookup  )
EXPORT_SYMBOL_GPL ( nfs_instantiate  )
EXPORT_SYMBOL_GPL ( nfs_create  )
EXPORT_SYMBOL_GPL ( nfs_mknod  )
EXPORT_SYMBOL_GPL ( nfs_mkdir  )
EXPORT_SYMBOL_GPL ( nfs_rmdir  )
EXPORT_SYMBOL_GPL ( nfs_unlink  )
EXPORT_SYMBOL_GPL ( nfs_symlink  )
EXPORT_SYMBOL_GPL ( nfs_link  )
EXPORT_SYMBOL_GPL ( nfs_rename  )
EXPORT_SYMBOL_GPL ( nfs_access_zap_cache  )
EXPORT_SYMBOL_GPL ( nfs_access_add_cache  )
EXPORT_SYMBOL_GPL ( nfs_access_set_mask  )
EXPORT_SYMBOL_GPL ( nfs_may_open  )
EXPORT_SYMBOL_GPL ( nfs_permission  )
void nfs_access_add_cache ( struct inode inode,
struct nfs_access_entry set 
)

Definition at line 2076 of file dir.c.

int nfs_access_cache_shrinker ( struct shrinker shrink,
struct shrink_control sc 
)

Definition at line 1913 of file dir.c.

void nfs_access_set_mask ( struct nfs_access_entry entry,
u32  access_result 
)

Definition at line 2104 of file dir.c.

void nfs_access_zap_cache ( struct inode inode)

Definition at line 1971 of file dir.c.

int nfs_create ( struct inode dir,
struct dentry dentry,
umode_t  mode,
bool  excl 
)

Definition at line 1526 of file dir.c.

void nfs_force_lookup_revalidate ( struct inode dir)

Definition at line 936 of file dir.c.

int nfs_instantiate ( struct dentry dentry,
struct nfs_fh fhandle,
struct nfs_fattr fattr 
)

Definition at line 1480 of file dir.c.

int nfs_link ( struct dentry old_dentry,
struct inode dir,
struct dentry dentry 
)

Definition at line 1769 of file dir.c.

struct dentry* nfs_lookup ( struct inode dir,
struct dentry dentry,
unsigned int  flags 
)
read

Definition at line 1204 of file dir.c.

int nfs_may_open ( struct inode inode,
struct rpc_cred *  cred,
int  openflags 
)

Definition at line 2159 of file dir.c.

int nfs_mkdir ( struct inode dir,
struct dentry dentry,
umode_t  mode 
)

Definition at line 1580 of file dir.c.

int nfs_mknod ( struct inode dir,
struct dentry dentry,
umode_t  mode,
dev_t  rdev 
)

Definition at line 1553 of file dir.c.

int nfs_permission ( struct inode inode,
int  mask 
)

Definition at line 2165 of file dir.c.

int nfs_rename ( struct inode old_dir,
struct dentry old_dentry,
struct inode new_dir,
struct dentry new_dentry 
)

Definition at line 1814 of file dir.c.

int nfs_rmdir ( struct inode dir,
struct dentry dentry 
)

Definition at line 1607 of file dir.c.

int nfs_symlink ( struct inode dir,
struct dentry dentry,
const char symname 
)

Definition at line 1712 of file dir.c.

int nfs_unlink ( struct inode dir,
struct dentry dentry 
)

Definition at line 1667 of file dir.c.

Variable Documentation

struct dentry_operations nfs_dentry_operations
Initial value:
= {
.d_revalidate = nfs_lookup_revalidate,
.d_delete = nfs_dentry_delete,
.d_iput = nfs_dentry_iput,
.d_automount = nfs_d_automount,
.d_release = nfs_d_release,
}

Definition at line 1195 of file dir.c.

Initial value:
= {
.freepage = nfs_readdir_clear_array,
}

Definition at line 63 of file dir.c.

struct file_operations nfs_dir_operations
Initial value:
= {
.llseek = nfs_llseek_dir,
.readdir = nfs_readdir,
.open = nfs_opendir,
.release = nfs_closedir,
.fsync = nfs_fsync_dir,
}

Definition at line 54 of file dir.c.