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/objlayout | |
| 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/objlayout')
| -rw-r--r-- | fs/nfs/objlayout/objio_osd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/objlayout/objio_osd.c b/fs/nfs/objlayout/objio_osd.c index c203fab694af..b759aeba57b9 100644 --- a/fs/nfs/objlayout/objio_osd.c +++ b/fs/nfs/objlayout/objio_osd.c | |||
| @@ -1008,11 +1008,13 @@ static bool objio_pg_test(struct nfs_pageio_descriptor *pgio, | |||
| 1008 | } | 1008 | } |
| 1009 | 1009 | ||
| 1010 | static const struct nfs_pageio_ops objio_pg_read_ops = { | 1010 | static const struct nfs_pageio_ops objio_pg_read_ops = { |
| 1011 | .pg_init = pnfs_generic_pg_init_read, | ||
| 1011 | .pg_test = objio_pg_test, | 1012 | .pg_test = objio_pg_test, |
| 1012 | .pg_doio = nfs_generic_pg_readpages, | 1013 | .pg_doio = nfs_generic_pg_readpages, |
| 1013 | }; | 1014 | }; |
| 1014 | 1015 | ||
| 1015 | static const struct nfs_pageio_ops objio_pg_write_ops = { | 1016 | static const struct nfs_pageio_ops objio_pg_write_ops = { |
| 1017 | .pg_init = pnfs_generic_pg_init_write, | ||
| 1016 | .pg_test = objio_pg_test, | 1018 | .pg_test = objio_pg_test, |
| 1017 | .pg_doio = nfs_generic_pg_writepages, | 1019 | .pg_doio = nfs_generic_pg_writepages, |
| 1018 | }; | 1020 | }; |
