Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
state.h File Reference
#include <linux/idr.h>
#include <linux/sunrpc/svc_xprt.h>
#include <linux/nfsd/nfsfh.h>
#include "nfsfh.h"

Go to the source code of this file.

Data Structures

struct  clientid_t
 
struct  stateid_opaque_t
 
struct  stateid_t
 
struct  nfsd4_callback
 
struct  nfs4_stid
 
struct  nfs4_delegation
 
struct  nfs4_cb_conn
 
struct  nfsd4_slot
 
struct  nfsd4_channel_attrs
 
struct  nfsd4_create_session
 
struct  nfsd4_bind_conn_to_session
 
struct  nfsd4_clid_slot
 
struct  nfsd4_conn
 
struct  nfsd4_session
 
struct  nfsd4_sessionid
 
struct  nfs4_client
 
struct  nfs4_client_reclaim
 
struct  nfs4_replay
 
struct  nfs4_stateowner
 
struct  nfs4_openowner
 
struct  nfs4_lockowner
 
struct  nfs4_file
 
struct  nfs4_ol_stateid
 

Macros

#define STATEID_FMT   "(%08x/%08x/%08x/%08x)"
 
#define STATEID_VAL(s)
 
#define NFS4_OPEN_STID   1
 
#define NFS4_LOCK_STID   2
 
#define NFS4_DELEG_STID   4
 
#define NFS4_CLOSED_STID   8
 
#define NFSD_MAX_SLOTS_PER_SESSION   160
 
#define NFSD_MAX_OPS_PER_COMPOUND   16
 
#define NFSD_SLOT_CACHE_SIZE   1024
 
#define NFSD_CACHE_SIZE_SLOTS_PER_SESSION   32
 
#define NFSD_MAX_MEM_PER_SESSION   (NFSD_CACHE_SIZE_SLOTS_PER_SESSION * NFSD_SLOT_CACHE_SIZE)
 
#define NFSD4_SLOT_INUSE   (1 << 0)
 
#define NFSD4_SLOT_CACHETHIS   (1 << 1)
 
#define NFSD4_SLOT_INITIALIZED   (1 << 2)
 
#define HEXDIR_LEN   33 /* hex version of 16 byte md5 of cl_name plus '\0' */
 
#define NFSD4_CLIENT_CB_UPDATE   (0)
 
#define NFSD4_CLIENT_CB_KILL   (1)
 
#define NFSD4_CLIENT_STABLE   (2) /* client on stable storage */
 
#define NFSD4_CLIENT_RECLAIM_COMPLETE   (3) /* reclaim_complete done */
 
#define NFSD4_CLIENT_CB_FLAG_MASK
 
#define NFSD4_CB_UP   0
 
#define NFSD4_CB_UNKNOWN   1
 
#define NFSD4_CB_DOWN   2
 
#define NFSD4_CB_FAULT   3
 
#define NFSD4_REPLAY_ISIZE   112
 
#define NFS4_OO_CONFIRMED   1
 
#define NFS4_OO_PURGE_CLOSE   2
 
#define NFS4_OO_NEW   4
 
#define RD_STATE   0x00000010
 
#define WR_STATE   0x00000020
 

Functions

void nfsd4_put_session (struct nfsd4_session *ses)
 
__be32 nfs4_preprocess_stateid_op (struct net *net, struct nfsd4_compound_state *cstate, stateid_t *stateid, int flags, struct file **filp)
 
void nfs4_lock_state (void)
 
void nfs4_unlock_state (void)
 
int nfs4_in_grace (void)
 
void nfs4_release_reclaim (void)
 
struct nfs4_client_reclaimnfsd4_find_reclaim_client (struct nfs4_client *crp)
 
__be32 nfs4_check_open_reclaim (clientid_t *clid, bool sessions)
 
void nfs4_free_openowner (struct nfs4_openowner *)
 
void nfs4_free_lockowner (struct nfs4_lockowner *)
 
int set_callback_cred (void)
 
void nfsd4_probe_callback (struct nfs4_client *clp)
 
void nfsd4_probe_callback_sync (struct nfs4_client *clp)
 
void nfsd4_change_callback (struct nfs4_client *clp, struct nfs4_cb_conn *)
 
void nfsd4_do_callback_rpc (struct work_struct *)
 
void nfsd4_cb_recall (struct nfs4_delegation *dp)
 
int nfsd4_create_callback_queue (void)
 
void nfsd4_destroy_callback_queue (void)
 
void nfsd4_shutdown_callback (struct nfs4_client *)
 
void nfs4_put_delegation (struct nfs4_delegation *dp)
 
__be32 nfs4_make_rec_clidname (char *clidname, struct xdr_netobj *clname)
 
int nfs4_client_to_reclaim (const char *name)
 
int nfs4_has_reclaimed_state (const char *name, bool use_exchange_id)
 
void release_session_client (struct nfsd4_session *)
 
void nfsd4_purge_closed_stateid (struct nfs4_stateowner *)
 
int nfsd4_client_tracking_init (struct net *net)
 
void nfsd4_client_tracking_exit (struct net *net)
 
void nfsd4_client_record_create (struct nfs4_client *clp)
 
void nfsd4_client_record_remove (struct nfs4_client *clp)
 
int nfsd4_client_record_check (struct nfs4_client *clp)
 
void nfsd4_record_grace_done (struct net *net, time_t boot_time)
 

Macro Definition Documentation

#define HEXDIR_LEN   33 /* hex version of 16 byte md5 of cl_name plus '\0' */

Definition at line 210 of file state.h.

#define NFS4_CLOSED_STID   8

Definition at line 81 of file state.h.

#define NFS4_DELEG_STID   4

Definition at line 79 of file state.h.

#define NFS4_LOCK_STID   2

Definition at line 78 of file state.h.

#define NFS4_OO_CONFIRMED   1

Definition at line 353 of file state.h.

#define NFS4_OO_NEW   4

Definition at line 355 of file state.h.

#define NFS4_OO_PURGE_CLOSE   2

Definition at line 354 of file state.h.

#define NFS4_OPEN_STID   1

Definition at line 77 of file state.h.

#define NFSD4_CB_DOWN   2

Definition at line 252 of file state.h.

#define NFSD4_CB_FAULT   3

Definition at line 253 of file state.h.

#define NFSD4_CB_UNKNOWN   1

Definition at line 251 of file state.h.

#define NFSD4_CB_UP   0

Definition at line 250 of file state.h.

#define NFSD4_CLIENT_CB_FLAG_MASK
Value:

Definition at line 245 of file state.h.

#define NFSD4_CLIENT_CB_KILL   (1)

Definition at line 242 of file state.h.

#define NFSD4_CLIENT_CB_UPDATE   (0)

Definition at line 241 of file state.h.

#define NFSD4_CLIENT_RECLAIM_COMPLETE   (3) /* reclaim_complete done */

Definition at line 244 of file state.h.

#define NFSD4_CLIENT_STABLE   (2) /* client on stable storage */

Definition at line 243 of file state.h.

#define NFSD4_REPLAY_ISIZE   112

Definition at line 314 of file state.h.

#define NFSD4_SLOT_CACHETHIS   (1 << 1)

Definition at line 136 of file state.h.

#define NFSD4_SLOT_INITIALIZED   (1 << 2)

Definition at line 137 of file state.h.

#define NFSD4_SLOT_INUSE   (1 << 0)

Definition at line 135 of file state.h.

#define NFSD_CACHE_SIZE_SLOTS_PER_SESSION   32

Definition at line 126 of file state.h.

#define NFSD_MAX_MEM_PER_SESSION   (NFSD_CACHE_SIZE_SLOTS_PER_SESSION * NFSD_SLOT_CACHE_SIZE)

Definition at line 127 of file state.h.

#define NFSD_MAX_OPS_PER_COMPOUND   16

Definition at line 122 of file state.h.

#define NFSD_MAX_SLOTS_PER_SESSION   160

Definition at line 120 of file state.h.

#define NFSD_SLOT_CACHE_SIZE   1024

Definition at line 124 of file state.h.

#define RD_STATE   0x00000010

Definition at line 444 of file state.h.

#define STATEID_FMT   "(%08x/%08x/%08x/%08x)"

Definition at line 58 of file state.h.

#define STATEID_VAL (   s)
Value:
(s)->si_opaque.so_clid.cl_boot, \
(s)->si_opaque.so_clid.cl_id, \
(s)->si_opaque.so_id, \
(s)->si_generation

Definition at line 59 of file state.h.

#define WR_STATE   0x00000020

Definition at line 445 of file state.h.

Function Documentation

__be32 nfs4_check_open_reclaim ( clientid_t clid,
bool  sessions 
)

Definition at line 4546 of file nfs4state.c.

int nfs4_client_to_reclaim ( const char name)

Definition at line 4485 of file nfs4state.c.

void nfs4_free_lockowner ( struct nfs4_lockowner )

Definition at line 2371 of file nfs4state.c.

void nfs4_free_openowner ( struct nfs4_openowner )

Definition at line 2365 of file nfs4state.c.

int nfs4_has_reclaimed_state ( const char name,
bool  use_exchange_id 
)

Definition at line 4470 of file nfs4state.c.

int nfs4_in_grace ( void  )
void nfs4_lock_state ( void  )

Definition at line 97 of file nfs4state.c.

__be32 nfs4_make_rec_clidname ( char clidname,
struct xdr_netobj *  clname 
)

Definition at line 106 of file nfs4recover.c.

__be32 nfs4_preprocess_stateid_op ( struct net net,
struct nfsd4_compound_state cstate,
stateid_t stateid,
int  flags,
struct file **  filp 
)

Definition at line 3411 of file nfs4state.c.

void nfs4_put_delegation ( struct nfs4_delegation dp)

Definition at line 348 of file nfs4state.c.

void nfs4_release_reclaim ( void  )

Definition at line 4503 of file nfs4state.c.

void nfs4_unlock_state ( void  )

Definition at line 116 of file nfs4state.c.

void nfsd4_cb_recall ( struct nfs4_delegation dp)

Definition at line 1017 of file nfs4callback.c.

void nfsd4_change_callback ( struct nfs4_client clp,
struct nfs4_cb_conn  
)

Definition at line 770 of file nfs4callback.c.

int nfsd4_client_record_check ( struct nfs4_client clp)

Definition at line 979 of file nfs4recover.c.

void nfsd4_client_record_create ( struct nfs4_client clp)

Definition at line 965 of file nfs4recover.c.

void nfsd4_client_record_remove ( struct nfs4_client clp)

Definition at line 972 of file nfs4recover.c.

void nfsd4_client_tracking_exit ( struct net net)

Definition at line 956 of file nfs4recover.c.

int nfsd4_client_tracking_init ( struct net net)

Definition at line 930 of file nfs4recover.c.

int nfsd4_create_callback_queue ( void  )

Definition at line 903 of file nfs4callback.c.

void nfsd4_destroy_callback_queue ( void  )

Definition at line 911 of file nfs4callback.c.

void nfsd4_do_callback_rpc ( struct work_struct )

Definition at line 998 of file nfs4callback.c.

struct nfs4_client_reclaim* nfsd4_find_reclaim_client ( struct nfs4_client crp)
read

Definition at line 4523 of file nfs4state.c.

void nfsd4_probe_callback ( struct nfs4_client clp)

Definition at line 757 of file nfs4callback.c.

void nfsd4_probe_callback_sync ( struct nfs4_client clp)

Definition at line 764 of file nfs4callback.c.

void nfsd4_purge_closed_stateid ( struct nfs4_stateowner )

Definition at line 3727 of file nfs4state.c.

void nfsd4_put_session ( struct nfsd4_session ses)

Definition at line 916 of file nfs4state.c.

void nfsd4_record_grace_done ( struct net net,
time_t  boot_time 
)

Definition at line 988 of file nfs4recover.c.

void nfsd4_shutdown_callback ( struct nfs4_client )

Definition at line 917 of file nfs4callback.c.

void release_session_client ( struct nfsd4_session )

Definition at line 1092 of file nfs4state.c.

int set_callback_cred ( void  )

Definition at line 719 of file nfs4callback.c.