summaryrefslogtreecommitdiff
path: root/include/linux/i2c/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorNaohiro Aota <naohiro.aota@wdc.com>2026-01-23 21:41:35 +0900
committerDavid Sterba <dsterba@suse.com>2026-02-03 07:56:23 +0100
commite2d848649e64de39fc1b9c64002629b4daa1105d (patch)
tree9ae23e303f52238daa4c72ecdd1734c57c3f1a26 /include/linux/i2c/git@git.tavy.me:linux.git
parentdda3ec9ee6b3e120603bff1b798f25b51e54ac5d (diff)
btrfs: zoned: fixup last alloc pointer after extent removal for DUP
When a block group is composed of a sequential write zone and a conventional zone, we recover the (pseudo) write pointer of the conventional zone using the end of the last allocated position. However, if the last extent in a block group is removed, the last extent position will be smaller than the other real write pointer position. Then, that will cause an error due to mismatch of the write pointers. We can fixup this case by moving the alloc_offset to the corresponding write pointer position. Fixes: c0d90a79e8e6 ("btrfs: zoned: fix alloc_offset calculation for partly conventional block groups") CC: stable@vger.kernel.org # 6.16+ 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 'include/linux/i2c/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions