diff options
Diffstat (limited to 'include/linux/nfs_xdr.h')
-rw-r--r-- | include/linux/nfs_xdr.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/nfs_xdr.h b/include/linux/nfs_xdr.h index e34beaf86e9c..164862148ba0 100644 --- a/include/linux/nfs_xdr.h +++ b/include/linux/nfs_xdr.h | |||
@@ -1187,14 +1187,30 @@ struct nfs_read_data { | |||
1187 | struct nfs_client *ds_clp; /* pNFS data server */ | 1187 | struct nfs_client *ds_clp; /* pNFS data server */ |
1188 | }; | 1188 | }; |
1189 | 1189 | ||
1190 | /* used as flag bits in nfs_pgio_header */ | ||
1191 | enum { | ||
1192 | NFS_IOHDR_ERROR = 0, | ||
1193 | NFS_IOHDR_EOF, | ||
1194 | NFS_IOHDR_REDO, | ||
1195 | }; | ||
1196 | |||
1190 | struct nfs_pgio_header { | 1197 | struct nfs_pgio_header { |
1191 | struct inode *inode; | 1198 | struct inode *inode; |
1192 | struct rpc_cred *cred; | 1199 | struct rpc_cred *cred; |
1193 | struct list_head pages; | 1200 | struct list_head pages; |
1201 | struct list_head rpc_list; | ||
1202 | atomic_t refcnt; | ||
1194 | struct nfs_page *req; | 1203 | struct nfs_page *req; |
1195 | struct pnfs_layout_segment *lseg; | 1204 | struct pnfs_layout_segment *lseg; |
1205 | loff_t io_start; | ||
1196 | const struct rpc_call_ops *mds_ops; | 1206 | const struct rpc_call_ops *mds_ops; |
1207 | void (*release) (struct nfs_pgio_header *hdr); | ||
1208 | spinlock_t lock; | ||
1209 | /* fields protected by lock */ | ||
1197 | int pnfs_error; | 1210 | int pnfs_error; |
1211 | int error; /* merge with pnfs_error */ | ||
1212 | unsigned long good_bytes; /* boundary of good data */ | ||
1213 | unsigned long flags; | ||
1198 | }; | 1214 | }; |
1199 | 1215 | ||
1200 | struct nfs_read_header { | 1216 | struct nfs_read_header { |