diff options
author | Anna Schumaker <Anna.Schumaker@netapp.com> | 2016-01-15 16:54:15 -0500 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2016-01-21 15:54:04 -0500 |
commit | 6272dcc6beebbc2d8cf4165b628169e878f143e0 (patch) | |
tree | 285184199611e0149c23f4addfc86ae896ff5060 /fs/nfs | |
parent | 44aab3e09ef947e546ee61c5082c41b86dd15e53 (diff) |
NFS: Simplify nfs_request_add_commit_list() arguments
I noticed that all the callers of this function pass cinfo->mds->list as
an argument in addition to the cinfo structure itself. Let's get rid of
the extra argument, since it doesn't seem to be adding anything.
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/filelayout/filelayout.c | 2 | ||||
-rw-r--r-- | fs/nfs/internal.h | 2 | ||||
-rw-r--r-- | fs/nfs/write.c | 7 |
3 files changed, 5 insertions, 6 deletions
diff --git a/fs/nfs/filelayout/filelayout.c b/fs/nfs/filelayout/filelayout.c index bb1f4e7a3270..3384dc8e6683 100644 --- a/fs/nfs/filelayout/filelayout.c +++ b/fs/nfs/filelayout/filelayout.c | |||
@@ -971,7 +971,7 @@ filelayout_mark_request_commit(struct nfs_page *req, | |||
971 | u32 i, j; | 971 | u32 i, j; |
972 | 972 | ||
973 | if (fl->commit_through_mds) { | 973 | if (fl->commit_through_mds) { |
974 | nfs_request_add_commit_list(req, &cinfo->mds->list, cinfo); | 974 | nfs_request_add_commit_list(req, cinfo); |
975 | } else { | 975 | } else { |
976 | /* Note that we are calling nfs4_fl_calc_j_index on each page | 976 | /* Note that we are calling nfs4_fl_calc_j_index on each page |
977 | * that ends up being committed to a data server. An attractive | 977 | * that ends up being committed to a data server. An attractive |
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h index 4e8cc942336c..9a547aa3ec8e 100644 --- a/fs/nfs/internal.h +++ b/fs/nfs/internal.h | |||
@@ -484,7 +484,7 @@ void nfs_retry_commit(struct list_head *page_list, | |||
484 | struct nfs_commit_info *cinfo, | 484 | struct nfs_commit_info *cinfo, |
485 | u32 ds_commit_idx); | 485 | u32 ds_commit_idx); |
486 | void nfs_commitdata_release(struct nfs_commit_data *data); | 486 | void nfs_commitdata_release(struct nfs_commit_data *data); |
487 | void nfs_request_add_commit_list(struct nfs_page *req, struct list_head *dst, | 487 | void nfs_request_add_commit_list(struct nfs_page *req, |
488 | struct nfs_commit_info *cinfo); | 488 | struct nfs_commit_info *cinfo); |
489 | void nfs_request_add_commit_list_locked(struct nfs_page *req, | 489 | void nfs_request_add_commit_list_locked(struct nfs_page *req, |
490 | struct list_head *dst, | 490 | struct list_head *dst, |
diff --git a/fs/nfs/write.c b/fs/nfs/write.c index ce43cd6d88c6..5754835a2886 100644 --- a/fs/nfs/write.c +++ b/fs/nfs/write.c | |||
@@ -830,11 +830,10 @@ EXPORT_SYMBOL_GPL(nfs_request_add_commit_list_locked); | |||
830 | * holding the nfs_page lock. | 830 | * holding the nfs_page lock. |
831 | */ | 831 | */ |
832 | void | 832 | void |
833 | nfs_request_add_commit_list(struct nfs_page *req, struct list_head *dst, | 833 | nfs_request_add_commit_list(struct nfs_page *req, struct nfs_commit_info *cinfo) |
834 | struct nfs_commit_info *cinfo) | ||
835 | { | 834 | { |
836 | spin_lock(cinfo->lock); | 835 | spin_lock(cinfo->lock); |
837 | nfs_request_add_commit_list_locked(req, dst, cinfo); | 836 | nfs_request_add_commit_list_locked(req, &cinfo->mds->list, cinfo); |
838 | spin_unlock(cinfo->lock); | 837 | spin_unlock(cinfo->lock); |
839 | nfs_mark_page_unstable(req->wb_page, cinfo); | 838 | nfs_mark_page_unstable(req->wb_page, cinfo); |
840 | } | 839 | } |
@@ -892,7 +891,7 @@ nfs_mark_request_commit(struct nfs_page *req, struct pnfs_layout_segment *lseg, | |||
892 | { | 891 | { |
893 | if (pnfs_mark_request_commit(req, lseg, cinfo, ds_commit_idx)) | 892 | if (pnfs_mark_request_commit(req, lseg, cinfo, ds_commit_idx)) |
894 | return; | 893 | return; |
895 | nfs_request_add_commit_list(req, &cinfo->mds->list, cinfo); | 894 | nfs_request_add_commit_list(req, cinfo); |
896 | } | 895 | } |
897 | 896 | ||
898 | static void | 897 | static void |