diff options
author | Naohiro Aota <Naohiro.Aota@wdc.com> | 2023-05-09 20:29:15 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2023-05-10 14:50:22 +0200 |
commit | 02ca9e6fb5f66a031df4fac508b8e477ca69e918 (patch) | |
tree | b96908056b7856e13a1040a9cb39a9ee7487ee49 /net/core | |
parent | btrfs: zoned: zone finish data relocation BG with last IO (diff) | |
download | linux-02ca9e6fb5f66a031df4fac508b8e477ca69e918.tar.xz linux-02ca9e6fb5f66a031df4fac508b8e477ca69e918.zip |
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>
Diffstat (limited to 'net/core')
0 files changed, 0 insertions, 0 deletions