aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/write.c
diff options
context:
space:
mode:
authorWeston Andros Adamson <dros@primarydata.com>2014-06-09 11:48:34 -0400
committerTrond Myklebust <trond.myklebust@primarydata.com>2014-06-24 18:46:59 -0400
commit823b0c9d9800e712374cda89ac3565bd29f6701b (patch)
treefb86962395e28b0cc678c23833c7a80446a85291 /fs/nfs/write.c
parent1e7f3a485922211b6e4a082ebc6bf05810b0b6ea (diff)
nfs: rename members of nfs_pgio_data
Rename "verf" to "writeverf" and "pages" to "page_array" to prepare for merge of nfs_pgio_data and nfs_pgio_header. 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/write.c')
-rw-r--r--fs/nfs/write.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c
index d694952f0071..6afe0f679420 100644
--- a/fs/nfs/write.c
+++ b/fs/nfs/write.c
@@ -598,9 +598,9 @@ nfs_clear_request_commit(struct nfs_page *req)
598static inline 598static inline
599int nfs_write_need_commit(struct nfs_pgio_data *data) 599int nfs_write_need_commit(struct nfs_pgio_data *data)
600{ 600{
601 if (data->verf.committed == NFS_DATA_SYNC) 601 if (data->writeverf.committed == NFS_DATA_SYNC)
602 return data->header->lseg == NULL; 602 return data->header->lseg == NULL;
603 return data->verf.committed != NFS_FILE_SYNC; 603 return data->writeverf.committed != NFS_FILE_SYNC;
604} 604}
605 605
606#else 606#else
@@ -1095,8 +1095,9 @@ static void nfs_writeback_release_common(struct nfs_pgio_data *data)
1095 if (test_bit(NFS_IOHDR_NEED_RESCHED, &hdr->flags)) 1095 if (test_bit(NFS_IOHDR_NEED_RESCHED, &hdr->flags))
1096 ; /* Do nothing */ 1096 ; /* Do nothing */
1097 else if (!test_and_set_bit(NFS_IOHDR_NEED_COMMIT, &hdr->flags)) 1097 else if (!test_and_set_bit(NFS_IOHDR_NEED_COMMIT, &hdr->flags))
1098 memcpy(&hdr->verf, &data->verf, sizeof(hdr->verf)); 1098 memcpy(&hdr->verf, &data->writeverf, sizeof(hdr->verf));
1099 else if (memcmp(&hdr->verf, &data->verf, sizeof(hdr->verf))) 1099 else if (memcmp(&hdr->verf, &data->writeverf,
1100 sizeof(hdr->verf)))
1100 set_bit(NFS_IOHDR_NEED_RESCHED, &hdr->flags); 1101 set_bit(NFS_IOHDR_NEED_RESCHED, &hdr->flags);
1101 spin_unlock(&hdr->lock); 1102 spin_unlock(&hdr->lock);
1102 } 1103 }