diff options
author | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2016-11-23 13:49:38 -0500 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2016-12-01 17:50:37 -0500 |
commit | 4d3b55d3c7c8c628498fefac4779fc02de5af492 (patch) | |
tree | 58871be67e95e65ccc2618025c436f82848062e1 /fs/nfs/direct.c | |
parent | 7d38de3ffa75f92e7b00301dcdc6a3f9c53509ab (diff) |
NFS: Remove unused argument from nfs_direct_write_complete()
This parameter hasn't been used since 2a009ec9 (Linux 3.13-rc3), so
let's remove it from this function.
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/direct.c')
-rw-r--r-- | fs/nfs/direct.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/nfs/direct.c b/fs/nfs/direct.c index bd81bcf3ffcf..be88bcdca692 100644 --- a/fs/nfs/direct.c +++ b/fs/nfs/direct.c | |||
@@ -105,7 +105,7 @@ struct nfs_direct_req { | |||
105 | 105 | ||
106 | static const struct nfs_pgio_completion_ops nfs_direct_write_completion_ops; | 106 | static const struct nfs_pgio_completion_ops nfs_direct_write_completion_ops; |
107 | static const struct nfs_commit_completion_ops nfs_direct_commit_completion_ops; | 107 | static const struct nfs_commit_completion_ops nfs_direct_commit_completion_ops; |
108 | static void nfs_direct_write_complete(struct nfs_direct_req *dreq, struct inode *inode); | 108 | static void nfs_direct_write_complete(struct nfs_direct_req *dreq); |
109 | static void nfs_direct_write_schedule_work(struct work_struct *work); | 109 | static void nfs_direct_write_schedule_work(struct work_struct *work); |
110 | 110 | ||
111 | static inline void get_dreq(struct nfs_direct_req *dreq) | 111 | static inline void get_dreq(struct nfs_direct_req *dreq) |
@@ -684,7 +684,7 @@ out_failed: | |||
684 | } | 684 | } |
685 | 685 | ||
686 | if (put_dreq(dreq)) | 686 | if (put_dreq(dreq)) |
687 | nfs_direct_write_complete(dreq, dreq->inode); | 687 | nfs_direct_write_complete(dreq); |
688 | } | 688 | } |
689 | 689 | ||
690 | static void nfs_direct_commit_complete(struct nfs_commit_data *data) | 690 | static void nfs_direct_commit_complete(struct nfs_commit_data *data) |
@@ -717,7 +717,7 @@ static void nfs_direct_commit_complete(struct nfs_commit_data *data) | |||
717 | } | 717 | } |
718 | 718 | ||
719 | if (atomic_dec_and_test(&cinfo.mds->rpcs_out)) | 719 | if (atomic_dec_and_test(&cinfo.mds->rpcs_out)) |
720 | nfs_direct_write_complete(dreq, data->inode); | 720 | nfs_direct_write_complete(dreq); |
721 | } | 721 | } |
722 | 722 | ||
723 | static void nfs_direct_resched_write(struct nfs_commit_info *cinfo, | 723 | static void nfs_direct_resched_write(struct nfs_commit_info *cinfo, |
@@ -768,7 +768,7 @@ static void nfs_direct_write_schedule_work(struct work_struct *work) | |||
768 | } | 768 | } |
769 | } | 769 | } |
770 | 770 | ||
771 | static void nfs_direct_write_complete(struct nfs_direct_req *dreq, struct inode *inode) | 771 | static void nfs_direct_write_complete(struct nfs_direct_req *dreq) |
772 | { | 772 | { |
773 | schedule_work(&dreq->work); /* Calls nfs_direct_write_schedule_work */ | 773 | schedule_work(&dreq->work); /* Calls nfs_direct_write_schedule_work */ |
774 | } | 774 | } |
@@ -824,7 +824,7 @@ static void nfs_direct_write_completion(struct nfs_pgio_header *hdr) | |||
824 | 824 | ||
825 | out_put: | 825 | out_put: |
826 | if (put_dreq(dreq)) | 826 | if (put_dreq(dreq)) |
827 | nfs_direct_write_complete(dreq, hdr->inode); | 827 | nfs_direct_write_complete(dreq); |
828 | hdr->release(hdr); | 828 | hdr->release(hdr); |
829 | } | 829 | } |
830 | 830 | ||
@@ -953,7 +953,7 @@ static ssize_t nfs_direct_write_schedule_iovec(struct nfs_direct_req *dreq, | |||
953 | } | 953 | } |
954 | 954 | ||
955 | if (put_dreq(dreq)) | 955 | if (put_dreq(dreq)) |
956 | nfs_direct_write_complete(dreq, dreq->inode); | 956 | nfs_direct_write_complete(dreq); |
957 | return 0; | 957 | return 0; |
958 | } | 958 | } |
959 | 959 | ||