]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
bcachefs: Fix extent_sort_fix_overlapping()
authorKent Overstreet <kent.overstreet@gmail.com>
Mon, 2 Mar 2020 22:08:19 +0000 (17:08 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:36 +0000 (17:08 -0400)
commit7699cdd58727cdb1960e6f2ccd8aeea510a0589b
tree2d5f79c895df44b6a23a3ade93c37dcbbd872ce1
parente3ecf4f56811ec538ed93fe8dbeb68c81ba74cc8
bcachefs: Fix extent_sort_fix_overlapping()

Recently the extent update path started emmiting 0 size whiteouts on
extent overwrite, as part of transitioning to moving extent handling
out of the core btree code.

Unfortunately, this broke the old code path that handles overlapping
extents when reading in btree nodes - it relies on sorting incomming
extents by start position, but the 0 size whiteouts broke that ordering.
Skipping over them before the main algorithm sees them fixes this.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/bkey_sort.c