diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2017-04-26 12:26:22 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2017-04-26 13:03:04 -0400 |
commit | c373fff7bd252ec36e8a895c58a584088f1d38bc (patch) | |
tree | 005607bf423bbe80c003c33f71c84a7e2229d992 /fs/nfs/file.c | |
parent | 54551d85ad48b5b5f5735b9b76c147096828b626 (diff) | |
download | linux-stable-c373fff7bd252ec36e8a895c58a584088f1d38bc.tar.gz linux-stable-c373fff7bd252ec36e8a895c58a584088f1d38bc.tar.bz2 linux-stable-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.c | 2 |
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, |