summaryrefslogtreecommitdiffstats
path: root/fs/nfs/file.c
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@primarydata.com>2017-04-26 18:26:22 +0200
committerTrond Myklebust <trond.myklebust@primarydata.com>2017-04-26 19:03:04 +0200
commitc373fff7bd252ec36e8a895c58a584088f1d38bc (patch)
tree005607bf423bbe80c003c33f71c84a7e2229d992 /fs/nfs/file.c
parentNFS: Add a few more fatal I/O errors to nfs_error_is_fatal() (diff)
downloadlinux-c373fff7bd252ec36e8a895c58a584088f1d38bc.tar.xz
linux-c373fff7bd252ec36e8a895c58a584088f1d38bc.zip
NFSv4: Don't special case "launder"
If the client receives a fatal server error from nfs_pageio_add_request(), then we should always truncate the page on which the error occurred. Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/file.c')
-rw-r--r--fs/nfs/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/file.c b/fs/nfs/file.c
index bebed885b6e4..5713eb32a45e 100644
--- a/fs/nfs/file.c
+++ b/fs/nfs/file.c
@@ -482,7 +482,7 @@ static int nfs_launder_page(struct page *page)
inode->i_ino, (long long)page_offset(page));
nfs_fscache_wait_on_page_write(nfsi, page);
- return nfs_wb_launder_page(inode, page);
+ return nfs_wb_page(inode, page);
}
static int nfs_swap_activate(struct swap_info_struct *sis, struct file *file,