diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2011-07-12 13:42:02 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2011-07-15 09:12:21 -0400 |
commit | d9156f9f364897e93bdd98b4ad22138de18f7c24 (patch) | |
tree | f748c7b8d4a0eff52fcaa78fb4de216391efedf2 /include | |
parent | d097971d8ab4042eaa4bff98698ae9cc55942327 (diff) |
NFS: Allow the nfs_pageio_descriptor to signal that a re-coalesce is needed
If an attempt to do pNFS fails, and we have to fall back to writing through
the MDS, then we may want to re-coalesce the requests that we already have
since the block size for the MDS read/writes may be different to that of
the DS read/writes.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/nfs_page.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/nfs_page.h b/include/linux/nfs_page.h index db3194f63479..7241b2a2a4d6 100644 --- a/include/linux/nfs_page.h +++ b/include/linux/nfs_page.h | |||
@@ -68,7 +68,8 @@ struct nfs_pageio_descriptor { | |||
68 | size_t pg_count; | 68 | size_t pg_count; |
69 | size_t pg_bsize; | 69 | size_t pg_bsize; |
70 | unsigned int pg_base; | 70 | unsigned int pg_base; |
71 | char pg_moreio; | 71 | unsigned char pg_moreio : 1, |
72 | pg_recoalesce : 1; | ||
72 | 73 | ||
73 | struct inode *pg_inode; | 74 | struct inode *pg_inode; |
74 | const struct nfs_pageio_ops *pg_ops; | 75 | const struct nfs_pageio_ops *pg_ops; |