提交 886bbea6 编写于 作者: L Luo Meng 提交者: Zheng Zengkai

Revert "NFS: Use of mapping_set_error() results in spurious errors"

hulk inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I5KK4D
CVE: NA

--------------------------------

This reverts commit f4f11702.

7f3945b4aab5 (NFS: Use of mapping_set_error() results in spurious errors)
delete mappint->flags because of 67dd23f9 (nfs: ensure correct writeback
errors are returned on close()). However 67dd23f9 has been reverted, use
mappint->flags to return error.
Signed-off-by: NLuo Meng <luomeng12@huawei.com>
Reviewed-by: NZhang Xiaoxu <zhangxiaoxu5@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 6bdc3149
...@@ -310,10 +310,7 @@ static void nfs_mapping_set_error(struct page *page, int error) ...@@ -310,10 +310,7 @@ static void nfs_mapping_set_error(struct page *page, int error)
struct address_space *mapping = page_file_mapping(page); struct address_space *mapping = page_file_mapping(page);
SetPageError(page); SetPageError(page);
filemap_set_wb_err(mapping, error); mapping_set_error(mapping, error);
if (mapping->host)
errseq_set(&mapping->host->i_sb->s_wb_err,
error == -ENOSPC ? -ENOSPC : -EIO);
nfs_set_pageerror(mapping); nfs_set_pageerror(mapping);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册