diff options
author | Anna Schumaker <Anna.Schumaker@netapp.com> | 2014-05-06 09:12:29 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2014-05-28 18:39:55 -0400 |
commit | 00bfa30abe86982ce1929e9cabd703e5546106bd (patch) | |
tree | 902a6cf951f53be35916332635016ad0378c60b7 /fs/nfs/pnfs.c | |
parent | f79d06f544a797d75cbf5256a5d06c4b3d2759cc (diff) |
NFS: Create a common pgio_alloc and pgio_release function
These functions are identical for the read and write paths so they can
be combined.
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/pnfs.c')
-rw-r--r-- | fs/nfs/pnfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c index 43cfe11aa1a4..e192ba69a7d4 100644 --- a/fs/nfs/pnfs.c +++ b/fs/nfs/pnfs.c | |||
@@ -1536,7 +1536,7 @@ pnfs_write_through_mds(struct nfs_pageio_descriptor *desc, | |||
1536 | nfs_pageio_reset_write_mds(desc); | 1536 | nfs_pageio_reset_write_mds(desc); |
1537 | desc->pg_recoalesce = 1; | 1537 | desc->pg_recoalesce = 1; |
1538 | } | 1538 | } |
1539 | nfs_writedata_release(data); | 1539 | nfs_pgio_data_release(data); |
1540 | } | 1540 | } |
1541 | 1541 | ||
1542 | static enum pnfs_try_status | 1542 | static enum pnfs_try_status |
@@ -1691,7 +1691,7 @@ pnfs_read_through_mds(struct nfs_pageio_descriptor *desc, | |||
1691 | nfs_pageio_reset_read_mds(desc); | 1691 | nfs_pageio_reset_read_mds(desc); |
1692 | desc->pg_recoalesce = 1; | 1692 | desc->pg_recoalesce = 1; |
1693 | } | 1693 | } |
1694 | nfs_readdata_release(data); | 1694 | nfs_pgio_data_release(data); |
1695 | } | 1695 | } |
1696 | 1696 | ||
1697 | /* | 1697 | /* |