diff options
author | Andy Adamson <andros@netapp.com> | 2011-03-03 10:13:45 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2011-03-11 15:38:44 -0500 |
commit | 0382b74409c6b9ef12c952b50bb44f557a361a43 (patch) | |
tree | 0eebc04006a3b70fb6605c42ee89cdc0ccd8b1cf /fs/nfs/nfs4filelayout.c | |
parent | 44b83799a922a153957c65ccfc985a8c902958c8 (diff) |
NFSv4.1: implement generic pnfs layer write switch
Signed-off-by: Andy Adamson <andros@citi.umich.edu>
Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Signed-off-by: Dean Hildebrand <dhildeb@us.ibm.com>
Signed-off-by: Fred Isaman <iisaman@citi.umich.edu>
Signed-off-by: J. Bruce Fields <bfields@fieldses.org>
Signed-off-by: Mike Sager <sager@netapp.com>
Signed-off-by: Ricardo Labiaga <Ricardo.Labiaga@netapp.com>
Signed-off-by: Tao Guo <guotao@nrchpc.ac.cn>
Signed-off-by: Andy Adamson <andros@netapp.com>
Signed-off-by: Benny Halevy <bhalevy@panasas.com>
Signed-off-by: Fred Isaman <iisaman@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4filelayout.c')
-rw-r--r-- | fs/nfs/nfs4filelayout.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/nfs/nfs4filelayout.c b/fs/nfs/nfs4filelayout.c index 0040a5ee6208..9d21bfeec88f 100644 --- a/fs/nfs/nfs4filelayout.c +++ b/fs/nfs/nfs4filelayout.c | |||
@@ -238,6 +238,12 @@ filelayout_read_pagelist(struct nfs_read_data *data) | |||
238 | return PNFS_ATTEMPTED; | 238 | return PNFS_ATTEMPTED; |
239 | } | 239 | } |
240 | 240 | ||
241 | static enum pnfs_try_status | ||
242 | filelayout_write_pagelist(struct nfs_write_data *data, int sync) | ||
243 | { | ||
244 | return PNFS_NOT_ATTEMPTED; | ||
245 | } | ||
246 | |||
241 | /* | 247 | /* |
242 | * filelayout_check_layout() | 248 | * filelayout_check_layout() |
243 | * | 249 | * |
@@ -455,6 +461,7 @@ static struct pnfs_layoutdriver_type filelayout_type = { | |||
455 | .free_lseg = filelayout_free_lseg, | 461 | .free_lseg = filelayout_free_lseg, |
456 | .pg_test = filelayout_pg_test, | 462 | .pg_test = filelayout_pg_test, |
457 | .read_pagelist = filelayout_read_pagelist, | 463 | .read_pagelist = filelayout_read_pagelist, |
464 | .write_pagelist = filelayout_write_pagelist, | ||
458 | }; | 465 | }; |
459 | 466 | ||
460 | static int __init nfs4filelayout_init(void) | 467 | static int __init nfs4filelayout_init(void) |