aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/objlayout
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs/objlayout')
-rw-r--r--fs/nfs/objlayout/objio_osd.c6
-rw-r--r--fs/nfs/objlayout/objlayout.c16
-rw-r--r--fs/nfs/objlayout/objlayout.h8
3 files changed, 15 insertions, 15 deletions
diff --git a/fs/nfs/objlayout/objio_osd.c b/fs/nfs/objlayout/objio_osd.c
index 5457745dd4f1..426b366b0b33 100644
--- a/fs/nfs/objlayout/objio_osd.c
+++ b/fs/nfs/objlayout/objio_osd.c
@@ -439,7 +439,7 @@ static void _read_done(struct ore_io_state *ios, void *private)
439 objlayout_read_done(&objios->oir, status, objios->sync); 439 objlayout_read_done(&objios->oir, status, objios->sync);
440} 440}
441 441
442int objio_read_pagelist(struct nfs_read_data *rdata) 442int objio_read_pagelist(struct nfs_pgio_data *rdata)
443{ 443{
444 struct nfs_pgio_header *hdr = rdata->header; 444 struct nfs_pgio_header *hdr = rdata->header;
445 struct objio_state *objios; 445 struct objio_state *objios;
@@ -487,7 +487,7 @@ static void _write_done(struct ore_io_state *ios, void *private)
487static struct page *__r4w_get_page(void *priv, u64 offset, bool *uptodate) 487static struct page *__r4w_get_page(void *priv, u64 offset, bool *uptodate)
488{ 488{
489 struct objio_state *objios = priv; 489 struct objio_state *objios = priv;
490 struct nfs_write_data *wdata = objios->oir.rpcdata; 490 struct nfs_pgio_data *wdata = objios->oir.rpcdata;
491 struct address_space *mapping = wdata->header->inode->i_mapping; 491 struct address_space *mapping = wdata->header->inode->i_mapping;
492 pgoff_t index = offset / PAGE_SIZE; 492 pgoff_t index = offset / PAGE_SIZE;
493 struct page *page; 493 struct page *page;
@@ -531,7 +531,7 @@ static const struct _ore_r4w_op _r4w_op = {
531 .put_page = &__r4w_put_page, 531 .put_page = &__r4w_put_page,
532}; 532};
533 533
534int objio_write_pagelist(struct nfs_write_data *wdata, int how) 534int objio_write_pagelist(struct nfs_pgio_data *wdata, int how)
535{ 535{
536 struct nfs_pgio_header *hdr = wdata->header; 536 struct nfs_pgio_header *hdr = wdata->header;
537 struct objio_state *objios; 537 struct objio_state *objios;
diff --git a/fs/nfs/objlayout/objlayout.c b/fs/nfs/objlayout/objlayout.c
index e4f9cbfec67b..2f955f671003 100644
--- a/fs/nfs/objlayout/objlayout.c
+++ b/fs/nfs/objlayout/objlayout.c
@@ -229,11 +229,11 @@ objlayout_io_set_result(struct objlayout_io_res *oir, unsigned index,
229static void _rpc_read_complete(struct work_struct *work) 229static void _rpc_read_complete(struct work_struct *work)
230{ 230{
231 struct rpc_task *task; 231 struct rpc_task *task;
232 struct nfs_read_data *rdata; 232 struct nfs_pgio_data *rdata;
233 233
234 dprintk("%s enter\n", __func__); 234 dprintk("%s enter\n", __func__);
235 task = container_of(work, struct rpc_task, u.tk_work); 235 task = container_of(work, struct rpc_task, u.tk_work);
236 rdata = container_of(task, struct nfs_read_data, task); 236 rdata = container_of(task, struct nfs_pgio_data, task);
237 237
238 pnfs_ld_read_done(rdata); 238 pnfs_ld_read_done(rdata);
239} 239}
@@ -241,7 +241,7 @@ static void _rpc_read_complete(struct work_struct *work)
241void 241void
242objlayout_read_done(struct objlayout_io_res *oir, ssize_t status, bool sync) 242objlayout_read_done(struct objlayout_io_res *oir, ssize_t status, bool sync)
243{ 243{
244 struct nfs_read_data *rdata = oir->rpcdata; 244 struct nfs_pgio_data *rdata = oir->rpcdata;
245 245
246 oir->status = rdata->task.tk_status = status; 246 oir->status = rdata->task.tk_status = status;
247 if (status >= 0) 247 if (status >= 0)
@@ -266,7 +266,7 @@ objlayout_read_done(struct objlayout_io_res *oir, ssize_t status, bool sync)
266 * Perform sync or async reads. 266 * Perform sync or async reads.
267 */ 267 */
268enum pnfs_try_status 268enum pnfs_try_status
269objlayout_read_pagelist(struct nfs_read_data *rdata) 269objlayout_read_pagelist(struct nfs_pgio_data *rdata)
270{ 270{
271 struct nfs_pgio_header *hdr = rdata->header; 271 struct nfs_pgio_header *hdr = rdata->header;
272 struct inode *inode = hdr->inode; 272 struct inode *inode = hdr->inode;
@@ -312,11 +312,11 @@ objlayout_read_pagelist(struct nfs_read_data *rdata)
312static void _rpc_write_complete(struct work_struct *work) 312static void _rpc_write_complete(struct work_struct *work)
313{ 313{
314 struct rpc_task *task; 314 struct rpc_task *task;
315 struct nfs_write_data *wdata; 315 struct nfs_pgio_data *wdata;
316 316
317 dprintk("%s enter\n", __func__); 317 dprintk("%s enter\n", __func__);
318 task = container_of(work, struct rpc_task, u.tk_work); 318 task = container_of(work, struct rpc_task, u.tk_work);
319 wdata = container_of(task, struct nfs_write_data, task); 319 wdata = container_of(task, struct nfs_pgio_data, task);
320 320
321 pnfs_ld_write_done(wdata); 321 pnfs_ld_write_done(wdata);
322} 322}
@@ -324,7 +324,7 @@ static void _rpc_write_complete(struct work_struct *work)
324void 324void
325objlayout_write_done(struct objlayout_io_res *oir, ssize_t status, bool sync) 325objlayout_write_done(struct objlayout_io_res *oir, ssize_t status, bool sync)
326{ 326{
327 struct nfs_write_data *wdata = oir->rpcdata; 327 struct nfs_pgio_data *wdata = oir->rpcdata;
328 328
329 oir->status = wdata->task.tk_status = status; 329 oir->status = wdata->task.tk_status = status;
330 if (status >= 0) { 330 if (status >= 0) {
@@ -351,7 +351,7 @@ objlayout_write_done(struct objlayout_io_res *oir, ssize_t status, bool sync)
351 * Perform sync or async writes. 351 * Perform sync or async writes.
352 */ 352 */
353enum pnfs_try_status 353enum pnfs_try_status
354objlayout_write_pagelist(struct nfs_write_data *wdata, 354objlayout_write_pagelist(struct nfs_pgio_data *wdata,
355 int how) 355 int how)
356{ 356{
357 struct nfs_pgio_header *hdr = wdata->header; 357 struct nfs_pgio_header *hdr = wdata->header;
diff --git a/fs/nfs/objlayout/objlayout.h b/fs/nfs/objlayout/objlayout.h
index 87aa1dec6120..01e041029a6c 100644
--- a/fs/nfs/objlayout/objlayout.h
+++ b/fs/nfs/objlayout/objlayout.h
@@ -119,8 +119,8 @@ extern void objio_free_lseg(struct pnfs_layout_segment *lseg);
119 */ 119 */
120extern void objio_free_result(struct objlayout_io_res *oir); 120extern void objio_free_result(struct objlayout_io_res *oir);
121 121
122extern int objio_read_pagelist(struct nfs_read_data *rdata); 122extern int objio_read_pagelist(struct nfs_pgio_data *rdata);
123extern int objio_write_pagelist(struct nfs_write_data *wdata, int how); 123extern int objio_write_pagelist(struct nfs_pgio_data *wdata, int how);
124 124
125/* 125/*
126 * callback API 126 * callback API
@@ -168,10 +168,10 @@ extern struct pnfs_layout_segment *objlayout_alloc_lseg(
168extern void objlayout_free_lseg(struct pnfs_layout_segment *); 168extern void objlayout_free_lseg(struct pnfs_layout_segment *);
169 169
170extern enum pnfs_try_status objlayout_read_pagelist( 170extern enum pnfs_try_status objlayout_read_pagelist(
171 struct nfs_read_data *); 171 struct nfs_pgio_data *);
172 172
173extern enum pnfs_try_status objlayout_write_pagelist( 173extern enum pnfs_try_status objlayout_write_pagelist(
174 struct nfs_write_data *, 174 struct nfs_pgio_data *,
175 int how); 175 int how);
176 176
177extern void objlayout_encode_layoutcommit( 177extern void objlayout_encode_layoutcommit(