Damien Le Moal
77af13ba3c
zonefs: Do not propagate iomap_dio_rw() ENOTBLK error to user space
...
The call to invalidate_inode_pages2_range() in __iomap_dio_rw() may
fail, in which case -ENOTBLK is returned and this error code is
propagated back to user space trhough iomap_dio_rw() ->
zonefs_file_dio_write() return chain. This error code is fairly obscure
and may confuse the user. Avoid this and be consistent with the behavior
of zonefs_file_dio_append() for similar invalidate_inode_pages2_range()
errors by returning -EBUSY to user space when iomap_dio_rw() returns
-ENOTBLK.
Suggested-by: Christoph Hellwig <hch@infradead.org>
Fixes: 8dcc1a9d90c1 ("fs: New zonefs file system")
Cc: stable@vger.kernel.org
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Tested-by: Hans Holmberg <hans.holmberg@wdc.com>
2023-03-30 20:56:02 +09:00
..
2023-03-01 08:52:49 -08:00
2023-01-19 09:24:02 +01:00
2023-02-20 14:10:36 -08:00
2023-02-23 17:09:35 -08:00
2023-01-19 09:24:28 +01:00
2022-08-02 12:34:03 -04:00
2023-01-19 09:24:28 +01:00
2023-03-24 08:32:10 -07:00
2023-01-19 09:24:28 +01:00
2023-03-02 10:48:30 -08:00
2023-03-24 14:37:12 -05:00
2023-02-21 11:07:23 -08:00
2023-01-19 09:24:28 +01:00
2023-03-02 21:54:23 -08:00
2023-03-18 21:08:03 -07:00
2023-02-27 10:04:49 -08:00
2023-02-24 12:58:55 -08:00
2023-02-21 18:10:50 -08:00
2023-02-23 14:41:48 -08:00
2023-03-09 23:36:04 +08:00
2023-03-01 08:42:27 -08:00
2023-01-19 09:24:28 +01:00
2023-02-20 14:10:36 -08:00
2023-03-17 21:53:52 -04:00
2023-02-27 16:18:51 -08:00
2023-02-23 17:55:40 -08:00
2023-02-23 17:55:40 -08:00
2023-01-30 12:51:54 +00:00
2023-02-27 09:53:58 -08:00
2023-03-23 19:37:56 +01:00
2023-02-23 17:55:40 -08:00
2023-03-02 21:54:23 -08:00
2023-03-01 09:13:00 -08:00
2023-01-19 09:24:26 +01:00
2023-02-23 17:09:35 -08:00
2023-02-23 17:09:35 -08:00
2022-10-12 11:00:22 -07:00
2023-03-12 08:55:55 -07:00
2023-03-01 09:06:51 -08:00
2023-03-01 08:47:19 -08:00
2023-02-24 12:58:55 -08:00
2023-03-24 00:23:13 -05:00
2023-03-14 14:00:55 -04:00
2023-02-24 19:01:15 -08:00
2023-03-01 18:18:25 -06:00
2023-03-21 14:48:38 -07:00
2023-01-11 06:52:32 -05:00
2023-03-21 14:48:38 -07:00
2023-03-23 17:18:32 -07:00
2023-02-21 10:45:51 -08:00
2023-02-23 17:55:40 -08:00
2023-02-23 17:09:35 -08:00
2023-03-07 17:04:55 -08:00
2023-01-19 09:24:28 +01:00
2023-02-23 17:09:35 -08:00
2023-02-20 11:53:11 -08:00
2023-03-01 10:01:22 -08:00
2022-12-23 11:55:54 -08:00
2022-09-11 21:55:07 -07:00
2023-02-21 10:45:51 -08:00
2023-02-23 17:09:35 -08:00
2023-02-23 17:09:35 -08:00
2023-01-18 17:12:56 -08:00
2023-02-20 17:25:43 -06:00
2023-02-03 17:52:25 -08:00
2023-02-24 19:03:26 -08:00
2023-01-19 09:24:26 +01:00
2023-03-01 09:06:51 -08:00
2023-03-06 16:38:25 +01:00
2023-01-19 09:24:28 +01:00
2023-01-19 09:24:26 +01:00
2023-03-15 22:50:41 -07:00
2023-03-24 13:16:01 -07:00
2023-03-30 20:56:02 +09:00
2023-02-10 15:34:48 -08:00
2022-08-20 11:34:04 -04:00
2023-02-20 11:53:11 -08:00
2023-01-19 09:24:28 +01:00
2023-01-05 15:12:12 +00:00
2023-01-31 15:01:20 +01:00
2022-12-02 13:57:04 -08:00
2023-02-23 17:09:35 -08:00
2022-12-02 17:48:59 +01:00
2023-02-23 17:09:35 -08:00
2022-08-20 11:34:33 -04:00
2023-02-03 17:52:24 -08:00
2022-10-10 19:45:17 -07:00
2023-01-26 10:30:56 -07:00
2022-11-22 06:07:55 -07:00
2022-11-21 07:45:29 -07:00
2023-02-23 17:09:35 -08:00
2023-02-20 11:53:11 -08:00
2022-09-01 17:36:39 -04:00
2023-01-11 06:52:32 -05:00
2023-03-09 22:46:21 -05:00
2022-12-01 10:46:54 -05:00
2023-02-02 22:33:19 -08:00
2023-01-19 09:24:28 +01:00
2023-02-20 11:53:11 -08:00
2023-02-20 14:10:36 -08:00
2023-01-19 09:24:29 +01:00
2023-01-26 10:30:56 -07:00
2022-10-10 14:21:11 -07:00
2023-02-20 11:53:11 -08:00
2023-03-09 22:36:12 +01:00
2023-02-20 14:10:36 -08:00
2022-12-08 21:49:25 -05:00
2023-01-19 09:24:30 +01:00
2023-02-23 17:09:35 -08:00
2023-02-22 14:21:40 -08:00
2023-02-24 19:20:07 -08:00
2023-01-11 15:47:40 -05:00
2023-02-27 16:39:19 -08:00
2022-08-20 11:34:04 -04:00
2022-12-21 14:45:25 +01:00
2023-02-20 12:14:33 -08:00
2022-12-12 18:29:54 -08:00
2022-08-17 17:25:04 -04:00
2023-01-19 09:24:29 +01:00
2022-11-25 13:01:55 -05:00
2023-03-09 10:10:31 +01:00
2023-02-20 11:53:11 -08:00
2023-03-14 10:30:30 -07:00
2023-02-09 16:51:39 -08:00
2023-02-20 11:53:11 -08:00
2023-02-20 11:53:11 -08:00