Go to the documentation of this file.
35 #ifndef _NFSD4_STATE_H
36 #define _NFSD4_STATE_H
40 #include <linux/nfsd/nfsfh.h>
58 #define STATEID_FMT "(%08x/%08x/%08x/%08x)"
59 #define STATEID_VAL(s) \
60 (s)->si_opaque.so_clid.cl_boot, \
61 (s)->si_opaque.so_clid.cl_id, \
62 (s)->si_opaque.so_id, \
77 #define NFS4_OPEN_STID 1
78 #define NFS4_LOCK_STID 2
79 #define NFS4_DELEG_STID 4
81 #define NFS4_CLOSED_STID 8
120 #define NFSD_MAX_SLOTS_PER_SESSION 160
122 #define NFSD_MAX_OPS_PER_COMPOUND 16
124 #define NFSD_SLOT_CACHE_SIZE 1024
126 #define NFSD_CACHE_SIZE_SLOTS_PER_SESSION 32
127 #define NFSD_MAX_MEM_PER_SESSION \
128 (NFSD_CACHE_SIZE_SLOTS_PER_SESSION * NFSD_SLOT_CACHE_SIZE)
135 #define NFSD4_SLOT_INUSE (1 << 0)
136 #define NFSD4_SLOT_CACHETHIS (1 << 1)
137 #define NFSD4_SLOT_INITIALIZED (1 << 2)
210 #define HEXDIR_LEN 33
241 #define NFSD4_CLIENT_CB_UPDATE (0)
242 #define NFSD4_CLIENT_CB_KILL (1)
243 #define NFSD4_CLIENT_STABLE (2)
244 #define NFSD4_CLIENT_RECLAIM_COMPLETE (3)
245 #define NFSD4_CLIENT_CB_FLAG_MASK (1 << NFSD4_CLIENT_CB_UPDATE | \
246 1 << NFSD4_CLIENT_CB_KILL)
250 #define NFSD4_CB_UP 0
251 #define NFSD4_CB_UNKNOWN 1
252 #define NFSD4_CB_DOWN 2
253 #define NFSD4_CB_FAULT 3
314 #define NFSD4_REPLAY_ISIZE 112
353 #define NFS4_OO_CONFIRMED 1
354 #define NFS4_OO_PURGE_CLOSE 2
355 #define NFS4_OO_NEW 4
401 static inline struct file *find_writeable_file(
struct nfs4_file *
f)
415 static inline struct file *find_any_file(
struct nfs4_file *f)
444 #define RD_STATE 0x00000010
445 #define WR_STATE 0x00000020