commit | 2b058acecf56f6b8fac781911a683219b9ca3b7b | [log] [tgz] |
---|---|---|
author | ChenXiaoSong <chenxiaosong2@huawei.com> | Wed May 18 22:56:49 2022 +0800 |
committer | Steve French <stfrench@microsoft.com> | Sun May 22 00:01:06 2022 -0500 |
tree | 61efe3717fc4c24d15c0e86440bc65a5a442db2c | |
parent | fb253d5ba3fcbd3b4216bcc37d019926f5e32ebb [diff] |
cifs: return the more nuanced writeback error on close() As filemap_check_errors() only report -EIO or -ENOSPC, we return more nuanced writeback error -(file->f_mapping->wb_err & MAX_ERRNO). filemap_write_and_wait filemap_write_and_wait_range filemap_check_errors -ENOSPC or -EIO filemap_check_wb_err errseq_check return -(file->f_mapping->wb_err & MAX_ERRNO) Signed-off-by: ChenXiaoSong <chenxiaosong2@huawei.com> Signed-off-by: Steve French <stfrench@microsoft.com>