diff options
| author | Trond Myklebust <trond.myklebust@primarydata.com> | 2014-09-30 16:23:39 -0400 |
|---|---|---|
| committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2014-09-30 16:23:39 -0400 |
| commit | 4a3a0ebad1360696125bf34d89de55d71c4d0eaa (patch) | |
| tree | 12bc1bb6c8b6121a1ba30423a5b27fb91cba0a39 /include/linux | |
| parent | 2ce7598c9a453e0acd0e07be7be3f5eb39608ebd (diff) | |
| parent | 24bab491220faa446d945624086d838af41d616c (diff) | |
Merge commit '24bab491220f' into client-4.2
- Pull in patch 'NFSD: Implement SEEK' from Bruce's nfsd-next tree
for dependencies.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/nfs4.h | 26 | ||||
| -rw-r--r-- | include/linux/proc_fs.h | 2 | ||||
| -rw-r--r-- | include/linux/sunrpc/svc.h | 1 |
3 files changed, 25 insertions, 4 deletions
diff --git a/include/linux/nfs4.h b/include/linux/nfs4.h index a1e3064a8d99..026b0c042c40 100644 --- a/include/linux/nfs4.h +++ b/include/linux/nfs4.h | |||
| @@ -110,6 +110,20 @@ enum nfs_opnum4 { | |||
| 110 | OP_DESTROY_CLIENTID = 57, | 110 | OP_DESTROY_CLIENTID = 57, |
| 111 | OP_RECLAIM_COMPLETE = 58, | 111 | OP_RECLAIM_COMPLETE = 58, |
| 112 | 112 | ||
| 113 | /* nfs42 */ | ||
| 114 | OP_ALLOCATE = 59, | ||
| 115 | OP_COPY = 60, | ||
| 116 | OP_COPY_NOTIFY = 61, | ||
| 117 | OP_DEALLOCATE = 62, | ||
| 118 | OP_IO_ADVISE = 63, | ||
| 119 | OP_LAYOUTERROR = 64, | ||
| 120 | OP_LAYOUTSTATS = 65, | ||
| 121 | OP_OFFLOAD_CANCEL = 66, | ||
| 122 | OP_OFFLOAD_STATUS = 67, | ||
| 123 | OP_READ_PLUS = 68, | ||
| 124 | OP_SEEK = 69, | ||
| 125 | OP_WRITE_SAME = 70, | ||
| 126 | |||
| 113 | OP_ILLEGAL = 10044, | 127 | OP_ILLEGAL = 10044, |
| 114 | }; | 128 | }; |
| 115 | 129 | ||
| @@ -117,10 +131,10 @@ enum nfs_opnum4 { | |||
| 117 | Needs to be updated if more operations are defined in future.*/ | 131 | Needs to be updated if more operations are defined in future.*/ |
| 118 | 132 | ||
| 119 | #define FIRST_NFS4_OP OP_ACCESS | 133 | #define FIRST_NFS4_OP OP_ACCESS |
| 120 | #define LAST_NFS4_OP OP_RECLAIM_COMPLETE | 134 | #define LAST_NFS4_OP OP_WRITE_SAME |
| 121 | #define LAST_NFS40_OP OP_RELEASE_LOCKOWNER | 135 | #define LAST_NFS40_OP OP_RELEASE_LOCKOWNER |
| 122 | #define LAST_NFS41_OP OP_RECLAIM_COMPLETE | 136 | #define LAST_NFS41_OP OP_RECLAIM_COMPLETE |
| 123 | #define LAST_NFS42_OP OP_RECLAIM_COMPLETE | 137 | #define LAST_NFS42_OP OP_WRITE_SAME |
| 124 | 138 | ||
| 125 | enum nfsstat4 { | 139 | enum nfsstat4 { |
| 126 | NFS4_OK = 0, | 140 | NFS4_OK = 0, |
| @@ -235,10 +249,11 @@ enum nfsstat4 { | |||
| 235 | /* nfs42 */ | 249 | /* nfs42 */ |
| 236 | NFS4ERR_PARTNER_NOTSUPP = 10088, | 250 | NFS4ERR_PARTNER_NOTSUPP = 10088, |
| 237 | NFS4ERR_PARTNER_NO_AUTH = 10089, | 251 | NFS4ERR_PARTNER_NO_AUTH = 10089, |
| 238 | NFS4ERR_METADATA_NOTSUPP = 10090, | 252 | NFS4ERR_UNION_NOTSUPP = 10090, |
| 239 | NFS4ERR_OFFLOAD_DENIED = 10091, | 253 | NFS4ERR_OFFLOAD_DENIED = 10091, |
| 240 | NFS4ERR_WRONG_LFS = 10092, | 254 | NFS4ERR_WRONG_LFS = 10092, |
| 241 | NFS4ERR_BADLABEL = 10093, | 255 | NFS4ERR_BADLABEL = 10093, |
| 256 | NFS4ERR_OFFLOAD_NO_REQS = 10094, | ||
| 242 | }; | 257 | }; |
| 243 | 258 | ||
| 244 | static inline bool seqid_mutating_err(u32 err) | 259 | static inline bool seqid_mutating_err(u32 err) |
| @@ -535,4 +550,9 @@ struct nfs4_deviceid { | |||
| 535 | char data[NFS4_DEVICEID4_SIZE]; | 550 | char data[NFS4_DEVICEID4_SIZE]; |
| 536 | }; | 551 | }; |
| 537 | 552 | ||
| 553 | enum data_content4 { | ||
| 554 | NFS4_CONTENT_DATA = 0, | ||
| 555 | NFS4_CONTENT_HOLE = 1, | ||
| 556 | }; | ||
| 557 | |||
| 538 | #endif | 558 | #endif |
diff --git a/include/linux/proc_fs.h b/include/linux/proc_fs.h index 9d117f61d976..b97bf2ef996e 100644 --- a/include/linux/proc_fs.h +++ b/include/linux/proc_fs.h | |||
| @@ -74,6 +74,8 @@ static inline int remove_proc_subtree(const char *name, struct proc_dir_entry *p | |||
| 74 | 74 | ||
| 75 | #endif /* CONFIG_PROC_FS */ | 75 | #endif /* CONFIG_PROC_FS */ |
| 76 | 76 | ||
| 77 | struct net; | ||
| 78 | |||
| 77 | static inline struct proc_dir_entry *proc_net_mkdir( | 79 | static inline struct proc_dir_entry *proc_net_mkdir( |
| 78 | struct net *net, const char *name, struct proc_dir_entry *parent) | 80 | struct net *net, const char *name, struct proc_dir_entry *parent) |
| 79 | { | 81 | { |
diff --git a/include/linux/sunrpc/svc.h b/include/linux/sunrpc/svc.h index cf61ecd148e0..21678464883a 100644 --- a/include/linux/sunrpc/svc.h +++ b/include/linux/sunrpc/svc.h | |||
| @@ -280,7 +280,6 @@ struct svc_rqst { | |||
| 280 | bool rq_splice_ok; /* turned off in gss privacy | 280 | bool rq_splice_ok; /* turned off in gss privacy |
| 281 | * to prevent encrypting page | 281 | * to prevent encrypting page |
| 282 | * cache pages */ | 282 | * cache pages */ |
| 283 | wait_queue_head_t rq_wait; /* synchronization */ | ||
| 284 | struct task_struct *rq_task; /* service thread */ | 283 | struct task_struct *rq_task; /* service thread */ |
| 285 | }; | 284 | }; |
| 286 | 285 | ||
