diff options
author | Anna Schumaker <Anna.Schumaker@netapp.com> | 2014-05-06 09:12:27 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2014-05-28 18:12:55 -0400 |
commit | c0752cdfbbb691cfe98812f7aed8ce1e766823c4 (patch) | |
tree | 895790bb4aaca50b0e632c6c13f61cf562a6d34b /fs/nfs/internal.h | |
parent | 9c7e1b3d50b56b8d8f6237ed232350b7c6476cd5 (diff) |
NFS: Create a common read and write header struct
The only difference is the write verifier field, but we can keep that
for a little bit longer.
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/internal.h')
-rw-r--r-- | fs/nfs/internal.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h index af01b80412dd..b0e7a41d14a8 100644 --- a/fs/nfs/internal.h +++ b/fs/nfs/internal.h | |||
@@ -395,7 +395,7 @@ extern int nfs4_get_rootfh(struct nfs_server *server, struct nfs_fh *mntfh, bool | |||
395 | 395 | ||
396 | struct nfs_pgio_completion_ops; | 396 | struct nfs_pgio_completion_ops; |
397 | /* read.c */ | 397 | /* read.c */ |
398 | extern struct nfs_read_header *nfs_readhdr_alloc(void); | 398 | extern struct nfs_rw_header *nfs_readhdr_alloc(void); |
399 | extern void nfs_readhdr_free(struct nfs_pgio_header *hdr); | 399 | extern void nfs_readhdr_free(struct nfs_pgio_header *hdr); |
400 | extern void nfs_pageio_init_read(struct nfs_pageio_descriptor *pgio, | 400 | extern void nfs_pageio_init_read(struct nfs_pageio_descriptor *pgio, |
401 | struct inode *inode, bool force_mds, | 401 | struct inode *inode, bool force_mds, |
@@ -424,7 +424,7 @@ int nfs_remount(struct super_block *sb, int *flags, char *raw_data); | |||
424 | extern void nfs_pageio_init_write(struct nfs_pageio_descriptor *pgio, | 424 | extern void nfs_pageio_init_write(struct nfs_pageio_descriptor *pgio, |
425 | struct inode *inode, int ioflags, bool force_mds, | 425 | struct inode *inode, int ioflags, bool force_mds, |
426 | const struct nfs_pgio_completion_ops *compl_ops); | 426 | const struct nfs_pgio_completion_ops *compl_ops); |
427 | extern struct nfs_write_header *nfs_writehdr_alloc(void); | 427 | extern struct nfs_rw_header *nfs_writehdr_alloc(void); |
428 | extern void nfs_writehdr_free(struct nfs_pgio_header *hdr); | 428 | extern void nfs_writehdr_free(struct nfs_pgio_header *hdr); |
429 | extern int nfs_generic_flush(struct nfs_pageio_descriptor *desc, | 429 | extern int nfs_generic_flush(struct nfs_pageio_descriptor *desc, |
430 | struct nfs_pgio_header *hdr); | 430 | struct nfs_pgio_header *hdr); |