Scott Mayhew
67dd23f9e6
nfs: ensure correct writeback errors are returned on close()
...
nfs_wb_all() calls filemap_write_and_wait(), which uses
filemap_check_errors() to determine the error to return.
filemap_check_errors() only looks at the mapping->flags and will
therefore only return either -ENOSPC or -EIO. To ensure that the
correct error is returned on close(), nfs{,4}_file_flush() should call
filemap_check_wb_err() which looks at the errseq value in
mapping->wb_err without consuming it.
Fixes: 6fbda89b25
("NFS: Replace custom error reporting mechanism with
generic one")
Signed-off-by: Scott Mayhew <smayhew@redhat.com >
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com >
2020-08-01 15:37:48 -04:00
..
2020-06-02 10:59:11 -07:00
2020-03-27 16:34:35 -04:00
2020-07-12 23:49:55 -04:00
2017-11-17 14:18:00 -08:00
2017-11-17 14:18:00 -08:00
2020-03-16 08:34:30 -04:00
2020-01-15 10:54:31 -05:00
2019-04-24 09:46:35 -04:00
2020-03-16 08:34:30 -04:00
2020-07-13 17:52:45 -04:00
2020-04-03 18:26:02 -04:00
2020-02-13 16:18:50 -05:00
2020-07-13 17:52:45 -04:00
2020-07-28 11:04:06 -04:00
2020-05-27 10:10:12 -04:00
2017-11-02 11:10:55 +01:00
2019-11-03 21:28:46 -05:00
2020-08-01 15:37:48 -04:00
2020-04-02 18:37:13 -04:00
2020-01-15 10:54:30 -05:00
2020-05-08 22:20:24 +01:00
2020-01-15 10:54:30 -05:00
2020-03-30 19:56:50 -04:00
2020-07-17 10:35:48 -04:00
2020-06-02 10:59:08 -07:00
2019-02-20 15:14:21 -05:00
2017-11-02 11:10:55 +01:00
2020-03-02 13:11:46 -07:00
2020-07-13 17:52:46 -04:00
2020-05-14 18:42:44 -04:00
2020-04-02 18:53:59 -04:00
2019-07-06 14:54:49 -04:00
2019-05-21 10:50:45 +02:00
2020-01-15 10:54:30 -05:00
2020-01-15 10:15:17 -05:00
2020-04-20 09:58:59 -04:00
2020-01-15 10:15:17 -05:00
2020-05-27 10:08:26 -04:00
2019-05-21 10:50:45 +02:00
2020-01-15 10:54:32 -05:00
2020-07-13 17:52:46 -04:00
2020-07-17 13:16:23 -04:00
2020-08-01 15:37:48 -04:00
2017-11-02 11:10:55 +01:00
2019-07-10 18:43:43 -07:00
2015-04-23 15:16:14 -04:00
2020-06-26 08:43:14 -04:00
2020-07-17 13:12:44 -04:00
2020-02-04 12:27:55 -05:00
2019-05-21 10:50:45 +02:00
2019-03-02 16:25:26 -05:00
2020-05-11 14:05:58 -04:00
2020-07-13 17:52:46 -04:00
2018-01-18 15:10:47 -05:00
2020-01-15 10:54:33 -05:00
2020-03-16 08:34:30 -04:00
2020-07-13 17:52:45 -04:00
2020-07-13 17:52:45 -04:00
2020-07-13 17:52:46 -04:00
2020-07-30 15:51:44 -04:00
2020-07-13 17:52:45 -04:00
2017-11-02 11:10:55 +01:00
2020-03-25 08:45:47 -04:00
2019-02-13 12:03:21 -05:00
2020-07-13 17:52:45 -04:00
2020-06-11 13:33:48 -04:00
2019-03-01 22:37:38 -05:00
2020-05-13 09:55:36 -04:00
2020-04-19 23:53:52 -04:00
2020-03-27 16:34:35 -04:00
2020-01-24 16:51:13 -05:00
2020-06-11 13:33:48 -04:00
2020-05-11 14:06:50 -04:00
2019-05-09 16:26:57 -04:00
2017-11-02 11:10:55 +01:00
2019-11-18 10:38:04 +01:00
2020-05-27 10:08:26 -04:00
2020-03-16 08:34:29 -04:00
2020-06-02 10:59:08 -07:00