Jaegeuk Kim
87a597c7a7
f2fs: relax node version check for victim data in gc
...
[ Upstream commit c13ff37e359bb3eacf4e1760dcea8d9760aa7459 ]
- has_not_enough_free_secs
node_secs: 0 dent_secs: 0 freed:0 free_segments:103 reserved:104
- f2fs_gc
- get_victim_by_default
alloc_mode 0, gc_mode 1, max_search 2672, offset 4654, ofs_unit 1
- do_garbage_collect
start_segno 3976, end_segno 3977 type 0
- is_alive
nid 22797, blkaddr 2131882, ofs_in_node 0, version 0x8/0x0
- gc_data_segment 766, segno 3976, block 512/426 not alive
So, this patch fixes subtle corrupted case where node version does not match
to summary version which results in infinite loop by gc.
Reported-by: Yunlei He <heyunlei@huawei.com >
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org >
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2018-03-22 09:23:22 +01:00
..
2017-11-30 08:37:22 +00:00
2016-06-07 18:14:32 -07:00
2017-12-20 10:04:56 +01:00
2017-12-20 10:04:51 +01:00
2018-03-11 16:19:47 +01:00
2015-11-16 20:38:43 -05:00
2017-12-20 10:04:52 +01:00
2018-02-16 20:09:39 +01:00
2017-11-24 08:32:25 +01:00
2017-06-26 07:13:08 +02:00
2017-08-06 19:19:42 -07:00
2016-08-16 09:30:49 +02:00
2017-09-13 14:09:45 -07:00
2017-11-30 08:37:20 +00:00
2016-03-03 15:07:09 -08:00
2015-12-12 10:15:34 -08:00
2018-01-31 12:06:11 +01:00
2018-03-18 11:17:52 +01:00
2018-03-22 09:23:22 +01:00
2017-03-15 09:57:15 +08:00
2017-10-27 10:23:18 +02:00
2017-11-02 09:40:49 +01:00
2017-12-20 10:04:59 +01:00
2016-10-31 04:13:58 -06:00
2016-09-30 10:18:39 +02:00
2016-06-01 12:15:54 -07:00
2017-06-26 07:13:11 +02:00
2017-11-30 08:37:20 +00:00
2017-03-12 06:37:26 +01:00
2016-10-31 04:13:58 -06:00
2017-06-14 13:16:24 +02:00
2018-02-16 20:09:42 +01:00
2015-11-11 20:11:28 -08:00
2015-11-06 17:50:42 -08:00
2018-02-25 11:03:50 +01:00
2018-03-18 11:17:52 +01:00
2018-02-03 17:04:28 +01:00
2018-02-03 17:04:28 +01:00
2017-11-30 08:37:20 +00:00
2017-08-06 19:19:42 -07:00
2015-11-06 17:50:42 -08:00
2017-12-09 18:42:43 +01:00
2018-02-16 20:09:47 +01:00
2017-12-20 10:05:00 +01:00
2017-08-06 19:19:43 -07:00
2018-02-03 17:04:28 +01:00
2018-02-25 11:03:43 +01:00
2017-06-17 06:39:38 +02:00
2015-11-13 20:34:33 -05:00
2017-04-12 12:38:33 +02:00
2015-11-23 21:11:08 -05:00
2015-11-04 22:13:45 -05:00
2017-01-26 08:23:48 +01:00
2017-12-20 10:05:01 +01:00
2017-06-14 13:16:24 +02:00
2018-03-03 10:19:44 +01:00
2016-10-07 15:23:47 +02:00
2016-10-22 12:26:56 +02:00
2015-11-10 12:07:22 -08:00
2017-07-21 07:44:57 +02:00
2017-05-20 14:27:01 +02:00
2017-06-14 13:16:24 +02:00
2018-02-25 11:03:51 +01:00
2015-10-23 23:26:43 +02:00
2017-07-05 14:37:20 +02:00
2015-11-16 23:54:45 -08:00
2017-08-06 19:19:42 -07:00
2017-10-18 09:20:42 +02:00
2017-09-07 08:34:10 +02:00
2017-07-21 07:44:57 +02:00
2018-01-31 12:06:11 +01:00
2016-04-12 09:08:58 -07:00
2015-11-05 23:05:32 -08:00
2017-12-20 10:04:54 +01:00
2018-02-16 20:09:38 +01:00
2015-11-16 23:54:45 -08:00
2018-01-17 09:35:27 +01:00
2017-07-21 07:44:57 +02:00
2017-06-14 13:16:24 +02:00
2018-02-22 15:45:01 +01:00
2017-07-21 07:44:57 +02:00
2018-02-16 20:09:43 +01:00
2017-07-15 11:57:44 +02:00
2018-01-23 19:50:15 +01:00
2017-07-21 07:44:58 +02:00
2017-04-30 05:49:28 +02:00
2017-01-26 08:23:47 +01:00
2016-04-12 09:08:55 -07:00
2017-10-05 09:41:45 +02:00
2018-01-31 12:06:09 +01:00
2017-08-06 19:19:42 -07:00
2017-02-23 17:43:09 +01:00
2017-06-14 13:16:24 +02:00
2018-03-03 10:19:41 +01:00
2015-11-06 17:50:42 -08:00
2017-05-08 07:46:01 +02:00
2017-12-20 10:04:53 +01:00
2016-10-22 12:26:56 +02:00
2017-10-12 11:27:32 +02:00