diff options
Diffstat (limited to 'fs/nfs/pnfs.h')
-rw-r--r-- | fs/nfs/pnfs.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/fs/nfs/pnfs.h b/fs/nfs/pnfs.h index 1d4e6317fa95..6380b9405bcd 100644 --- a/fs/nfs/pnfs.h +++ b/fs/nfs/pnfs.h | |||
@@ -79,6 +79,7 @@ struct pnfs_layoutdriver_type { | |||
79 | * I/O, else return PNFS_NOT_ATTEMPTED to fall back to normal NFS | 79 | * I/O, else return PNFS_NOT_ATTEMPTED to fall back to normal NFS |
80 | */ | 80 | */ |
81 | enum pnfs_try_status (*read_pagelist) (struct nfs_read_data *nfs_data); | 81 | enum pnfs_try_status (*read_pagelist) (struct nfs_read_data *nfs_data); |
82 | enum pnfs_try_status (*write_pagelist) (struct nfs_write_data *nfs_data, int how); | ||
82 | }; | 83 | }; |
83 | 84 | ||
84 | struct pnfs_layout_hdr { | 85 | struct pnfs_layout_hdr { |
@@ -120,6 +121,8 @@ pnfs_update_layout(struct inode *ino, struct nfs_open_context *ctx, | |||
120 | enum pnfs_iomode access_type); | 121 | enum pnfs_iomode access_type); |
121 | void set_pnfs_layoutdriver(struct nfs_server *, u32 id); | 122 | void set_pnfs_layoutdriver(struct nfs_server *, u32 id); |
122 | void unset_pnfs_layoutdriver(struct nfs_server *); | 123 | void unset_pnfs_layoutdriver(struct nfs_server *); |
124 | enum pnfs_try_status pnfs_try_to_write_data(struct nfs_write_data *, | ||
125 | const struct rpc_call_ops *, int); | ||
123 | enum pnfs_try_status pnfs_try_to_read_data(struct nfs_read_data *, | 126 | enum pnfs_try_status pnfs_try_to_read_data(struct nfs_read_data *, |
124 | const struct rpc_call_ops *); | 127 | const struct rpc_call_ops *); |
125 | void pnfs_pageio_init_read(struct nfs_pageio_descriptor *, struct inode *); | 128 | void pnfs_pageio_init_read(struct nfs_pageio_descriptor *, struct inode *); |
@@ -200,6 +203,13 @@ pnfs_try_to_read_data(struct nfs_read_data *data, | |||
200 | return PNFS_NOT_ATTEMPTED; | 203 | return PNFS_NOT_ATTEMPTED; |
201 | } | 204 | } |
202 | 205 | ||
206 | static inline enum pnfs_try_status | ||
207 | pnfs_try_to_write_data(struct nfs_write_data *data, | ||
208 | const struct rpc_call_ops *call_ops, int how) | ||
209 | { | ||
210 | return PNFS_NOT_ATTEMPTED; | ||
211 | } | ||
212 | |||
203 | static inline bool | 213 | static inline bool |
204 | pnfs_roc(struct inode *ino) | 214 | pnfs_roc(struct inode *ino) |
205 | { | 215 | { |