diff options
author | Weston Andros Adamson <dros@primarydata.com> | 2014-06-09 11:48:38 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2014-06-24 18:47:01 -0400 |
commit | 53113ad35e4b9ce82d949c7c67c7b666fad5d907 (patch) | |
tree | d648b4ca1de29c1dcb87e545f58aa25a3dce2da8 /fs/nfs/filelayout | |
parent | 4714fb51fd03a14d8c73001438283e7f7b752f1e (diff) |
pnfs: clean up *_resend_to_mds
Clean up pnfs_read_done_resend_to_mds and pnfs_write_done_resend_to_mds:
- instead of passing all arguments from a nfs_pgio_header, just pass the header
- share the common code
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Weston Andros Adamson <dros@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/filelayout')
-rw-r--r-- | fs/nfs/filelayout/filelayout.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/fs/nfs/filelayout/filelayout.c b/fs/nfs/filelayout/filelayout.c index 537e7f7a0b48..504d58a51d35 100644 --- a/fs/nfs/filelayout/filelayout.c +++ b/fs/nfs/filelayout/filelayout.c | |||
@@ -97,10 +97,7 @@ static void filelayout_reset_write(struct nfs_pgio_header *hdr) | |||
97 | hdr->args.count, | 97 | hdr->args.count, |
98 | (unsigned long long)hdr->args.offset); | 98 | (unsigned long long)hdr->args.offset); |
99 | 99 | ||
100 | task->tk_status = pnfs_write_done_resend_to_mds(hdr->inode, | 100 | task->tk_status = pnfs_write_done_resend_to_mds(hdr); |
101 | &hdr->pages, | ||
102 | hdr->completion_ops, | ||
103 | hdr->dreq); | ||
104 | } | 101 | } |
105 | } | 102 | } |
106 | 103 | ||
@@ -117,10 +114,7 @@ static void filelayout_reset_read(struct nfs_pgio_header *hdr) | |||
117 | hdr->args.count, | 114 | hdr->args.count, |
118 | (unsigned long long)hdr->args.offset); | 115 | (unsigned long long)hdr->args.offset); |
119 | 116 | ||
120 | task->tk_status = pnfs_read_done_resend_to_mds(hdr->inode, | 117 | task->tk_status = pnfs_read_done_resend_to_mds(hdr); |
121 | &hdr->pages, | ||
122 | hdr->completion_ops, | ||
123 | hdr->dreq); | ||
124 | } | 118 | } |
125 | } | 119 | } |
126 | 120 | ||