bcachefs: Whiteouts for snapshots
authorKent Overstreet <kent.overstreet@gmail.com>
Tue, 2 Feb 2021 22:09:10 +0000 (17:09 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:12 +0000 (17:09 -0400)
commit7a7d17b2f7c23c0891b0cbd13fafd3bc805b1b29
treedc4c22912655b6b21e721d05baa07646cbf52396
parent8c6d298ab22fc1b2912ccef4ffd4a01b35f9c5b4
bcachefs: Whiteouts for snapshots

This patch adds KEY_TYPE_whiteout, a new type of whiteout for snapshots,
when we're deleting and the key being deleted is in an ancestor
snapshot - and updates the transaction update/commit path to use it.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/bcachefs_format.h
fs/bcachefs/bkey.h
fs/bcachefs/bkey_methods.c
fs/bcachefs/btree_update_leaf.c