aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-cmp.c
diff options
context:
space:
mode:
authorNaohiro Aota <[email protected]>2023-05-09 18:29:15 +0000
committerDavid Sterba <[email protected]>2023-05-10 14:50:22 +0200
commit02ca9e6fb5f66a031df4fac508b8e477ca69e918 (patch)
treeb96908056b7856e13a1040a9cb39a9ee7487ee49 /lib/mpi/mpi-cmp.c
parentf84353c7c20536ea7e01eca79430eccdf3cc7348 (diff)
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: [email protected] # 6.1+ Reviewed-by: Johannes Thumshirn <[email protected]> Signed-off-by: Naohiro Aota <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions