+4
−1
Loading
mainline inclusion from mainline-v5.18-rc1 commit 6c984083 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IACBGS Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6c984083ec2453dfd3fcf98f392f34500c73e3f2 -------------------------------- The use of mapping_set_error() in conjunction with calls to filemap_check_errors() is problematic because every error gets reported as either an EIO or an ENOSPC by filemap_check_errors() in functions such as filemap_write_and_wait() or filemap_write_and_wait_range(). In almost all cases, we prefer to use the more nuanced wb errors. Fixes: b8946d7b ("NFS: Revalidate the file mapping on all fatal writeback errors") Signed-off-by:Trond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by:
Wang Zhaolong <wangzhaolong1@huawei.com>