diff options
author | Fred Isaman <iisaman@netapp.com> | 2011-02-28 20:34:15 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2011-03-11 15:38:42 -0500 |
commit | bae724ef95b0d0a1f4518f5451e7c8aabc41f820 (patch) | |
tree | 07a2c1866698f183235f7133ac7c004121717bf8 /fs/nfs/write.c | |
parent | 94ad1c80e28f9700c84b4d28d1e5302ddf63a6fd (diff) |
NFSv4.1: shift pnfs_update_layout locations
Move the pnfs_update_layout call location to nfs_pageio_do_add_request().
Grab the lseg sent in the doio function to nfs_read_rpcsetup and attach
it to each nfs_read_data so it can be sent to the layout driver.
Signed-off-by: Andy Adamson <andros@netapp.com>
Signed-off-by: Andy Adamson <andros@citi.umich.edu>
Signed-off-by: Dean Hildebrand <dhildeb@us.ibm.com>
Signed-off-by: Fred Isaman <iisaman@citi.umich.edu>
Signed-off-by: Fred Isaman <iisaman@netapp.com>
Signed-off-by: Benny Halevy <bhalevy@panasas.com>
Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Tao Guo <guotao@nrchpc.ac.cn>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/write.c')
-rw-r--r-- | fs/nfs/write.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c index 40143c4747a5..f033fa0d7d33 100644 --- a/fs/nfs/write.c +++ b/fs/nfs/write.c | |||
@@ -880,7 +880,7 @@ static void nfs_redirty_request(struct nfs_page *req) | |||
880 | * Generate multiple small requests to write out a single | 880 | * Generate multiple small requests to write out a single |
881 | * contiguous dirty area on one page. | 881 | * contiguous dirty area on one page. |
882 | */ | 882 | */ |
883 | static int nfs_flush_multi(struct inode *inode, struct list_head *head, unsigned int npages, size_t count, int how) | 883 | static int nfs_flush_multi(struct inode *inode, struct list_head *head, unsigned int npages, size_t count, int how, struct pnfs_layout_segment *lseg) |
884 | { | 884 | { |
885 | struct nfs_page *req = nfs_list_entry(head->next); | 885 | struct nfs_page *req = nfs_list_entry(head->next); |
886 | struct page *page = req->wb_page; | 886 | struct page *page = req->wb_page; |
@@ -947,7 +947,7 @@ out_bad: | |||
947 | * This is the case if nfs_updatepage detects a conflicting request | 947 | * This is the case if nfs_updatepage detects a conflicting request |
948 | * that has been written but not committed. | 948 | * that has been written but not committed. |
949 | */ | 949 | */ |
950 | static int nfs_flush_one(struct inode *inode, struct list_head *head, unsigned int npages, size_t count, int how) | 950 | static int nfs_flush_one(struct inode *inode, struct list_head *head, unsigned int npages, size_t count, int how, struct pnfs_layout_segment *lseg) |
951 | { | 951 | { |
952 | struct nfs_page *req; | 952 | struct nfs_page *req; |
953 | struct page **pages; | 953 | struct page **pages; |