Naohiro Aota
02ca9e6fb5
btrfs: zoned: fix full zone super block reading on ZNS
...
When both of the superblock zones are full, we need to check which
superblock is newer. The calculation of last superblock position is wrong
as it does not consider zone_capacity and uses the length.
Fixes: 9658b72ef300 ("btrfs: zoned: locate superblock position using zone capacity")
CC: stable@vger.kernel.org # 6.1+
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2023-05-10 14:50:22 +02:00
..
2023-04-17 18:01:14 +02:00
2022-12-05 18:00:58 +01:00
2022-12-05 18:00:58 +01:00
2023-01-19 09:24:28 +01:00
2023-01-19 09:24:27 +01:00
2022-05-16 17:03:15 +02:00
2022-07-25 17:45:36 +02:00
2023-05-09 22:09:11 +02:00
2023-05-09 22:09:11 +02:00
2023-04-17 18:01:23 +02:00
2023-04-17 18:01:23 +02:00
2023-04-17 18:01:24 +02:00
2023-04-17 18:01:24 +02:00
2023-05-03 16:37:56 +02:00
2023-04-17 18:01:19 +02:00
2023-04-17 19:52:19 +02:00
2022-12-05 18:00:57 +01:00
2022-05-16 17:03:12 +02:00
2023-04-17 18:01:23 +02:00
2023-04-17 18:01:22 +02:00
2023-04-28 16:36:39 +02:00
2023-04-17 18:01:15 +02:00
2023-02-13 17:50:34 +01:00
2022-12-05 18:00:46 +01:00
2023-04-17 18:01:19 +02:00
2022-12-05 18:00:44 +01:00
2023-03-06 19:28:19 +01:00
2022-12-05 18:00:43 +01:00
2023-04-17 18:01:19 +02:00
2023-04-17 18:01:19 +02:00
2022-12-05 18:00:57 +01:00
2022-12-05 18:00:47 +01:00
2022-12-05 18:00:46 +01:00
2022-12-05 18:00:46 +01:00
2023-04-17 19:52:19 +02:00
2020-12-08 15:54:02 +01:00
2023-04-17 18:01:20 +02:00
2023-02-15 19:38:53 +01:00
2022-12-05 18:00:47 +01:00
2022-12-05 18:00:41 +01:00
2023-04-17 18:01:23 +02:00
2023-02-15 19:38:54 +01:00
2023-03-06 19:28:19 +01:00
2022-12-05 18:00:56 +01:00
2023-02-15 19:38:50 +01:00
2023-02-15 19:38:51 +01:00
2023-04-17 18:01:19 +02:00
2023-02-13 17:50:34 +01:00
2023-05-02 14:21:00 +02:00
2023-04-17 18:01:23 +02:00
2023-02-13 17:50:34 +01:00
2022-12-05 18:00:56 +01:00
2023-05-09 22:08:05 +02:00
2022-12-05 18:00:45 +01:00
2023-02-15 19:38:53 +01:00
2023-02-13 17:50:35 +01:00
2023-04-17 18:01:24 +02:00
2023-04-17 18:01:19 +02:00
2022-12-05 18:00:43 +01:00
2023-05-10 14:50:12 +02:00
2023-04-28 16:36:27 +02:00
2023-01-19 09:24:27 +01:00
2023-04-17 18:01:22 +02:00
2023-04-17 18:01:17 +02:00
2023-04-17 18:01:17 +02:00
2023-02-15 19:38:50 +01:00
2023-04-17 18:01:18 +02:00
2023-04-17 18:01:17 +02:00
2023-02-13 17:50:35 +01:00
2023-04-17 19:52:19 +02:00
2023-04-17 19:52:19 +02:00
2022-12-05 18:00:48 +01:00
2023-04-17 18:01:21 +02:00
2023-04-17 18:01:21 +02:00
2022-12-05 18:00:47 +01:00
2022-12-05 18:00:47 +01:00
2023-05-09 22:07:40 +02:00
2021-01-07 17:25:05 +01:00
2022-12-05 18:00:47 +01:00
2022-12-05 18:00:40 +01:00
2023-03-28 00:46:53 +02:00
2022-12-05 18:00:43 +01:00
2023-04-17 19:52:18 +02:00
2023-04-17 19:52:18 +02:00
2022-12-05 18:00:59 +01:00
2022-12-05 18:00:42 +01:00
2022-12-05 18:00:53 +01:00
2023-05-09 22:09:11 +02:00
2022-12-05 18:00:47 +01:00
2022-12-05 18:00:47 +01:00
2022-12-05 18:00:44 +01:00
2023-04-17 19:52:19 +02:00
2023-04-17 18:01:24 +02:00
2023-04-17 19:52:19 +02:00
2022-12-05 18:00:41 +01:00
2023-04-17 18:01:19 +02:00
2023-04-17 18:01:18 +02:00
2022-12-05 18:00:41 +01:00
2022-05-16 17:03:11 +02:00
2023-04-28 16:36:45 +02:00
2022-12-05 18:00:47 +01:00
2023-04-17 18:01:18 +02:00
2023-02-13 17:50:35 +01:00
2023-04-17 18:01:22 +02:00
2023-02-13 17:50:33 +01:00
2023-04-17 18:01:14 +02:00
2022-12-05 18:00:57 +01:00
2023-04-17 19:52:19 +02:00
2023-02-13 17:50:34 +01:00
2022-12-05 18:00:58 +01:00
2022-12-05 18:00:48 +01:00
2022-12-05 18:00:50 +01:00
2022-12-05 18:00:50 +01:00
2022-12-05 18:00:46 +01:00
2022-12-05 18:00:46 +01:00
2023-01-01 15:46:48 -08:00
2022-12-05 18:00:47 +01:00
2023-04-28 16:36:31 +02:00
2023-04-17 18:01:23 +02:00
2023-01-19 09:24:28 +01:00
2023-04-17 18:01:17 +02:00
2023-05-10 14:50:22 +02:00
2023-02-15 19:38:55 +01:00
2023-04-17 18:01:17 +02:00