diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2011-06-10 13:30:23 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2011-07-12 13:40:28 -0400 |
commit | d8007d4dd6ff8749cc8a4063c3ec87442db76d82 (patch) | |
tree | f778176d24666f2e2c7cd7ef4dc5917aa11cc207 /fs/nfs/pagelist.c | |
parent | 1751c3638f2a07a8c66a803a31791bab9bd3fced (diff) |
NFSv4.1: Add an initialisation callback for pNFS
Ensure that we always get a layout before setting up the i/o request.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/pagelist.c')
-rw-r--r-- | fs/nfs/pagelist.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/pagelist.c b/fs/nfs/pagelist.c index 9b8a4730f0bd..d421e19557a5 100644 --- a/fs/nfs/pagelist.c +++ b/fs/nfs/pagelist.c | |||
@@ -295,6 +295,8 @@ static int nfs_pageio_do_add_request(struct nfs_pageio_descriptor *desc, | |||
295 | if (!nfs_can_coalesce_requests(prev, req, desc)) | 295 | if (!nfs_can_coalesce_requests(prev, req, desc)) |
296 | return 0; | 296 | return 0; |
297 | } else { | 297 | } else { |
298 | if (desc->pg_ops->pg_init) | ||
299 | desc->pg_ops->pg_init(desc, req); | ||
298 | desc->pg_base = req->wb_pgbase; | 300 | desc->pg_base = req->wb_pgbase; |
299 | } | 301 | } |
300 | nfs_list_remove_request(req); | 302 | nfs_list_remove_request(req); |