diff options
Diffstat (limited to 'fs/nfs/pnfs.c')
-rw-r--r-- | fs/nfs/pnfs.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c index 3d5bc2baafd1..e9cea3ab7cf9 100644 --- a/fs/nfs/pnfs.c +++ b/fs/nfs/pnfs.c | |||
@@ -1492,7 +1492,7 @@ int pnfs_write_done_resend_to_mds(struct inode *inode, | |||
1492 | } | 1492 | } |
1493 | EXPORT_SYMBOL_GPL(pnfs_write_done_resend_to_mds); | 1493 | EXPORT_SYMBOL_GPL(pnfs_write_done_resend_to_mds); |
1494 | 1494 | ||
1495 | static void pnfs_ld_handle_write_error(struct nfs_write_data *data) | 1495 | static void pnfs_ld_handle_write_error(struct nfs_pgio_data *data) |
1496 | { | 1496 | { |
1497 | struct nfs_pgio_header *hdr = data->header; | 1497 | struct nfs_pgio_header *hdr = data->header; |
1498 | 1498 | ||
@@ -1511,7 +1511,7 @@ static void pnfs_ld_handle_write_error(struct nfs_write_data *data) | |||
1511 | /* | 1511 | /* |
1512 | * Called by non rpc-based layout drivers | 1512 | * Called by non rpc-based layout drivers |
1513 | */ | 1513 | */ |
1514 | void pnfs_ld_write_done(struct nfs_write_data *data) | 1514 | void pnfs_ld_write_done(struct nfs_pgio_data *data) |
1515 | { | 1515 | { |
1516 | struct nfs_pgio_header *hdr = data->header; | 1516 | struct nfs_pgio_header *hdr = data->header; |
1517 | 1517 | ||
@@ -1527,7 +1527,7 @@ EXPORT_SYMBOL_GPL(pnfs_ld_write_done); | |||
1527 | 1527 | ||
1528 | static void | 1528 | static void |
1529 | pnfs_write_through_mds(struct nfs_pageio_descriptor *desc, | 1529 | pnfs_write_through_mds(struct nfs_pageio_descriptor *desc, |
1530 | struct nfs_write_data *data) | 1530 | struct nfs_pgio_data *data) |
1531 | { | 1531 | { |
1532 | struct nfs_pgio_header *hdr = data->header; | 1532 | struct nfs_pgio_header *hdr = data->header; |
1533 | 1533 | ||
@@ -1540,7 +1540,7 @@ pnfs_write_through_mds(struct nfs_pageio_descriptor *desc, | |||
1540 | } | 1540 | } |
1541 | 1541 | ||
1542 | static enum pnfs_try_status | 1542 | static enum pnfs_try_status |
1543 | pnfs_try_to_write_data(struct nfs_write_data *wdata, | 1543 | pnfs_try_to_write_data(struct nfs_pgio_data *wdata, |
1544 | const struct rpc_call_ops *call_ops, | 1544 | const struct rpc_call_ops *call_ops, |
1545 | struct pnfs_layout_segment *lseg, | 1545 | struct pnfs_layout_segment *lseg, |
1546 | int how) | 1546 | int how) |
@@ -1564,7 +1564,7 @@ pnfs_try_to_write_data(struct nfs_write_data *wdata, | |||
1564 | static void | 1564 | static void |
1565 | pnfs_do_multiple_writes(struct nfs_pageio_descriptor *desc, struct list_head *head, int how) | 1565 | pnfs_do_multiple_writes(struct nfs_pageio_descriptor *desc, struct list_head *head, int how) |
1566 | { | 1566 | { |
1567 | struct nfs_write_data *data; | 1567 | struct nfs_pgio_data *data; |
1568 | const struct rpc_call_ops *call_ops = desc->pg_rpc_callops; | 1568 | const struct rpc_call_ops *call_ops = desc->pg_rpc_callops; |
1569 | struct pnfs_layout_segment *lseg = desc->pg_lseg; | 1569 | struct pnfs_layout_segment *lseg = desc->pg_lseg; |
1570 | 1570 | ||
@@ -1572,7 +1572,7 @@ pnfs_do_multiple_writes(struct nfs_pageio_descriptor *desc, struct list_head *he | |||
1572 | while (!list_empty(head)) { | 1572 | while (!list_empty(head)) { |
1573 | enum pnfs_try_status trypnfs; | 1573 | enum pnfs_try_status trypnfs; |
1574 | 1574 | ||
1575 | data = list_first_entry(head, struct nfs_write_data, list); | 1575 | data = list_first_entry(head, struct nfs_pgio_data, list); |
1576 | list_del_init(&data->list); | 1576 | list_del_init(&data->list); |
1577 | 1577 | ||
1578 | trypnfs = pnfs_try_to_write_data(data, call_ops, lseg, how); | 1578 | trypnfs = pnfs_try_to_write_data(data, call_ops, lseg, how); |
@@ -1647,7 +1647,7 @@ int pnfs_read_done_resend_to_mds(struct inode *inode, | |||
1647 | } | 1647 | } |
1648 | EXPORT_SYMBOL_GPL(pnfs_read_done_resend_to_mds); | 1648 | EXPORT_SYMBOL_GPL(pnfs_read_done_resend_to_mds); |
1649 | 1649 | ||
1650 | static void pnfs_ld_handle_read_error(struct nfs_read_data *data) | 1650 | static void pnfs_ld_handle_read_error(struct nfs_pgio_data *data) |
1651 | { | 1651 | { |
1652 | struct nfs_pgio_header *hdr = data->header; | 1652 | struct nfs_pgio_header *hdr = data->header; |
1653 | 1653 | ||
@@ -1666,7 +1666,7 @@ static void pnfs_ld_handle_read_error(struct nfs_read_data *data) | |||
1666 | /* | 1666 | /* |
1667 | * Called by non rpc-based layout drivers | 1667 | * Called by non rpc-based layout drivers |
1668 | */ | 1668 | */ |
1669 | void pnfs_ld_read_done(struct nfs_read_data *data) | 1669 | void pnfs_ld_read_done(struct nfs_pgio_data *data) |
1670 | { | 1670 | { |
1671 | struct nfs_pgio_header *hdr = data->header; | 1671 | struct nfs_pgio_header *hdr = data->header; |
1672 | 1672 | ||
@@ -1682,7 +1682,7 @@ EXPORT_SYMBOL_GPL(pnfs_ld_read_done); | |||
1682 | 1682 | ||
1683 | static void | 1683 | static void |
1684 | pnfs_read_through_mds(struct nfs_pageio_descriptor *desc, | 1684 | pnfs_read_through_mds(struct nfs_pageio_descriptor *desc, |
1685 | struct nfs_read_data *data) | 1685 | struct nfs_pgio_data *data) |
1686 | { | 1686 | { |
1687 | struct nfs_pgio_header *hdr = data->header; | 1687 | struct nfs_pgio_header *hdr = data->header; |
1688 | 1688 | ||
@@ -1698,7 +1698,7 @@ pnfs_read_through_mds(struct nfs_pageio_descriptor *desc, | |||
1698 | * Call the appropriate parallel I/O subsystem read function. | 1698 | * Call the appropriate parallel I/O subsystem read function. |
1699 | */ | 1699 | */ |
1700 | static enum pnfs_try_status | 1700 | static enum pnfs_try_status |
1701 | pnfs_try_to_read_data(struct nfs_read_data *rdata, | 1701 | pnfs_try_to_read_data(struct nfs_pgio_data *rdata, |
1702 | const struct rpc_call_ops *call_ops, | 1702 | const struct rpc_call_ops *call_ops, |
1703 | struct pnfs_layout_segment *lseg) | 1703 | struct pnfs_layout_segment *lseg) |
1704 | { | 1704 | { |
@@ -1722,7 +1722,7 @@ pnfs_try_to_read_data(struct nfs_read_data *rdata, | |||
1722 | static void | 1722 | static void |
1723 | pnfs_do_multiple_reads(struct nfs_pageio_descriptor *desc, struct list_head *head) | 1723 | pnfs_do_multiple_reads(struct nfs_pageio_descriptor *desc, struct list_head *head) |
1724 | { | 1724 | { |
1725 | struct nfs_read_data *data; | 1725 | struct nfs_pgio_data *data; |
1726 | const struct rpc_call_ops *call_ops = desc->pg_rpc_callops; | 1726 | const struct rpc_call_ops *call_ops = desc->pg_rpc_callops; |
1727 | struct pnfs_layout_segment *lseg = desc->pg_lseg; | 1727 | struct pnfs_layout_segment *lseg = desc->pg_lseg; |
1728 | 1728 | ||
@@ -1730,7 +1730,7 @@ pnfs_do_multiple_reads(struct nfs_pageio_descriptor *desc, struct list_head *hea | |||
1730 | while (!list_empty(head)) { | 1730 | while (!list_empty(head)) { |
1731 | enum pnfs_try_status trypnfs; | 1731 | enum pnfs_try_status trypnfs; |
1732 | 1732 | ||
1733 | data = list_first_entry(head, struct nfs_read_data, list); | 1733 | data = list_first_entry(head, struct nfs_pgio_data, list); |
1734 | list_del_init(&data->list); | 1734 | list_del_init(&data->list); |
1735 | 1735 | ||
1736 | trypnfs = pnfs_try_to_read_data(data, call_ops, lseg); | 1736 | trypnfs = pnfs_try_to_read_data(data, call_ops, lseg); |
@@ -1821,7 +1821,7 @@ void pnfs_set_lo_fail(struct pnfs_layout_segment *lseg) | |||
1821 | EXPORT_SYMBOL_GPL(pnfs_set_lo_fail); | 1821 | EXPORT_SYMBOL_GPL(pnfs_set_lo_fail); |
1822 | 1822 | ||
1823 | void | 1823 | void |
1824 | pnfs_set_layoutcommit(struct nfs_write_data *wdata) | 1824 | pnfs_set_layoutcommit(struct nfs_pgio_data *wdata) |
1825 | { | 1825 | { |
1826 | struct nfs_pgio_header *hdr = wdata->header; | 1826 | struct nfs_pgio_header *hdr = wdata->header; |
1827 | struct inode *inode = hdr->inode; | 1827 | struct inode *inode = hdr->inode; |