Bob Peterson
b950dcc0e1
gfs2: Fix case in which ail writes are done to jdata holes
...
[ Upstream commit 4e79e3f08e ]
Patch b2a846dbef ("gfs2: Ignore journal log writes for jdata holes")
tried (unsuccessfully) to fix a case in which writes were done to jdata
blocks, the blocks are sent to the ail list, then a punch_hole or truncate
operation caused the blocks to be freed. In other words, the ail items
are for jdata holes. Before b2a846dbef , the jdata hole caused function
gfs2_block_map to return -EIO, which was eventually interpreted as an
IO error to the journal, and then withdraw.
This patch changes function gfs2_get_block_noalloc, which is only used
for jdata writes, so it returns -ENODATA rather than -EIO, and when
-ENODATA is returned to gfs2_ail1_start_one, the error is ignored.
We can safely ignore it because gfs2_ail1_start_one is only called
when the jdata pages have already been written and truncated, so the
ail1 content no longer applies.
Signed-off-by: Bob Peterson <rpeterso@redhat.com >
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2020-11-24 13:38:54 +01:00
..
2020-11-05 11:51:50 +01:00
2020-08-23 17:36:59 -05:00
2020-08-31 12:20:31 +02:00
2020-11-18 19:22:22 +01:00
2020-09-29 17:18:34 -07:00
2020-06-24 09:16:02 -06:00
2020-11-18 19:22:24 +01:00
2020-11-05 11:51:54 +01:00
2020-11-18 19:22:07 +01:00
2020-11-18 19:22:33 +01:00
2020-08-23 17:36:59 -05:00
2020-10-29 10:11:05 +01:00
2020-09-04 18:12:52 +02:00
2020-10-29 10:12:11 +01:00
2020-08-07 11:33:22 -07:00
2020-11-01 12:47:03 +01:00
2020-06-24 09:16:02 -06:00
2020-11-18 19:22:23 +01:00
2020-10-07 14:27:13 +09:00
2020-09-05 10:00:05 -07:00
2020-11-18 19:22:23 +01:00
2020-11-05 11:51:25 +01:00
2020-08-12 10:58:01 -07:00
2020-11-01 12:47:08 +01:00
2020-11-24 13:38:54 +01:00
2020-06-24 09:16:02 -06:00
2020-08-23 17:36:59 -05:00
2020-06-06 10:08:17 -07:00
2020-08-12 10:57:56 -07:00
2020-11-18 19:22:14 +01:00
2020-08-04 13:49:43 -07:00
2020-11-18 19:22:26 +01:00
2020-08-23 17:36:59 -05:00
2020-06-24 09:16:02 -06:00
2020-07-27 23:15:48 +02:00
2020-08-12 10:58:00 -07:00
2020-11-18 19:22:30 +01:00
2020-10-29 10:11:57 +01:00
2020-11-18 19:22:18 +01:00
2020-08-23 17:36:59 -05:00
2020-06-14 01:57:21 +09:00
2020-08-23 17:36:59 -05:00
2020-10-29 10:12:12 +01:00
2020-11-18 19:22:28 +01:00
2020-07-16 12:35:15 -07:00
2020-08-04 15:01:58 -04:00
2020-08-04 13:49:43 -07:00
2020-10-29 10:11:37 +01:00
2020-08-23 17:36:59 -05:00
2020-10-29 10:11:28 +01:00
2020-10-29 10:11:51 +01:00
2020-10-29 10:12:19 +01:00
2020-08-21 09:52:53 -07:00
2020-08-21 09:52:53 -07:00
2020-06-05 14:05:57 -07:00
2020-11-05 11:51:47 +01:00
2020-11-05 11:51:41 +01:00
2020-08-23 17:36:59 -05:00
2020-09-22 15:08:41 -07:00
2020-07-21 16:02:41 -07:00
2020-11-18 19:22:20 +01:00
2020-08-11 17:42:24 +09:00
2020-08-23 17:36:59 -05:00
2020-08-07 13:29:39 -07:00
2020-07-27 14:29:23 -04:00
2020-06-04 19:18:29 -07:00
2020-08-24 08:49:13 +10:00
2020-06-04 19:18:29 -07:00
2020-06-04 19:18:29 -07:00
2020-08-03 13:01:22 -07:00
2020-11-05 11:51:33 +01:00
2020-06-05 13:45:21 -07:00
2020-08-12 10:58:01 -07:00
2020-10-29 10:11:37 +01:00
2020-08-23 17:36:59 -05:00
2020-07-29 16:14:27 +02:00
2020-07-01 08:08:20 -06:00
2020-09-24 19:41:58 -04:00
2020-11-05 11:51:35 +01:00
2020-08-23 17:36:59 -05:00
2020-06-29 09:40:55 -07:00
2020-11-01 12:47:01 +01:00
2020-08-23 17:36:59 -05:00
2020-07-29 16:14:27 +02:00
2020-09-19 13:13:39 -07:00
2020-08-23 17:36:59 -05:00
2020-08-04 21:02:38 -04:00
2020-06-05 16:26:36 -07:00
2020-08-07 09:40:34 -07:00
2020-11-18 19:22:28 +01:00
2020-11-05 11:51:34 +01:00
2020-11-01 12:47:01 +01:00
2020-07-31 08:16:01 +02:00
2020-08-07 11:33:24 -07:00
2020-06-14 01:57:21 +09:00
2020-08-23 17:36:59 -05:00
2020-08-23 17:36:59 -05:00
2020-07-31 08:17:51 +02:00
2020-08-14 19:56:56 -07:00
2020-08-07 21:03:25 -07:00
2020-08-12 10:58:01 -07:00
2020-10-11 11:11:35 -07:00
2020-06-08 11:04:19 -07:00
2020-09-29 17:18:34 -07:00
2020-07-31 08:16:00 +02:00
2020-08-23 17:36:59 -05:00
2020-08-23 17:36:59 -05:00
2020-10-06 10:27:22 -07:00
2020-11-24 13:38:53 +01:00
2020-06-09 15:40:50 -07:00
2020-08-10 19:07:44 -07:00
2020-07-31 08:16:01 +02:00
2020-07-13 17:27:03 -04:00