diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2019-11-26 17:26:04 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:33 -0400 |
commit | bcd6f3e06fe4f039e1526a0ff5bc3ebbc2405e10 (patch) | |
tree | a284f68b3448de48129ed3be534ef1f7a455f00a /net/ethernet | |
parent | 1c3ff72c0fa94651a226d3351d9df89d5eafd2d7 (diff) | |
download | lwn-bcd6f3e06fe4f039e1526a0ff5bc3ebbc2405e10.tar.gz lwn-bcd6f3e06fe4f039e1526a0ff5bc3ebbc2405e10.zip |
bcachefs: Use KEY_TYPE_deleted whitouts for extents
Previously, partial overwrites of existing extents were handled
implicitly by the btree code; when reading in a btree node, we'd do a
mergesort of the different bsets and detect and fix partially
overlapping extents during that mergesort.
That approach won't work with snapshots: this changes extents to work
like regular keys as far as the btree code is concerned, where a 0 size
KEY_TYPE_deleted whiteout will completely overwrite an existing extent.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'net/ethernet')
0 files changed, 0 insertions, 0 deletions