diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2011-10-19 12:17:29 -0700 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2011-10-19 13:58:38 -0700 |
commit | fba730050d1246d0e6ef44e026e0b584732fec2b (patch) | |
tree | 0f82efd65d61d40e6cc994fd8e69b9db0a2e6cb1 /include/linux/nfs_page.h | |
parent | fbb5a9abf0d589e9471dc93b18025b7b921d22c9 (diff) | |
download | linux-stable-fba730050d1246d0e6ef44e026e0b584732fec2b.tar.gz linux-stable-fba730050d1246d0e6ef44e026e0b584732fec2b.tar.bz2 linux-stable-fba730050d1246d0e6ef44e026e0b584732fec2b.zip |
NFS: Don't rely on PageError in nfs_readpage_release_partial
Don't rely on the PageError flag to tell us if one of the partial reads of
the page failed. Instead, replace that with a dedicated flag in the
struct nfs_page.
Then clean out redundant uses of the PageError flag: the VM no longer
checks it for reads.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/linux/nfs_page.h')
-rw-r--r-- | include/linux/nfs_page.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/nfs_page.h b/include/linux/nfs_page.h index e2791a27a901..ab465fe8c3d6 100644 --- a/include/linux/nfs_page.h +++ b/include/linux/nfs_page.h @@ -34,6 +34,7 @@ enum { PG_NEED_COMMIT, PG_NEED_RESCHED, PG_PNFS_COMMIT, + PG_PARTIAL_READ_FAILED, }; struct nfs_inode; |