nfs4_fs.h (863a3c6c686d5773f7192a4818769e15db12ce08) nfs4_fs.h (7c5130588d691a3b34d02312f1bd1b6d56fe0100)
1/*
2 * linux/fs/nfs/nfs4_fs.h
3 *
4 * Copyright (C) 2005 Trond Myklebust
5 *
6 * NFSv4-specific filesystem definitions and declarations
7 */
8

--- 43 unchanged lines hidden (view full) ---

52enum nfs4_session_state {
53 NFS4_SESSION_INITING,
54 NFS4_SESSION_DRAINING,
55};
56
57struct nfs4_minor_version_ops {
58 u32 minor_version;
59
1/*
2 * linux/fs/nfs/nfs4_fs.h
3 *
4 * Copyright (C) 2005 Trond Myklebust
5 *
6 * NFSv4-specific filesystem definitions and declarations
7 */
8

--- 43 unchanged lines hidden (view full) ---

52enum nfs4_session_state {
53 NFS4_SESSION_INITING,
54 NFS4_SESSION_DRAINING,
55};
56
57struct nfs4_minor_version_ops {
58 u32 minor_version;
59
60 int (*call_sync)(struct nfs_server *server,
60 int (*call_sync)(struct rpc_clnt *clnt,
61 struct nfs_server *server,
61 struct rpc_message *msg,
62 struct nfs4_sequence_args *args,
63 struct nfs4_sequence_res *res,
64 int cache_reply);
65 int (*validate_stateid)(struct nfs_delegation *,
66 const nfs4_stateid *);
67 const struct nfs4_state_recovery_ops *reboot_recovery_ops;
68 const struct nfs4_state_recovery_ops *nograce_recovery_ops;

--- 188 unchanged lines hidden (view full) ---

257 int cache_reply, struct rpc_task *task);
258extern void nfs4_destroy_session(struct nfs4_session *session);
259extern struct nfs4_session *nfs4_alloc_session(struct nfs_client *clp);
260extern int nfs4_proc_create_session(struct nfs_client *);
261extern int nfs4_proc_destroy_session(struct nfs4_session *);
262extern int nfs4_init_session(struct nfs_server *server);
263extern int nfs4_proc_get_lease_time(struct nfs_client *clp,
264 struct nfs_fsinfo *fsinfo);
62 struct rpc_message *msg,
63 struct nfs4_sequence_args *args,
64 struct nfs4_sequence_res *res,
65 int cache_reply);
66 int (*validate_stateid)(struct nfs_delegation *,
67 const nfs4_stateid *);
68 const struct nfs4_state_recovery_ops *reboot_recovery_ops;
69 const struct nfs4_state_recovery_ops *nograce_recovery_ops;

--- 188 unchanged lines hidden (view full) ---

258 int cache_reply, struct rpc_task *task);
259extern void nfs4_destroy_session(struct nfs4_session *session);
260extern struct nfs4_session *nfs4_alloc_session(struct nfs_client *clp);
261extern int nfs4_proc_create_session(struct nfs_client *);
262extern int nfs4_proc_destroy_session(struct nfs4_session *);
263extern int nfs4_init_session(struct nfs_server *server);
264extern int nfs4_proc_get_lease_time(struct nfs_client *clp,
265 struct nfs_fsinfo *fsinfo);
265extern int nfs4_proc_layoutcommit(struct nfs4_layoutcommit_data *data,
266 int sync);
267
268static inline bool
269is_ds_only_client(struct nfs_client *clp)
270{
271 return (clp->cl_exchange_flags & EXCHGID4_FLAG_MASK_PNFS) ==
272 EXCHGID4_FLAG_USE_PNFS_DS;
273}
274

--- 104 unchanged lines hidden ---
266
267static inline bool
268is_ds_only_client(struct nfs_client *clp)
269{
270 return (clp->cl_exchange_flags & EXCHGID4_FLAG_MASK_PNFS) ==
271 EXCHGID4_FLAG_USE_PNFS_DS;
272}
273

--- 104 unchanged lines hidden ---