Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
internal.h File Reference
#include "nfs4_fs.h"
#include <linux/mount.h>
#include <linux/security.h>

Go to the source code of this file.

Data Structures

struct  nfs_clone_mount
 
struct  nfs_client_initdata
 
struct  nfs_parsed_mount_data
 
struct  nfs_mount_request
 
struct  nfs_mount_info
 

Macros

#define NFS_MS_MASK   (MS_RDONLY|MS_NOSUID|MS_NODEV|MS_NOEXEC|MS_SYNCHRONOUS)
 
#define NFS_MAX_READAHEAD   (RPC_DEF_SLOT_TABLE - 1)
 
#define NFS_MAX_SECFLAVORS   (12)
 
#define NFS_UNSPEC_PORT   (-1)
 
#define NFS_MAX_READDIR_PAGES   8
 
#define NFS_PATH_CANONICAL   1
 
#define nfs_migrate_page   NULL
 

Functions

int nfs_mount (struct nfs_mount_request *info)
 
void nfs_umount (const struct nfs_mount_request *info)
 
void nfs_clients_init (struct net *net)
 
struct nfs_clientnfs_alloc_client (const struct nfs_client_initdata *)
 
int nfs_create_rpc_client (struct nfs_client *, const struct rpc_timeout *, rpc_authflavor_t)
 
struct nfs_clientnfs_get_client (const struct nfs_client_initdata *, const struct rpc_timeout *, const char *, rpc_authflavor_t)
 
int nfs_probe_fsinfo (struct nfs_server *server, struct nfs_fh *, struct nfs_fattr *)
 
void nfs_server_insert_lists (struct nfs_server *)
 
void nfs_init_timeout_values (struct rpc_timeout *, int, unsigned int, unsigned int)
 
int nfs_init_server_rpcclient (struct nfs_server *, const struct rpc_timeout *t, rpc_authflavor_t)
 
struct nfs_servernfs_alloc_server (void)
 
void nfs_server_copy_userdata (struct nfs_server *, struct nfs_server *)
 
void nfs_cleanup_cb_ident_idr (struct net *)
 
void nfs_put_client (struct nfs_client *)
 
void nfs_free_client (struct nfs_client *)
 
struct nfs_clientnfs4_find_client_ident (struct net *, int)
 
struct nfs_clientnfs4_find_client_sessionid (struct net *, const struct sockaddr *, struct nfs4_sessionid *)
 
struct nfs_servernfs_create_server (struct nfs_mount_info *, struct nfs_subversion *)
 
struct nfs_servernfs4_create_server (struct nfs_mount_info *, struct nfs_subversion *)
 
struct nfs_servernfs4_create_referral_server (struct nfs_clone_mount *, struct nfs_fh *)
 
void nfs_free_server (struct nfs_server *server)
 
struct nfs_servernfs_clone_server (struct nfs_server *, struct nfs_fh *, struct nfs_fattr *, rpc_authflavor_t)
 
int nfs_wait_client_init_complete (const struct nfs_client *clp)
 
void nfs_mark_client_ready (struct nfs_client *clp, int state)
 
struct nfs_clientnfs4_set_ds_client (struct nfs_client *mds_clp, const struct sockaddr *ds_addr, int ds_addrlen, int ds_proto, unsigned int ds_timeo, unsigned int ds_retrans)
 
int __init nfs_init_nfspagecache (void)
 
void nfs_destroy_nfspagecache (void)
 
int __init nfs_init_readpagecache (void)
 
void nfs_destroy_readpagecache (void)
 
int __init nfs_init_writepagecache (void)
 
void nfs_destroy_writepagecache (void)
 
int __init nfs_init_directcache (void)
 
void nfs_destroy_directcache (void)
 
bool nfs_pgarray_set (struct nfs_page_array *p, unsigned int pagecount)
 
void nfs_pgheader_init (struct nfs_pageio_descriptor *desc, struct nfs_pgio_header *hdr, void(*release)(struct nfs_pgio_header *hdr))
 
void nfs_set_pgio_error (struct nfs_pgio_header *hdr, int error, loff_t pos)
 
int nfs2_decode_dirent (struct xdr_stream *, struct nfs_entry *, int)
 
int nfs3_decode_dirent (struct xdr_stream *, struct nfs_entry *, int)
 
int nfs4_init_ds_session (struct nfs_client *, unsigned long)
 
void nfs_close_context (struct nfs_open_context *ctx, int is_sync)
 
struct nfs_clientnfs_init_client (struct nfs_client *clp, const struct rpc_timeout *timeparms, const char *ip_addr, rpc_authflavor_t authflavour)
 
int nfs_access_cache_shrinker (struct shrinker *shrink, struct shrink_control *sc)
 
struct dentrynfs_lookup (struct inode *, struct dentry *, unsigned int)
 
int nfs_create (struct inode *, struct dentry *, umode_t, bool)
 
int nfs_mkdir (struct inode *, struct dentry *, umode_t)
 
int nfs_rmdir (struct inode *, struct dentry *)
 
int nfs_unlink (struct inode *, struct dentry *)
 
int nfs_symlink (struct inode *, struct dentry *, const char *)
 
int nfs_link (struct dentry *, struct inode *, struct dentry *)
 
int nfs_mknod (struct inode *, struct dentry *, umode_t, dev_t)
 
int nfs_rename (struct inode *, struct dentry *, struct inode *, struct dentry *)
 
int nfs_file_fsync_commit (struct file *, loff_t, loff_t, int)
 
loff_t nfs_file_llseek (struct file *, loff_t, int)
 
int nfs_file_flush (struct file *, fl_owner_t)
 
ssize_t nfs_file_read (struct kiocb *, const struct iovec *, unsigned long, loff_t)
 
ssize_t nfs_file_splice_read (struct file *, loff_t *, struct pipe_inode_info *, size_t, unsigned int)
 
int nfs_file_mmap (struct file *, struct vm_area_struct *)
 
ssize_t nfs_file_write (struct kiocb *, const struct iovec *, unsigned long, loff_t)
 
int nfs_file_release (struct inode *, struct file *)
 
int nfs_lock (struct file *, int, struct file_lock *)
 
int nfs_flock (struct file *, int, struct file_lock *)
 
ssize_t nfs_file_splice_write (struct pipe_inode_info *, struct file *, loff_t *, size_t, unsigned int)
 
int nfs_check_flags (int)
 
int nfs_setlease (struct file *, long, struct file_lock **)
 
struct inodenfs_alloc_inode (struct super_block *sb)
 
void nfs_destroy_inode (struct inode *)
 
int nfs_write_inode (struct inode *, struct writeback_control *)
 
void nfs_clear_inode (struct inode *)
 
void nfs_evict_inode (struct inode *)
 
void nfs_zap_acl_cache (struct inode *inode)
 
int nfs_wait_bit_killable (void *word)
 
struct dentrynfs_try_mount (int, const char *, struct nfs_mount_info *, struct nfs_subversion *)
 
void nfs_initialise_sb (struct super_block *)
 
int nfs_set_sb_security (struct super_block *, struct dentry *, struct nfs_mount_info *)
 
int nfs_clone_sb_security (struct super_block *, struct dentry *, struct nfs_mount_info *)
 
struct dentrynfs_fs_mount_common (struct nfs_server *, int, const char *, struct nfs_mount_info *, struct nfs_subversion *)
 
struct dentrynfs_fs_mount (struct file_system_type *, int, const char *, void *)
 
struct dentrynfs_xdev_mount_common (struct file_system_type *, int, const char *, struct nfs_mount_info *)
 
void nfs_kill_super (struct super_block *)
 
void nfs_fill_super (struct super_block *, struct nfs_mount_info *)
 
int __init register_nfs_fs (void)
 
void __exit unregister_nfs_fs (void)
 
void nfs_sb_active (struct super_block *sb)
 
void nfs_sb_deactive (struct super_block *sb)
 
void nfs_sb_deactive_async (struct super_block *sb)
 
charnfs_path (char **p, struct dentry *dentry, char *buffer, ssize_t buflen, unsigned flags)
 
struct vfsmountnfs_d_automount (struct path *path)
 
struct vfsmountnfs_submount (struct nfs_server *, struct dentry *, struct nfs_fh *, struct nfs_fattr *)
 
struct vfsmountnfs_do_submount (struct dentry *, struct nfs_fh *, struct nfs_fattr *, rpc_authflavor_t)
 
struct dentrynfs_get_root (struct super_block *, struct nfs_fh *, const char *)
 
struct nfs_read_headernfs_readhdr_alloc (void)
 
void nfs_readhdr_free (struct nfs_pgio_header *hdr)
 
void nfs_pageio_init_read (struct nfs_pageio_descriptor *pgio, struct inode *inode, const struct nfs_pgio_completion_ops *compl_ops)
 
int nfs_initiate_read (struct rpc_clnt *clnt, struct nfs_read_data *data, const struct rpc_call_ops *call_ops, int flags)
 
void nfs_read_prepare (struct rpc_task *task, void *calldata)
 
int nfs_generic_pagein (struct nfs_pageio_descriptor *desc, struct nfs_pgio_header *hdr)
 
void nfs_pageio_reset_read_mds (struct nfs_pageio_descriptor *pgio)
 
void nfs_readdata_release (struct nfs_read_data *rdata)
 
void nfs_clone_super (struct super_block *, struct nfs_mount_info *)
 
void nfs_umount_begin (struct super_block *)
 
int nfs_statfs (struct dentry *, struct kstatfs *)
 
int nfs_show_options (struct seq_file *, struct dentry *)
 
int nfs_show_devname (struct seq_file *, struct dentry *)
 
int nfs_show_path (struct seq_file *, struct dentry *)
 
int nfs_show_stats (struct seq_file *, struct dentry *)
 
void nfs_put_super (struct super_block *)
 
int nfs_remount (struct super_block *sb, int *flags, char *raw_data)
 
void nfs_pageio_init_write (struct nfs_pageio_descriptor *pgio, struct inode *inode, int ioflags, const struct nfs_pgio_completion_ops *compl_ops)
 
struct nfs_write_headernfs_writehdr_alloc (void)
 
void nfs_writehdr_free (struct nfs_pgio_header *hdr)
 
int nfs_generic_flush (struct nfs_pageio_descriptor *desc, struct nfs_pgio_header *hdr)
 
void nfs_pageio_reset_write_mds (struct nfs_pageio_descriptor *pgio)
 
void nfs_writedata_release (struct nfs_write_data *wdata)
 
void nfs_commit_free (struct nfs_commit_data *p)
 
int nfs_initiate_write (struct rpc_clnt *clnt, struct nfs_write_data *data, const struct rpc_call_ops *call_ops, int how, int flags)
 
void nfs_write_prepare (struct rpc_task *task, void *calldata)
 
void nfs_commit_prepare (struct rpc_task *task, void *calldata)
 
int nfs_initiate_commit (struct rpc_clnt *clnt, struct nfs_commit_data *data, const struct rpc_call_ops *call_ops, int how, int flags)
 
void nfs_init_commit (struct nfs_commit_data *data, struct list_head *head, struct pnfs_layout_segment *lseg, struct nfs_commit_info *cinfo)
 
int nfs_scan_commit_list (struct list_head *src, struct list_head *dst, struct nfs_commit_info *cinfo, int max)
 
int nfs_scan_commit (struct inode *inode, struct list_head *dst, struct nfs_commit_info *cinfo)
 
void nfs_mark_request_commit (struct nfs_page *req, struct pnfs_layout_segment *lseg, struct nfs_commit_info *cinfo)
 
int nfs_generic_commit_list (struct inode *inode, struct list_head *head, int how, struct nfs_commit_info *cinfo)
 
void nfs_retry_commit (struct list_head *page_list, struct pnfs_layout_segment *lseg, struct nfs_commit_info *cinfo)
 
void nfs_commitdata_release (struct nfs_commit_data *data)
 
void nfs_request_add_commit_list (struct nfs_page *req, struct list_head *dst, struct nfs_commit_info *cinfo)
 
void nfs_request_remove_commit_list (struct nfs_page *req, struct nfs_commit_info *cinfo)
 
void nfs_init_cinfo (struct nfs_commit_info *cinfo, struct inode *inode, struct nfs_direct_req *dreq)
 
void nfs_init_cinfo_from_dreq (struct nfs_commit_info *cinfo, struct nfs_direct_req *dreq)
 
ssize_t nfs_dreq_bytes_left (struct nfs_direct_req *dreq)
 
void __nfs4_read_done_cb (struct nfs_read_data *)
 
struct nfs_clientnfs4_init_client (struct nfs_client *clp, const struct rpc_timeout *timeparms, const char *ip_addr, rpc_authflavor_t authflavour)
 
int _nfs4_call_sync (struct rpc_clnt *clnt, struct nfs_server *server, struct rpc_message *msg, struct nfs4_sequence_args *args, struct nfs4_sequence_res *res, int cache_reply)
 
int _nfs4_call_sync_session (struct rpc_clnt *clnt, struct nfs_server *server, struct rpc_message *msg, struct nfs4_sequence_args *args, struct nfs4_sequence_res *res, int cache_reply)
 
int nfs40_walk_client_list (struct nfs_client *clp, struct nfs_client **result, struct rpc_cred *cred)
 
int nfs41_walk_client_list (struct nfs_client *clp, struct nfs_client **result, struct rpc_cred *cred)
 

Variables

struct rpc_program nfs_program
 
struct svc_version nfs4_callback_version1
 
struct svc_version nfs4_callback_version4
 
struct rpc_procinfo nfs_procedures []
 
struct rpc_procinfo nfs3_procedures []
 
struct workqueue_structnfsiod_workqueue
 
struct super_operations nfs_sops
 
struct file_system_type nfs_fs_type
 
struct file_system_type nfs_xdev_fs_type
 
struct rpc_stat nfs_rpcstat
 

Macro Definition Documentation

#define NFS_MAX_READAHEAD   (RPC_DEF_SLOT_TABLE - 1)

Definition at line 19 of file internal.h.

#define NFS_MAX_READDIR_PAGES   8

Definition at line 86 of file internal.h.

#define NFS_MAX_SECFLAVORS   (12)

Definition at line 75 of file internal.h.

#define nfs_migrate_page   NULL

Definition at line 459 of file internal.h.

#define NFS_MS_MASK   (MS_RDONLY|MS_NOSUID|MS_NODEV|MS_NOEXEC|MS_SYNCHRONOUS)

Definition at line 9 of file internal.h.

#define NFS_PATH_CANONICAL   1

Definition at line 357 of file internal.h.

#define NFS_UNSPEC_PORT   (-1)

Definition at line 80 of file internal.h.

Function Documentation

void __nfs4_read_done_cb ( struct nfs_read_data )

Definition at line 3526 of file nfs4proc.c.

int _nfs4_call_sync ( struct rpc_clnt clnt,
struct nfs_server server,
struct rpc_message msg,
struct nfs4_sequence_args args,
struct nfs4_sequence_res res,
int  cache_reply 
)

Definition at line 780 of file nfs4proc.c.

int _nfs4_call_sync_session ( struct rpc_clnt clnt,
struct nfs_server server,
struct rpc_message msg,
struct nfs4_sequence_args args,
struct nfs4_sequence_res res,
int  cache_reply 
)
int nfs2_decode_dirent ( struct xdr_stream *  xdr,
struct nfs_entry entry,
int  plus 
)

nfs2_decode_dirent - Decode a single NFSv2 directory entry stored in the local page cache. : XDR stream where entry resides : buffer to fill in with entry data : boolean indicating whether this should be a readdirplus entry

Returns zero if successful, otherwise a negative errno value is returned.

This function is not invoked during READDIR reply decoding, but rather whenever an application invokes the getdents(2) system call on a directory already in our cache.

2.2.17. entry

struct entry { unsigned fileid; filename name; nfscookie cookie; entry *nextentry; };

Definition at line 902 of file nfs2xdr.c.

int nfs3_decode_dirent ( struct xdr_stream *  xdr,
struct nfs_entry entry,
int  plus 
)

nfs3_decode_dirent - Decode a single NFSv3 directory entry stored in the local page cache : XDR stream where entry resides : buffer to fill in with entry data : boolean indicating whether this should be a readdirplus entry

Returns zero if successful, otherwise a negative errno value is returned.

This function is not invoked during READDIR reply decoding, but rather whenever an application invokes the getdents(2) system call on a directory already in our cache.

3.3.16 entry3

struct entry3 { fileid3 fileid; filename3 name; cookie3 cookie; fhandle3 filehandle; post_op_attr3 attributes; entry3 *nextentry; };

3.3.17 entryplus3 struct entryplus3 { fileid3 fileid; filename3 name; cookie3 cookie; post_op_attr name_attributes; post_op_fh3 name_handle; entryplus3 *nextentry; };

Definition at line 1936 of file nfs3xdr.c.

int nfs40_walk_client_list ( struct nfs_client new,
struct nfs_client **  result,
struct rpc_cred *  cred 
)

nfs40_walk_client_list - Find server that recognizes a client ID

: nfs_client with client ID to test

Returns
: OUT: found nfs_client, or new : credential to use for trunking test

Returns zero, a negative errno, or a negative NFS4ERR status. If zero is returned, an nfs_client pointer is planted in "result."

NB: nfs40_walk_client_list() relies on the new nfs_client being the last nfs_client on the list.

Definition at line 298 of file nfs4client.c.

int nfs41_walk_client_list ( struct nfs_client clp,
struct nfs_client **  result,
struct rpc_cred *  cred 
)
struct nfs_server* nfs4_create_referral_server ( struct nfs_clone_mount ,
struct nfs_fh  
)
read

Definition at line 861 of file nfs4client.c.

struct nfs_server* nfs4_create_server ( struct nfs_mount_info ,
struct nfs_subversion  
)
read

Definition at line 828 of file nfs4client.c.

struct nfs_client* nfs4_find_client_ident ( struct net ,
int   
)
read

Definition at line 509 of file nfs4client.c.

struct nfs_client* nfs4_find_client_sessionid ( struct net ,
const struct sockaddr ,
struct nfs4_sessionid  
)
read

Definition at line 586 of file nfs4client.c.

struct nfs_client* nfs4_init_client ( struct nfs_client clp,
const struct rpc_timeout *  timeparms,
const char ip_addr,
rpc_authflavor_t  authflavour 
)
read

nfs4_init_client - Initialise an NFS4 client record

: nfs_client to initialise : timeout parameters for underlying RPC transport : callback IP address in presentation format : authentication flavor for underlying RPC transport

Returns pointer to an NFS client, or an ERR_PTR value.

Definition at line 182 of file nfs4client.c.

int nfs4_init_ds_session ( struct nfs_client ,
unsigned  long 
)
struct nfs_client* nfs4_set_ds_client ( struct nfs_client mds_clp,
const struct sockaddr ds_addr,
int  ds_addrlen,
int  ds_proto,
unsigned int  ds_timeo,
unsigned int  ds_retrans 
)
read

Definition at line 656 of file nfs4client.c.

int nfs_access_cache_shrinker ( struct shrinker shrink,
struct shrink_control sc 
)

Definition at line 1913 of file dir.c.

struct nfs_client* nfs_alloc_client ( const struct nfs_client_initdata )
read

Definition at line 151 of file client.c.

struct inode* nfs_alloc_inode ( struct super_block sb)
read

Definition at line 1502 of file inode.c.

struct nfs_server* nfs_alloc_server ( void  )
read

Definition at line 971 of file client.c.

int nfs_check_flags ( int  )

Definition at line 49 of file file.c.

void nfs_cleanup_cb_ident_idr ( struct net )

Definition at line 223 of file client.c.

void nfs_clear_inode ( struct inode )

Definition at line 110 of file inode.c.

void nfs_clients_init ( struct net net)

Definition at line 1177 of file client.c.

int nfs_clone_sb_security ( struct super_block ,
struct dentry ,
struct nfs_mount_info  
)

Definition at line 2412 of file super.c.

struct nfs_server* nfs_clone_server ( struct nfs_server ,
struct nfs_fh ,
struct nfs_fattr ,
rpc_authflavor_t   
)
read

Definition at line 1110 of file client.c.

void nfs_clone_super ( struct super_block ,
struct nfs_mount_info  
)

Definition at line 2245 of file super.c.

void nfs_close_context ( struct nfs_open_context ctx,
int  is_sync 
)

nfs_close_context - Common close_context() routine NFSv2/v3 : pointer to context : is this a synchronous close

always ensure that the attributes are up to date if we're mounted with close-to-open semantics

Definition at line 617 of file inode.c.

void nfs_commit_free ( struct nfs_commit_data p)

Definition at line 65 of file write.c.

void nfs_commit_prepare ( struct rpc_task task,
void calldata 
)

Definition at line 1258 of file write.c.

void nfs_commitdata_release ( struct nfs_commit_data data)
int nfs_create ( struct inode ,
struct dentry ,
umode_t  ,
bool   
)

Definition at line 1526 of file dir.c.

int nfs_create_rpc_client ( struct nfs_client ,
const struct rpc_timeout *  ,
rpc_authflavor_t   
)

Definition at line 576 of file client.c.

struct nfs_server* nfs_create_server ( struct nfs_mount_info ,
struct nfs_subversion  
)
read

Definition at line 1043 of file client.c.

struct vfsmount* nfs_d_automount ( struct path path)
read

Definition at line 139 of file namespace.c.

void nfs_destroy_directcache ( void  )

nfs_destroy_directcache - destroy the slab cache for nfs_direct_req structures

Definition at line 1039 of file direct.c.

void nfs_destroy_inode ( struct inode )

Definition at line 1527 of file inode.c.

void nfs_destroy_nfspagecache ( void  )

Definition at line 470 of file pagelist.c.

void nfs_destroy_readpagecache ( void  )

Definition at line 676 of file read.c.

void nfs_destroy_writepagecache ( void  )

Definition at line 1867 of file write.c.

struct vfsmount* nfs_do_submount ( struct dentry dentry,
struct nfs_fh fh,
struct nfs_fattr fattr,
rpc_authflavor_t  authflavor 
)
read

nfs_do_submount - set up mountpoint when crossing a filesystem boundary - parent directory - filehandle for new root dentry - attributes for new root inode - security flavor to use when performing the mount

Definition at line 220 of file namespace.c.

ssize_t nfs_dreq_bytes_left ( struct nfs_direct_req dreq)

Definition at line 195 of file direct.c.

void nfs_evict_inode ( struct inode )

Definition at line 123 of file inode.c.

int nfs_file_flush ( struct file ,
fl_owner_t   
)

Definition at line 149 of file file.c.

int nfs_file_fsync_commit ( struct file ,
loff_t  ,
loff_t  ,
int   
)

Definition at line 257 of file file.c.

loff_t nfs_file_llseek ( struct file ,
loff_t  ,
int   
)

Definition at line 122 of file file.c.

int nfs_file_mmap ( struct file ,
struct vm_area_struct  
)

Definition at line 223 of file file.c.

ssize_t nfs_file_read ( struct kiocb ,
const struct iovec ,
unsigned  long,
loff_t   
)

Definition at line 175 of file file.c.

int nfs_file_release ( struct inode ,
struct file  
)

Definition at line 80 of file file.c.

ssize_t nfs_file_splice_read ( struct file ,
loff_t *  ,
struct pipe_inode_info ,
size_t  ,
unsigned  int 
)

Definition at line 200 of file file.c.

ssize_t nfs_file_splice_write ( struct pipe_inode_info ,
struct file ,
loff_t *  ,
size_t  ,
unsigned  int 
)

Definition at line 666 of file file.c.

ssize_t nfs_file_write ( struct kiocb ,
const struct iovec ,
unsigned  long,
loff_t   
)

Definition at line 613 of file file.c.

void nfs_fill_super ( struct super_block ,
struct nfs_mount_info  
)

Definition at line 2218 of file super.c.

int nfs_flock ( struct file ,
int  ,
struct file_lock  
)

Definition at line 862 of file file.c.

void nfs_free_client ( struct nfs_client )

Definition at line 240 of file client.c.

void nfs_free_server ( struct nfs_server server)

Definition at line 1013 of file client.c.

struct dentry* nfs_fs_mount ( struct file_system_type ,
int  ,
const char ,
void  
)
read

Definition at line 2497 of file super.c.

struct dentry* nfs_fs_mount_common ( struct nfs_server ,
int  ,
const char ,
struct nfs_mount_info ,
struct nfs_subversion  
)
read

Definition at line 2423 of file super.c.

int nfs_generic_commit_list ( struct inode inode,
struct list_head head,
int  how,
struct nfs_commit_info cinfo 
)
int nfs_generic_flush ( struct nfs_pageio_descriptor desc,
struct nfs_pgio_header hdr 
)

Definition at line 1197 of file write.c.

int nfs_generic_pagein ( struct nfs_pageio_descriptor desc,
struct nfs_pgio_header hdr 
)

Definition at line 397 of file read.c.

struct nfs_client* nfs_get_client ( const struct nfs_client_initdata ,
const struct rpc_timeout *  ,
const char ,
rpc_authflavor_t   
)
read

Definition at line 477 of file client.c.

struct dentry* nfs_get_root ( struct super_block ,
struct nfs_fh ,
const char  
)
read

Definition at line 71 of file getroot.c.

void nfs_init_cinfo ( struct nfs_commit_info cinfo,
struct inode inode,
struct nfs_direct_req dreq 
)

Definition at line 599 of file write.c.

void nfs_init_cinfo_from_dreq ( struct nfs_commit_info cinfo,
struct nfs_direct_req dreq 
)

Definition at line 151 of file direct.c.

struct nfs_client* nfs_init_client ( struct nfs_client clp,
const struct rpc_timeout *  timeparms,
const char ip_addr,
rpc_authflavor_t  authflavour 
)
read

nfs_init_client - Initialise an NFS2 or NFS3 client

: nfs_client to initialise : timeout parameters for underlying RPC transport : IP presentation address (not used) : authentication flavor for underlying RPC transport

Returns pointer to an NFS client, or an ERR_PTR value.

Definition at line 701 of file client.c.

void nfs_init_commit ( struct nfs_commit_data data,
struct list_head head,
struct pnfs_layout_segment lseg,
struct nfs_commit_info cinfo 
)
int __init nfs_init_directcache ( void  )

nfs_init_directcache - create a slab cache for nfs_direct_req structures

Definition at line 1022 of file direct.c.

int __init nfs_init_nfspagecache ( void  )

Definition at line 458 of file pagelist.c.

int __init nfs_init_readpagecache ( void  )

Definition at line 664 of file read.c.

int nfs_init_server_rpcclient ( struct nfs_server ,
const struct rpc_timeout *  t,
rpc_authflavor_t   
)

Definition at line 666 of file client.c.

void nfs_init_timeout_values ( struct rpc_timeout *  ,
int  ,
unsigned  int,
unsigned  int 
)

Definition at line 534 of file client.c.

int __init nfs_init_writepagecache ( void  )

Definition at line 1810 of file write.c.

void nfs_initialise_sb ( struct super_block )
inline

Definition at line 2196 of file super.c.

int nfs_initiate_commit ( struct rpc_clnt clnt,
struct nfs_commit_data data,
const struct rpc_call_ops call_ops,
int  how,
int  flags 
)
int nfs_initiate_read ( struct rpc_clnt clnt,
struct nfs_read_data data,
const struct rpc_call_ops call_ops,
int  flags 
)

Definition at line 202 of file read.c.

int nfs_initiate_write ( struct rpc_clnt clnt,
struct nfs_write_data data,
const struct rpc_call_ops call_ops,
int  how,
int  flags 
)

Definition at line 947 of file write.c.

void nfs_kill_super ( struct super_block )

Definition at line 2553 of file super.c.

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

Definition at line 1769 of file dir.c.

int nfs_lock ( struct file ,
int  ,
struct file_lock  
)

Definition at line 821 of file file.c.

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

Definition at line 1204 of file dir.c.

void nfs_mark_client_ready ( struct nfs_client clp,
int  state 
)

Definition at line 523 of file client.c.

void nfs_mark_request_commit ( struct nfs_page req,
struct pnfs_layout_segment lseg,
struct nfs_commit_info cinfo 
)

Definition at line 606 of file write.c.

int nfs_mkdir ( struct inode ,
struct dentry ,
umode_t   
)

Definition at line 1580 of file dir.c.

int nfs_mknod ( struct inode ,
struct dentry ,
umode_t  ,
dev_t   
)

Definition at line 1553 of file dir.c.

int nfs_mount ( struct nfs_mount_request info)

nfs_mount - Obtain an NFS file handle for the given host and path : pointer to mount request arguments

Uses default timeout parameters specified by underlying transport.

Definition at line 144 of file mount_clnt.c.

void nfs_pageio_init_read ( struct nfs_pageio_descriptor pgio,
struct inode inode,
const struct nfs_pgio_completion_ops compl_ops 
)

Definition at line 112 of file read.c.

void nfs_pageio_init_write ( struct nfs_pageio_descriptor pgio,
struct inode inode,
int  ioflags,
const struct nfs_pgio_completion_ops compl_ops 
)

Definition at line 1235 of file write.c.

void nfs_pageio_reset_read_mds ( struct nfs_pageio_descriptor pgio)

Definition at line 121 of file read.c.

void nfs_pageio_reset_write_mds ( struct nfs_pageio_descriptor pgio)

Definition at line 1244 of file write.c.

char* nfs_path ( char **  p,
struct dentry dentry,
char buffer,
ssize_t  buflen,
unsigned  flags 
)

Definition at line 50 of file namespace.c.

bool nfs_pgarray_set ( struct nfs_page_array p,
unsigned int  pagecount 
)

Definition at line 29 of file pagelist.c.

void nfs_pgheader_init ( struct nfs_pageio_descriptor desc,
struct nfs_pgio_header hdr,
void(*)(struct nfs_pgio_header *hdr release 
)

Definition at line 42 of file pagelist.c.

int nfs_probe_fsinfo ( struct nfs_server server,
struct nfs_fh ,
struct nfs_fattr  
)

Definition at line 877 of file client.c.

void nfs_put_client ( struct nfs_client )

Definition at line 265 of file client.c.

void nfs_put_super ( struct super_block )

Definition at line 2542 of file super.c.

void nfs_read_prepare ( struct rpc_task task,
void calldata 
)

Definition at line 509 of file read.c.

void nfs_readdata_release ( struct nfs_read_data rdata)

Definition at line 86 of file read.c.

struct nfs_read_header* nfs_readhdr_alloc ( void  )
read

Definition at line 36 of file read.c.

void nfs_readhdr_free ( struct nfs_pgio_header hdr)

Definition at line 78 of file read.c.

int nfs_remount ( struct super_block sb,
int flags,
char raw_data 
)

Definition at line 2131 of file super.c.

int nfs_rename ( struct inode ,
struct dentry ,
struct inode ,
struct dentry  
)

Definition at line 1814 of file dir.c.

void nfs_request_add_commit_list ( struct nfs_page req,
struct list_head dst,
struct nfs_commit_info cinfo 
)
void nfs_request_remove_commit_list ( struct nfs_page req,
struct nfs_commit_info cinfo 
)
void nfs_retry_commit ( struct list_head page_list,
struct pnfs_layout_segment lseg,
struct nfs_commit_info cinfo 
)
int nfs_rmdir ( struct inode ,
struct dentry  
)

Definition at line 1607 of file dir.c.

void nfs_sb_active ( struct super_block sb)

Definition at line 401 of file super.c.

void nfs_sb_deactive ( struct super_block sb)

Definition at line 410 of file super.c.

void nfs_sb_deactive_async ( struct super_block sb)

Definition at line 458 of file super.c.

int nfs_scan_commit ( struct inode inode,
struct list_head dst,
struct nfs_commit_info cinfo 
)

Definition at line 726 of file write.c.

int nfs_scan_commit_list ( struct list_head src,
struct list_head dst,
struct nfs_commit_info cinfo,
int  max 
)
void nfs_server_copy_userdata ( struct nfs_server ,
struct nfs_server  
)

Definition at line 922 of file client.c.

void nfs_server_insert_lists ( struct nfs_server )

Definition at line 936 of file client.c.

void nfs_set_pgio_error ( struct nfs_pgio_header hdr,
int  error,
loff_t  pos 
)

Definition at line 60 of file pagelist.c.

int nfs_set_sb_security ( struct super_block ,
struct dentry ,
struct nfs_mount_info  
)

Definition at line 2405 of file super.c.

int nfs_setlease ( struct file ,
long  ,
struct file_lock **   
)

Definition at line 902 of file file.c.

int nfs_show_devname ( struct seq_file ,
struct dentry  
)

Definition at line 816 of file super.c.

int nfs_show_options ( struct seq_file ,
struct dentry  
)

Definition at line 757 of file super.c.

int nfs_show_path ( struct seq_file ,
struct dentry  
)

Definition at line 833 of file super.c.

int nfs_show_stats ( struct seq_file ,
struct dentry  
)

Definition at line 843 of file super.c.

int nfs_statfs ( struct dentry ,
struct kstatfs  
)

Definition at line 470 of file super.c.

struct vfsmount* nfs_submount ( struct nfs_server ,
struct dentry ,
struct nfs_fh ,
struct nfs_fattr  
)
read

Definition at line 256 of file namespace.c.

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

Definition at line 1712 of file dir.c.

struct dentry* nfs_try_mount ( int  ,
const char ,
struct nfs_mount_info ,
struct nfs_subversion  
)
read

Definition at line 1767 of file super.c.

void nfs_umount ( const struct nfs_mount_request info)

nfs_umount - Notify a server that we have unmounted this export : pointer to umount request arguments

MOUNTPROC_UMNT is advisory, so we set a short timeout, and always use UDP.

Definition at line 220 of file mount_clnt.c.

void nfs_umount_begin ( struct super_block )

Definition at line 937 of file super.c.

int nfs_unlink ( struct inode ,
struct dentry  
)

Definition at line 1667 of file dir.c.

int nfs_wait_bit_killable ( void word)

nfs_wait_bit_killable - helper for functions that are sleeping on bit locks : long word containing the bit lock

Definition at line 78 of file inode.c.

int nfs_wait_client_init_complete ( const struct nfs_client clp)

Definition at line 437 of file client.c.

int nfs_write_inode ( struct inode ,
struct writeback_control  
)

Definition at line 1703 of file write.c.

void nfs_write_prepare ( struct rpc_task task,
void calldata 
)

Definition at line 1252 of file write.c.

void nfs_writedata_release ( struct nfs_write_data wdata)

Definition at line 121 of file write.c.

struct nfs_write_header* nfs_writehdr_alloc ( void  )
read

Definition at line 71 of file write.c.

void nfs_writehdr_free ( struct nfs_pgio_header hdr)

Definition at line 114 of file write.c.

struct dentry* nfs_xdev_mount_common ( struct file_system_type ,
int  ,
const char ,
struct nfs_mount_info  
)
read
void nfs_zap_acl_cache ( struct inode inode)

Definition at line 180 of file inode.c.

int __init register_nfs_fs ( void  )

Definition at line 364 of file super.c.

void __exit unregister_nfs_fs ( void  )

Definition at line 393 of file super.c.

Variable Documentation

struct rpc_procinfo nfs3_procedures[]

Definition at line 2489 of file nfs3xdr.c.

struct svc_version nfs4_callback_version1

Definition at line 982 of file callback_xdr.c.

struct svc_version nfs4_callback_version4

Definition at line 991 of file callback_xdr.c.

struct file_system_type nfs_fs_type

Definition at line 289 of file super.c.

struct rpc_procinfo nfs_procedures[]

Definition at line 1116 of file nfs2xdr.c.

struct rpc_program nfs_program

Definition at line 73 of file client.c.

struct rpc_stat nfs_rpcstat

Definition at line 82 of file client.c.

Definition at line 306 of file super.c.

struct file_system_type nfs_xdev_fs_type

Definition at line 298 of file super.c.

struct workqueue_struct* nfsiod_workqueue

Definition at line 1585 of file inode.c.