diff options
-rw-r--r-- | fs/nfs/internal.h | 4 | ||||
-rw-r--r-- | fs/nfs/nfs4filelayout.c | 5 | ||||
-rw-r--r-- | fs/nfs/pnfs.c | 4 | ||||
-rw-r--r-- | fs/nfs/read.c | 4 | ||||
-rw-r--r-- | fs/nfs/write.c | 4 |
5 files changed, 8 insertions, 13 deletions
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h index 09e20de31901..ab12913dd473 100644 --- a/fs/nfs/internal.h +++ b/fs/nfs/internal.h | |||
@@ -299,16 +299,12 @@ extern void nfs_read_prepare(struct rpc_task *task, void *calldata); | |||
299 | extern int nfs_generic_pagein(struct nfs_pageio_descriptor *desc, | 299 | extern int nfs_generic_pagein(struct nfs_pageio_descriptor *desc, |
300 | struct list_head *head); | 300 | struct list_head *head); |
301 | 301 | ||
302 | extern void nfs_pageio_init_read_mds(struct nfs_pageio_descriptor *pgio, | ||
303 | struct inode *inode); | ||
304 | extern void nfs_pageio_reset_read_mds(struct nfs_pageio_descriptor *pgio); | 302 | extern void nfs_pageio_reset_read_mds(struct nfs_pageio_descriptor *pgio); |
305 | extern void nfs_readdata_release(struct nfs_read_data *rdata); | 303 | extern void nfs_readdata_release(struct nfs_read_data *rdata); |
306 | 304 | ||
307 | /* write.c */ | 305 | /* write.c */ |
308 | extern int nfs_generic_flush(struct nfs_pageio_descriptor *desc, | 306 | extern int nfs_generic_flush(struct nfs_pageio_descriptor *desc, |
309 | struct list_head *head); | 307 | struct list_head *head); |
310 | extern void nfs_pageio_init_write_mds(struct nfs_pageio_descriptor *pgio, | ||
311 | struct inode *inode, int ioflags); | ||
312 | extern void nfs_pageio_reset_write_mds(struct nfs_pageio_descriptor *pgio); | 308 | extern void nfs_pageio_reset_write_mds(struct nfs_pageio_descriptor *pgio); |
313 | extern void nfs_writedata_release(struct nfs_write_data *wdata); | 309 | extern void nfs_writedata_release(struct nfs_write_data *wdata); |
314 | extern void nfs_commit_free(struct nfs_write_data *p); | 310 | extern void nfs_commit_free(struct nfs_write_data *p); |
diff --git a/fs/nfs/nfs4filelayout.c b/fs/nfs/nfs4filelayout.c index fbc5b42d1970..f0b37e155ce3 100644 --- a/fs/nfs/nfs4filelayout.c +++ b/fs/nfs/nfs4filelayout.c | |||
@@ -711,7 +711,7 @@ filelayout_pg_init_read(struct nfs_pageio_descriptor *pgio, | |||
711 | GFP_KERNEL); | 711 | GFP_KERNEL); |
712 | /* If no lseg, fall back to read through mds */ | 712 | /* If no lseg, fall back to read through mds */ |
713 | if (pgio->pg_lseg == NULL) | 713 | if (pgio->pg_lseg == NULL) |
714 | nfs_pageio_init_read_mds(pgio, pgio->pg_inode); | 714 | nfs_pageio_reset_read_mds(pgio); |
715 | } | 715 | } |
716 | 716 | ||
717 | void | 717 | void |
@@ -728,8 +728,7 @@ filelayout_pg_init_write(struct nfs_pageio_descriptor *pgio, | |||
728 | GFP_NOFS); | 728 | GFP_NOFS); |
729 | /* If no lseg, fall back to write through mds */ | 729 | /* If no lseg, fall back to write through mds */ |
730 | if (pgio->pg_lseg == NULL) | 730 | if (pgio->pg_lseg == NULL) |
731 | nfs_pageio_init_write_mds(pgio, pgio->pg_inode, | 731 | nfs_pageio_reset_write_mds(pgio); |
732 | pgio->pg_ioflags); | ||
733 | } | 732 | } |
734 | 733 | ||
735 | static const struct nfs_pageio_ops filelayout_pg_read_ops = { | 734 | static const struct nfs_pageio_ops filelayout_pg_read_ops = { |
diff --git a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c index 93c73299588d..38e5508555c6 100644 --- a/fs/nfs/pnfs.c +++ b/fs/nfs/pnfs.c | |||
@@ -1075,7 +1075,7 @@ pnfs_generic_pg_init_read(struct nfs_pageio_descriptor *pgio, struct nfs_page *r | |||
1075 | GFP_KERNEL); | 1075 | GFP_KERNEL); |
1076 | /* If no lseg, fall back to read through mds */ | 1076 | /* If no lseg, fall back to read through mds */ |
1077 | if (pgio->pg_lseg == NULL) | 1077 | if (pgio->pg_lseg == NULL) |
1078 | nfs_pageio_init_read_mds(pgio, pgio->pg_inode); | 1078 | nfs_pageio_reset_read_mds(pgio); |
1079 | 1079 | ||
1080 | } | 1080 | } |
1081 | EXPORT_SYMBOL_GPL(pnfs_generic_pg_init_read); | 1081 | EXPORT_SYMBOL_GPL(pnfs_generic_pg_init_read); |
@@ -1093,7 +1093,7 @@ pnfs_generic_pg_init_write(struct nfs_pageio_descriptor *pgio, struct nfs_page * | |||
1093 | GFP_NOFS); | 1093 | GFP_NOFS); |
1094 | /* If no lseg, fall back to write through mds */ | 1094 | /* If no lseg, fall back to write through mds */ |
1095 | if (pgio->pg_lseg == NULL) | 1095 | if (pgio->pg_lseg == NULL) |
1096 | nfs_pageio_init_write_mds(pgio, pgio->pg_inode, pgio->pg_ioflags); | 1096 | nfs_pageio_reset_write_mds(pgio); |
1097 | } | 1097 | } |
1098 | EXPORT_SYMBOL_GPL(pnfs_generic_pg_init_write); | 1098 | EXPORT_SYMBOL_GPL(pnfs_generic_pg_init_write); |
1099 | 1099 | ||
diff --git a/fs/nfs/read.c b/fs/nfs/read.c index d2f53ddd8260..7cba2280e2b8 100644 --- a/fs/nfs/read.c +++ b/fs/nfs/read.c | |||
@@ -112,19 +112,19 @@ static void nfs_readpage_truncate_uninitialised_page(struct nfs_read_data *data) | |||
112 | } | 112 | } |
113 | } | 113 | } |
114 | 114 | ||
115 | void nfs_pageio_init_read_mds(struct nfs_pageio_descriptor *pgio, | 115 | static void nfs_pageio_init_read_mds(struct nfs_pageio_descriptor *pgio, |
116 | struct inode *inode) | 116 | struct inode *inode) |
117 | { | 117 | { |
118 | nfs_pageio_init(pgio, inode, &nfs_pageio_read_ops, | 118 | nfs_pageio_init(pgio, inode, &nfs_pageio_read_ops, |
119 | NFS_SERVER(inode)->rsize, 0); | 119 | NFS_SERVER(inode)->rsize, 0); |
120 | } | 120 | } |
121 | EXPORT_SYMBOL_GPL(nfs_pageio_init_read_mds); | ||
122 | 121 | ||
123 | void nfs_pageio_reset_read_mds(struct nfs_pageio_descriptor *pgio) | 122 | void nfs_pageio_reset_read_mds(struct nfs_pageio_descriptor *pgio) |
124 | { | 123 | { |
125 | pgio->pg_ops = &nfs_pageio_read_ops; | 124 | pgio->pg_ops = &nfs_pageio_read_ops; |
126 | pgio->pg_bsize = NFS_SERVER(pgio->pg_inode)->rsize; | 125 | pgio->pg_bsize = NFS_SERVER(pgio->pg_inode)->rsize; |
127 | } | 126 | } |
127 | EXPORT_SYMBOL_GPL(nfs_pageio_reset_read_mds); | ||
128 | 128 | ||
129 | static void nfs_pageio_init_read(struct nfs_pageio_descriptor *pgio, | 129 | static void nfs_pageio_init_read(struct nfs_pageio_descriptor *pgio, |
130 | struct inode *inode) | 130 | struct inode *inode) |
diff --git a/fs/nfs/write.c b/fs/nfs/write.c index cabe5f6611b9..9fba5270b1a8 100644 --- a/fs/nfs/write.c +++ b/fs/nfs/write.c | |||
@@ -1051,19 +1051,19 @@ static const struct nfs_pageio_ops nfs_pageio_write_ops = { | |||
1051 | .pg_doio = nfs_generic_pg_writepages, | 1051 | .pg_doio = nfs_generic_pg_writepages, |
1052 | }; | 1052 | }; |
1053 | 1053 | ||
1054 | void nfs_pageio_init_write_mds(struct nfs_pageio_descriptor *pgio, | 1054 | static void nfs_pageio_init_write_mds(struct nfs_pageio_descriptor *pgio, |
1055 | struct inode *inode, int ioflags) | 1055 | struct inode *inode, int ioflags) |
1056 | { | 1056 | { |
1057 | nfs_pageio_init(pgio, inode, &nfs_pageio_write_ops, | 1057 | nfs_pageio_init(pgio, inode, &nfs_pageio_write_ops, |
1058 | NFS_SERVER(inode)->wsize, ioflags); | 1058 | NFS_SERVER(inode)->wsize, ioflags); |
1059 | } | 1059 | } |
1060 | EXPORT_SYMBOL_GPL(nfs_pageio_init_write_mds); | ||
1061 | 1060 | ||
1062 | void nfs_pageio_reset_write_mds(struct nfs_pageio_descriptor *pgio) | 1061 | void nfs_pageio_reset_write_mds(struct nfs_pageio_descriptor *pgio) |
1063 | { | 1062 | { |
1064 | pgio->pg_ops = &nfs_pageio_write_ops; | 1063 | pgio->pg_ops = &nfs_pageio_write_ops; |
1065 | pgio->pg_bsize = NFS_SERVER(pgio->pg_inode)->wsize; | 1064 | pgio->pg_bsize = NFS_SERVER(pgio->pg_inode)->wsize; |
1066 | } | 1065 | } |
1066 | EXPORT_SYMBOL_GPL(nfs_pageio_reset_write_mds); | ||
1067 | 1067 | ||
1068 | static void nfs_pageio_init_write(struct nfs_pageio_descriptor *pgio, | 1068 | static void nfs_pageio_init_write(struct nfs_pageio_descriptor *pgio, |
1069 | struct inode *inode, int ioflags) | 1069 | struct inode *inode, int ioflags) |